Question: Write the following program in C++ language. ICS103 LabProject 172 Car Rental system BIN HADI COMPANY plans to computerize its rental operations. They sign a

Write the following program in C++ language.  Write the following program in C++ language. ICS103 LabProject 172 Car
Rental system BIN HADI COMPANY plans to computerize its rental operations. They
sign a contract with you to develop a menu- driven program that

ICS103 LabProject 172 Car Rental system BIN HADI COMPANY plans to computerize its rental operations. They sign a contract with you to develop a menu- driven program that manages the Rental Car Program. They ask you to design a menu as in Figure 1 CAR RENTAL PROGRAM 1. Add New Customer 2. Display Information for All Customers 3. Add New Ca 4. Display Information for All Cars 5. Display Cars by Year 6. Display Cars by Company 7. Display Available Cars 8. Eligibility of a Customer 9. Rent a Car 10. Display Rental Information 11. Exit Enter Your Choice: Figure 1. The main menu of the program The program processes different text files: ()Customer.txt, (a) Car.txt, and (i) Rentalinfo.txt. The structure of the file Customer.txt, which contains information about customers, is shown in Figure 2. Each line represents customer ID and eligibility (E: Eligible, N: Not eligible). The structure of the file Car.txt is displayed in Figure 3; the first column represents car ID, the second column represents car company (T: Toyota, H: Hyundai, F: Ford, K: Kia), the thired column represents the model year, and the last one represents the count of available cars. Figure 4 shows the structure of Rentallnfo.txt. Each line contains information about a rental car for a customer. Column 1 represents customer ID, column 2 represents the car ID, columns 3 and 4 represent the company and the year of the car column 5 represents number of rental days, and the last column represents the rental price. If there are some opening issues related to these file, the program should display a proper error message and terminates. The functionalities of the program are shown in table 1 111 T 2010 122 T 2018 1 133 H 2018 3 144 F 2012 0 155 F 2018 2 166 K 2010 1 177 K 2018 1 188 K 2010 0 222 E 233 E 244 N 255 E 222 155 F 2018 10 2000 Figure 2: StructureFigure 3: Structure of of Customer.txt Figure 4: Structure of Rentalinfo.txt Car.txt

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!