Design a Windows application and write the code that will execute according
Design a Windows application and write the code that will execute according to the program requirements below. A user can enter the miles per gallon of two vehicles, the cost of fuel, the mileage driven each year, and the years that they intend to own the car;
1. Calculate total fuel cost based on the cost of fuel, the mileage driven each year, and the number of years. You can use the following way of calculation:
Calculate the fuel cost for two types of vehicles. The difference in the cost is also displayed.
2. The screenshot of a suggested design is as the follows. You can make up the options in the drop down list for Years of Ownership (1-10 years).
Fuel Coast Per Gallon 3.00
Miles Traveled Per Year 1000
Years of Vehicle Ownership 10
SUV MPG 20
Compact Car MPG 30
Compare Life of Vehicle cost (btnCompareLifeOfVehicleCost)
SUV Gas Coast $1,500,000
Compact Gas Cost $1,000,00
Difference in Coast $500.00
12 years ago
Purchase the answer to view it
- comparefuelcost.zip