Miles per Gallon Calculator
Create an application that calculates a car’s gas mileage. The formula for calculating the miles that a car can travel per gallon of gas is:

In the formula MPG is miles-per-gallon, miles is the number of miles that can be driven 011 a full tank of gas, and gallons is the number of gallons that the tank holds.
The application’s form should have TextBox controls that let the user enter the number of gallons of gas thetank holds, andthe number of miles thecar can be driven on a full tank. When the Calculate MPG button is clicked, the application should display the number ofmiles that the car can he driven per gallon of gas. I he form should also have a Clear button that clears the input and results, and an Exit button that ends the application. The application’s form should appear as shown in Figure 1.
Figure 1

Use the following set of test data to determine if the application is calculating properly:
Gallons | Miles | Miles per Gallon |
10 12 15 | 375 289 190 | 37.50 24.08 12.67 |
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.