Question: Create a C# Form with a textbox and a button. The box is for a user to enter a number of length in inches. And

Create a C# Form with a textbox and a button. The box is for a user to enter a number of length in inches. And when the user clicks the button, the program displays the equivalent number of miles, feet and inches using a MessageBox.Show method. We know one foot has 12 inches, and one mile has 63,360 inches. If the length entered is less than 12 inches, your program should only display the inches; if the length is at least 12 and less than 63,360 inches, your program should display feet and inches; if the length is greater than or equal to 63,360 inches, your program should display miles, feet and inches. Use the following data to test your program:

7 inches: Your program shows: 7 inches (dont show 0 mile and 0 foot)

12500 inches: Your program shows: 1041 feet, 8 inches (dont show 0 miles)

200000 inches: Your program shows: 3 miles, 826 feet, 8 inches

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!