Homework #1 - Rental Car Calculator
Submit Assignment Download Runtime
Task:
- Create a project for the local car rental agency that calculates rental charges. The agency charges $40 per day plus $0.25 per mile.
Form:
Code:
- Include an event procedure for each button. For the calculation, subtract the beginning odometer reading from the ending odometer reading to get the number of miles traveled. Use a constant for the $40 per day charge and the $0.25 mileage rate.
- Display a message to the user for any bad input data.
For Full Credit:
- Program must be well documented and controls well named according to standards.
- Data must be validated and formatted appropriately
- You must use CONSTANTS for the daily charge and mileage rates in your calculation.
- Results for miles driven and total charges must match Runtime answers
- Calculate, Clear, Exit buttons must all be functional