Question: Using Visual Studio, design and write the code for the application. Application: Gas Bill Application: This program allows users to enter the city, state, total

Using Visual Studio, design and write the code for the application.

Application:

Gas Bill Application: This program allows users to enter the city, state, total distance (miles), price of a gallon of gas ($). When a user clicks on the Calculate button, the program calculates the gas bill and displays a summary of the entered information and the result inside a label. The wording of the output should be exactly as shown in the example below. Also, use the Math.Round method to round the final result to 2 decimal spaces. There should be two buttons: Calculate button and Exit button. The exit button closes the program. Use this formula to calculate the gas bill (we assume an average of 23.6 miles per gallon): (total distance / 23.6) * price of a gallon of gas

Example:

Enter the city: Ypsilanti Enter the state: Michigan Enter the total distance (miles): 100 Enter the price of a gallon of gas ($): 2.21 Output: The price of a gallon of gas in Ypsilanti Michigan, is $2.21. It costs $9.36 to drive 100 miles.

Specifications

Choose an appropriate name for your solution/project

Change the Name/Text properties of the controls and use prefixes (abbreviations)

Change the following properties of your form (AcceptButton, CancelButton, Text)

Assign an AccessKey to each button.

Make sure the tab order is correct.

Include comments in your code.

I just need a sample picture with coding on it. Thank you, C# course Visual studio

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!