Assigned | February 28, 2005 |
Design Due | 11:59pm on March 6, 2005 |
Program Due | 11:59pm on March 13, 2005 |
Updates |
Weekly Charge | Daily Charge | Mileage Charge | |
---|---|---|---|
GOLD Card Member | $150.00 | $30.00 | First 200 miles FREE
$0.20 per mile over 200 miles |
PLATINUM Card Member | $100.00 | $20.00 | First 250 miles FREE
$0.12 per mile over 250 miles |
Under 25 | 25 and Over | |
---|---|---|
GOLD Card Member | $15.00 | $10.00 |
PLATINUM Card Member | $8.00 | $6.00 |
Insurance premiums are NOT prorated. |
You will implement three C++ class which will be used by the main portion of your program. One class will be implemented to model the car reservation system, one class will model a car and one class will model a customer.
Code from project 1 should be reusable in project 2.
Note that not all of the programming details have been spelled out for you. For example, the project description indicates that a customer balance due the company must be printed, but there's no specification about where that data should be stored. Also, the reservation system must keep track of which car is rented by whom, but there's no indication about how that should be done. This is intentional....you are required to give the project design serious thought before writing code.
You must provide the makefile for this project. Use the makefile provided to you for project 1 and modify it appropriately. If you don't change the names of the files from project 1, the changes will be minimal.
The graders will be typing the command make Proj2 when they grade your project. This command must cause all .cpp files to be compiled and the executable named Proj2 to be created.
The make utility can also be used for compiling a single program without linking. For example, to compile Box.cpp, type make Box.o.
In addition to compiling and linking your files, make can be used for maintaining your directory. Typing make clean will remove any extraneous files in your directory, such as .o files and core files. Typing make cleanest will remove all .o files, core, Proj2, and backup files created by the editor. More information about these commands can be found at the bottom of the makefile.
The grade for this project will be broken down as follows. A more detailed breakdown will be provided in the grade form you receive with your project grade.
You can check to see what files you have submitted by typing
More complete documentation for submit and related commands can be found here.
Remember -- if you make any change to your program, no matter how insignificant it may seem, you should recompile and retest your program before submitting it. Even the smallest typo can cause compiler errors and a reduction in your grade.
Avoid unpleasant surprises!
Be sure to use the submitmake and submitrun utilities provided for you to compile, link and run your program after you've submitted it.