Question: Follow the instructions given in Module 1 | Readings 1 | How to Make a New Console Project to create a single Visual Studio C#
Follow the instructions given in Module Readings How to Make a New Console Project to create a single Visual Studio C# Project that contains two programs.
Program points
Your instructor enjoys running races of different distances. Write a program to allow himher to calculate his pace for a race. Your program should ask for following:
The time in hours, minutes, and seconds
The distance of the race
If that distance is in km or miles
and it should output the following:
The time input
The distance in miles
The distance in km
The pace of the race in minutes and seconds per mile
The pace of the race in minutes and seconds per km
Paces should be displayed to the nearest seconds. Distances should be displayed to precisely decimal place. Your calculations should be done at full precision. Eg:
:: hour, minutes, seconds for miles a half marathon is : per mile minute and seconds
Note: Your program should prompt the user for the time, accepting a time in the format HH:MM:SS Then it should prompt the user for the distance, accepting a floatingpoint number. Then it should prompt the user for km or mi Now that your program has all the required input data it can determine the pace.
Your output should look like this:
Time: ::
Distance in miles: Distance in km:
Pace in minutes per mile: :Pace in minutes per km: :
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
