Analysis of Fitness Performance Five participants in a fitness program; Musa, Husna, Ehsan, Hanna, and Lukman are keep track of the number of calories burned each time they use the gym. At every alternate day, they jot down their time spent to do an exercise and the calories burned. At the end of the week, they would like to know how many minutes they spent each day, the average time for each week, the average number of calories burned they achieved as well as the highest calories burned. Write a program that reads the data recorded by the five participants that contain the following: а. An array to store the names of the five participants and a two-dimensional array of five rows and eight columns of type double to store the times and calories burned for each participant. b. A function named read_data() to read data from the user and display the participant's names and the time (in minutes) spent and the calories burned (in kcal) each exercise day. Parcipant's name should be stored in a one- dimensional array of type string. C. A function to find the total time and calories burned by each participant and the highest calories burned at the end of the week. The data is given to you as shown below. The data is read in sequence as follows; first input is the name of the participant, the second, fourth, sixth and the eighth columns are the time spent (in minutes). The third, fifth, seventh, and ninth columns are the calories burned for each exercise. Sample Input: Musa 40 345 50 230 45 400 40 380 Husna 45 300 50 350 50 400 55 420 Ehsan 60 350 60 380 60 400 60 440 Hanna 70 280 90 300 80 320 90 350 Lukman 55 400 60 400 75 420 80 430

Np Ms Office 365/Excel 2016 I Ntermed
1st Edition
ISBN:9781337508841
Author:Carey
Publisher:Carey
Chapter6: Managing Multiple Worksheets And Workbooks
Section: Chapter Questions
Problem 4.4CP
icon
Related questions
Question
Analysis of Fitness Performance
Five participants in a fitness program; Musa, Husna, Ehsan, Hanna, and Lukman are keep track of the number of calories
burned each time they use the gym. At every alternate day, they jot down their time spent to do an exercise and the
calories burned. At the end of the week, they would like to know how many minutes they spent each day, the average
time for each week, the average number of calories burned they achieved as well as the highest calories burned. Write a
program that reads the data recorded by the five participants that contain the following:
a.
An array to store the names of the five participants and a two-dimensional array of five rows and eight
columns of type double to store the times and calories burned for each participant.
b.
A function named read_data() to read data from the user and display the participant's names and the time (in
minutes) spent and the calories burned (in kcal) each exercise day. Parcipant's name should be stored in a one-
dimensional array of type string.
C.
A function to find the total time and calories burned by each participant and the highest calories burned at the
end of the week.
The data is given to you as shown below. The data is read in sequence as follows; first input is the name of the participant,
the second, fourth, sixth and the eighth columns are the time spent (in minutes). The third, fifth, seventh, and ninth
columns are the calories burned for each exercise.
Sample Input:
Musa
40
345
50
230
45
400
40
380
Husna
45
300
50
350
50
400
55
420
Ehsan
60
350
60
380
60
400
60
440
Hanna
70
280
90
300
80
320
90
350
Lukman
55
400
60
400
75
420
80
430
Transcribed Image Text:Analysis of Fitness Performance Five participants in a fitness program; Musa, Husna, Ehsan, Hanna, and Lukman are keep track of the number of calories burned each time they use the gym. At every alternate day, they jot down their time spent to do an exercise and the calories burned. At the end of the week, they would like to know how many minutes they spent each day, the average time for each week, the average number of calories burned they achieved as well as the highest calories burned. Write a program that reads the data recorded by the five participants that contain the following: a. An array to store the names of the five participants and a two-dimensional array of five rows and eight columns of type double to store the times and calories burned for each participant. b. A function named read_data() to read data from the user and display the participant's names and the time (in minutes) spent and the calories burned (in kcal) each exercise day. Parcipant's name should be stored in a one- dimensional array of type string. C. A function to find the total time and calories burned by each participant and the highest calories burned at the end of the week. The data is given to you as shown below. The data is read in sequence as follows; first input is the name of the participant, the second, fourth, sixth and the eighth columns are the time spent (in minutes). The third, fifth, seventh, and ninth columns are the calories burned for each exercise. Sample Input: Musa 40 345 50 230 45 400 40 380 Husna 45 300 50 350 50 400 55 420 Ehsan 60 350 60 380 60 400 60 440 Hanna 70 280 90 300 80 320 90 350 Lukman 55 400 60 400 75 420 80 430
Sample Output:
Participant
Time
Calories Time
Calories Time
Calories Time
Calories
Musa
40
345
50
230
45
400
40
380
Husna
45
300
50
350
50
400
55
420
Ehsan
60
350
60
380
60
400
60
440
Hanna
70
280
90
300
80
320
90
350
Lukman
55
400
60
400
75
420
80
430
Participant
Average Time
Average Calories Burned Highest Calories Burned
Musa
43.75
338.75
400.00
Husna
50.00
367.50
420.00
Ehsan
60.00
392.50
440.00
Hanna
82.50
312.50
350.00
Lukman
67.50
412.50
430.00
Transcribed Image Text:Sample Output: Participant Time Calories Time Calories Time Calories Time Calories Musa 40 345 50 230 45 400 40 380 Husna 45 300 50 350 50 400 55 420 Ehsan 60 350 60 380 60 400 60 440 Hanna 70 280 90 300 80 320 90 350 Lukman 55 400 60 400 75 420 80 430 Participant Average Time Average Calories Burned Highest Calories Burned Musa 43.75 338.75 400.00 Husna 50.00 367.50 420.00 Ehsan 60.00 392.50 440.00 Hanna 82.50 312.50 350.00 Lukman 67.50 412.50 430.00
Expert Solution
steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Decision Making Process
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Operations Research : Applications and Algorithms
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole
Fundamentals of Information Systems
Fundamentals of Information Systems
Computer Science
ISBN:
9781305082168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
Principles of Information Systems (MindTap Course…
Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781285867168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning