Customer Service Chat
Get quote & make Payment
car rental system, C/C++ Programming
Car Rental System
This system tracks cars in a rental company. Each car has a number (assume its plate number), type (small car, four wheel car), and status (rented, available). The main interface of the system as follows:
1- Add new car
2- Rent a car
3- Generate report for all cars
4- Generate report for small cars
5- Generate report for four wheel car
Add new car
When the user chooses 1, the program should perform the following tasks:
a. Create/open a cars’ file (call it cars.txt) in append mode.
b. Allow the user to enter the car number, type, and status.
c. Write to the cars file: the car number, the car type, and the car status.
d. Keep asking the user if (s)he want to add new car or to return to main menu.
[hint: car type can be represented internally as 1 for small cars, 2 for 4-wheel ones].
Rent a car
When the user chooses 2, the program should perform the following tasks:
a. The system asks user to choose car type. If there is no car available of that type, system displays message “No car available”. If there are many available cars of that type, it chooses one based on rule first entered first reserved.
b. That chosen car is marked unavailable.
c. Then systems asks user to enter number of days to rent that car. System calculates fees as follows :
o Rate is QR70 per day for small car, and QR100 for 4wheel cars.
o If customer rents a car for 7 to 30 days, he gets 5% discount.
o If customer rents a car for more than 30 days, he gets 10% discount.
Generate report for all cars
When the user chooses 3, the program should perform the following tasks:
a. Read the cars file. [The program can load the data that is read from the data file into arrays].
b. Count the number of available small cars and the number of available 4-wheel cars.
c. Generate a screen report that prints the information for each car. The screen report should also print the number of available cars(small and 4-wheel).
Generate report for small cars
When the user chooses 4, the program should perform the same tasks of choice 3, but for small cars only.
Note that the program can read from the car file [or from the loaded arrays].
Generate report for 4-Wheel cars
When the user chooses 5, the program should perform the same tasks of choice 4, but for 4-Wheel cars only.
When the user chooses 6, the program should end. Otherwise, your program should be user friendly and always loop back to the main menu after completing a choice.
Posted Date: 12/21/2012 11:40:48 AM | Location : Qatar
Ask an Expert
car rental system, Assignment Help, Ask Question on car rental system, Get Answer, Expert's Help, car rental system Discussions
Write discussion on car rental system
Your posts are moderated
Write your message here..
Cross platform clinet app for a vpn, Cross Platform Clinet app for a vpn ...
Cross Platform Clinet app for a vpn Project Description: We want a cross platform client app for VPN. The app must have the subsequent options below: 1. Must be an open
Program, c | c-c-c-c-c | c-c-C-c-c | ...
c | c-c-c-c-c | c-c-C-c-c | c find distance between difftent carbon atom by programing
Padovan string, A Padovan string P(n) for a natural number n is defined as:...
A Padovan string P(n) for a natural number n is defined as: P(0) = ‘X’ P(1) = ‘Y’ P(2) = ‘Z’ P(n) = P(n-2) + P(n-3), n>2 where + denotes string concate program 1 : package test
What is difference among macro and template?, A: In C++ there is a main dif...
A: In C++ there is a main difference among a template and a macro. Merely a macro is a string which the compiler replaces along with the value that was defined. For example #define
What is the significance of external declaration, Problem 1 What is the...
Problem 1 What is the difference between function declaration and function definition? 2 Write a recursive function to find sum of even numbers from 2 to 10. 3 List some
#Luminous Jewels, #Byteland county is very famous for luminous jewels. Lumi...
#Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Ne
Html, world wide web commands
world wide web commands
Substr and random pick file from directory, Hello I''m new to programming, ...
Hello I''m new to programming, and I''m making now my 1st program. My question is how to put substr in textbox that question mark should be at the end of sentence? And 2nd question
Program of conversion between objects of different classes, Conversion betw...
Conversion between Objects of Different Classes As the compiler does not know anything about the user-defined type, the conversion instructions are to be specified in a functio
Area under curve, Write a program to find the area under the curve y = f(x)...
Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. #include float start
Accounting Assignment Help
Economics Assignment Help
Finance Assignment Help
Statistics Assignment Help
Physics Assignment Help
Chemistry Assignment Help
Math Assignment Help
Biology Assignment Help
English Assignment Help
Management Assignment Help
Engineering Assignment Help
Programming Assignment Help
Computer Science Assignment Help
Why Us ?
~24x7 hrs Support
~Quality of Work
~Time on Delivery
~Privacy of Work
Human Resource Management
Literature Review Writing Help
Follow Us |
T & C
Copyright by ExpertsMind IT Educational Pvt. Ltd.