Giter Site home page Giter Site logo

car_rental_system's Introduction

Car Rental System by Hemanth Medahal

Steps to compile the program:
i) Open command prompt and change directory to the folder containing the downloaded files
ii) Type "g++ admin.cpp car.cpp database.cpp main.cpp password.cpp person.cpp user.cpp" in the console, or any other compiler that you are using. Just make sure to compile all the .cpp files
iii) The above will create an executable file named a.exe. To run it, type .\a in console

As a person, there are two roles; admin and user 
What you can do as an admin:
i) Add a car
ii) Delete a car
iii) Display all cars

What you can do as a user:
i) Display unreserved cars
ii) Reserve a car

A user can display or reserve a car only after registering and logging in

The username of admin is ADMIN and password is cars4ever

Cars and users are stored in a database hence, they will persist even after the program is terminated                                                               

Person is the base class. User class is inherited from person as it has limited capabilites. Admin class has special priviliges and is also inherited from Person class

Map container is used to store a temporary database of persons and cars. Look-up in map is done using iterators and find function

Storage in files is done using filestreams

Function writetofile shows polymorphism by taking in different number of string arguments. 

car_rental_system's People

Contributors

iliketrains42 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.