Question: solve this question by c programming language PROBLEM 1: Jogging Tracker (30 points). Consider yourself as a fitness enthusiast who jogs for 5 days a

solve this question by c programming language
solve this question by c programming language PROBLEM 1: Jogging Tracker (30

PROBLEM 1: Jogging Tracker (30 points). Consider yourself as a fitness enthusiast who jogs for 5 days a week, from Monday to Friday. Write a program that takes the distance of jogging as input for these five days and computes the average distance for the week. The program should ask the user for the number of miles jogged on each day (Monday to Friday) and save the values in five different variables. The program should first calculate the total miles jogged and store the result in a new variable named sum. The program should then compute the average miles and store it in a new variable named average. Display the total and the average distances on the screen. Name your program file as Hw1_91_code.c TIP: Use scanf and printf functions. Also use float/double data type for all variables. Example input: (Text in purple is what the program should print on the screen to instruct the user, text in black is what the user types in) Input the miles jogged on Monday: 5.5 Input the miles jogged on Tuesday: 1.2 Input the miles jogged on Wednesday: 2.3 Input the miles jogged on Thursday: 4 Input the miles jogged on Friday: 3.4 Example output: Sum = 16.4 miles Average = 3.28 miles

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!