Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Hi there :) Language C# Please use Visual Studio 2017. There is a software which will run the written program to test if it works
Hi there :)
Language C#
Please use Visual Studio 2017.
There is a software which will run the written program to test if it works . The Program written needs to display exactly as it does in the Picture provided (The input that the user will enter will be the only different thing). The code does not have to be exact however the code needs to display exactly what the picture says.
Thank you
Requirements You are to display a table of conversions from miles per hour (MPH) to kilometres per hour (KPH) First, you must request the table row count from the user: Enter row count or quit(q): You can assume the user will always provide valid inputs(i.e. always either or an integer) If the user enters q the program should terminate If the user enters an integer, you are to display the conversion table with a row count equal to what the user entered (excluding the column headers row) according to these specifications The conversion formula is 1 KPH = 0.62137 MPH . The first row contains the column headings MPH and KPH . The second row shows the conversion of 15 MPH to KPH and each successive row leaps by an MPH of 10 The columns are left-justified and appropriately separated. Use the tab character to achieve this Each KPH is displayed with two decimal places For example, if the user enters 10 your console output should be Enter row count or quit(q): 10 MPH 15 25 35 4 5 KPH 24.14 40.23 56.33 72.42 88.51 104.61 120.70 136.79 152.89 168.98 65 75 85 95 105 Enter row count or quit(g): After a table has been displayed, the program should repeat indefinitely until the user enters q . Use the following skeleton as a basis class MilesPerHourTable public static void Main()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