CIS 123 – COMPUTER PROGRAMMING II
Jacqueline Emslie, Instructor
ASSIGNMENT #3 – CAR RENTAL
This assignment is worth 10 points towards your Programming Assignments grade.
PROJECT SPECIFICATIONS :
Given input, processing and output specifications, write a C# program to determine the
total charge for renting a car. This will be a Windows form project.
INPUT:
There are four input fields:
Number of Days – integer only
Number of Miles – integer only
Daily fee – double
Charge per Mile – double
PROCESS:
1 – Make sure that the number of days and number of miles are both integers.
2 – Make sure that the daily fee and charge per mile are both doubles
3 – if any field has an error, display an error message in a label
4 – if all fields are acceptable, calculate the total charge. Use a button to do this.
(Number of days * daily fee) + (number of miles * charge per mile)
5 – display the total charge in a label
NOTES:
Be sure to use at least one try/catch.
Remember this is a Windows form project.
PROJECT FORMAT:
Please submit the following in the Student Drop Box by the due date:
1) Zip up the entire project – worth 7 points
3) I will run the program and check the output for accuracy – worth 3 points
20190805161755123_asgn_3_summer_version
1