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
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