Question
Application : This program is designed to enable users to determine which of two cars to drive to work and which route to take. (Program
Application:
This program is designed to enable users to determine which of two cars to drive to work and which route to take. (Program should be in C#)
The user selects a car, a route and enters a price for a gallon of gasoline.
Once the user clicks on the calculate button the program determines the cost of using the selected car on the selected route at that price for gasoline.
Processing:
1. The program should calculate the total cost based upon the selected automobile and the selected route when the user clicks on the Calc command button.
2.The user will need to supply the auto and route selection as well as the price of gasoline.
3. All calculations should be error trapped to keep the program from crashing. (Optional: For those of you interested in an extra challenge, program the textbox entry to allow only numeric values or one decimal to be entered (without using the masked edit textbox.)
4. The interface should never be inaccurate.
5. The Quit command button should end the program.
Additional Notes:
1. The Buick gets 23.7 miles per gallon on the freeway and 15.5 miles per gallon in the city.
2. The Chevy gets 29.3 miles per gallon on the freeway and 19.8 miles per gallon in the city.
3. Freeway distance in 33 miles.
4. City driving distance in 21 miles.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started