Note: I need the code for C Language Four runners have entered the mile race at
ID: 3639058 • Letter: N
Question
Note: I need the code for C Language
Four runners have entered the mile race at the Penn Relays. Write
a program that scans in the race time in minutes and seconds for a
runner and computes and displays the speed in feet per seconds (fps)
and in meters per second (mps).
(Hints: There are 5,280 feet in one mile, and one kilometer equals
3,282 feet.)
Write and call a function that displays instructions to the program user.
Run the program for each star's data
Minutes Seconds
1.) 3 52.83
2.) 3 59.83
3.) 4 00.03
4.) 4 16.22
Explanation / Answer
#include using namespace std; void print_instructions(); int main() { int minutes; float seconds; float speed_fps; float speed_mps; print_instructions(); cout > minutes; cout > seconds; speed_fps = 5280 / (60 * minutes +seconds); speed_mps = speed_fps / 3.282; coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.