5/5 – (1 vote)
Write a C# program named MilesToFeet that declares a named constant that holds the number of feet in a mile: 5280. Also declare a variable to represent the distance in miles between your house and your uncle s house. Assign an appropriate value to the variablefor example: Compute and display the distance to your uncle s house in both miles and feet Display explanatory text with the valuesfor example: The distance to my uncles house is 8.5 miles or 44880 feet
Convert the MilesToFeet class to an interactive application named MilesToFeetInteractive Instead of assigning a value to the distance, accept the value from the user as input.
Reviews
There are no reviews yet.