Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is for c# programming languesge Your instructor enjoys running races of different distances. Write a program to allow him to calculate his pace for

This is for c# programming languesge

Your instructor enjoys running races of different distances. Write a program to allow him 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 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 1 decimal place. Your calculations should be done at full precision. E.g: 1:53:30 (1 hour, 53 minutes, 30 seconds) for 13.1 miles (a half marathon) is 8:40 per mile (8 minute and 40 seconds) Your output should look like this Time: 1:53:30 Distance in miles: 13.1 Distance in km: 21.1 Pace in minutes per mile: 8:40 Pace in minutes per km: 5:23

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Application Development And Design

Authors: Michael V. Mannino

1st Edition

0072463678, 978-0072463675

More Books

Students also viewed these Databases questions