C++ HELP CODE AND OUTPUT ONLY JASON, SAMANTHA, RAVI, SHEILA, AND ANKIT ARE PREPARING FOR AN UPCOMINC MARATHON. EACH DAY OF THE WEEK, THEY RUN A CERTAIN NUMBER OF MILES AND WRITE THEM INTO A NOTEBOOK. AT THE END OF THE WEEK, THEY WOULD LIKE TO KNOW THE NUMBER OF MILES RUN EACH DAY AND AVERACE MILES RUN EACH DAY. INSTRUCTIONS WRITE A PROCRAM TO HELP THEM ANALYZE THEIR DATA. YOUR PROCRAM MUST CONTAIN PARALLEL ARRAYS: AN ARRAY TO STORE THE NAMES OF THE RUNNERS AND A TWO-DIMENSIONAL ARRAY OF FIVE ROWS AND SEVEN COLUMNS TO STORE THE NUMBER OF MILES RUN EACH EACH DAY. FURTHERMORE, YOUR PROGRAM MUST CONTAIN AT LEAST THE FOLLOWING FUNCTIONS: A FUNCTION TO READ AND STORE THE RUNNERS' NAMES AND THE NUMBERS OF MILES RUN EACH DAY; A FUNCTION TO CALCULATE THE AVERACE NUMBER OF MILES RUN EACH DAY; AND A FUNCTION TO OUTPUT THE RESULTS. (YOU MAY ASSUME THAT THE INPUT **DATA IS STORED IN A FILE** AND EACH LINE OF DATA IS IN THE FOLLOWING FORM: RUNNERNAME MILESDAYI MILESDAY2 MILESDAY3 MILESDAY4 MILESDAY5 MILESDAY6 MILESDAY7.) ***THIS IS THE DATA TEXT FILE: JASON 10 15 28 25 18 20 26 SAMANTHA 15 18 29 16 26 20 23 RAVI 20 26 18 29 18 12 20 SHEILA 17 28 15 26 18 25 12 ANHIT 16 8 28 28 11 25 21 EXPECTED OUTPUT NAME DAY 1 DAY 2 DAY 3 DAY 4 DAY 5 JASON 18.80 15.08 20.80 25.80 18.00 28.0 RAVI 20.00 26.80 18.00 29.80 18.80 12.0
C++ HELP CODE AND OUTPUT ONLY JASON, SAMANTHA, RAVI, SHEILA, AND ANKIT ARE PREPARING FOR AN UPCOMINC MARATHON. EACH DAY OF THE WEEK, THEY RUN A CERTAIN NUMBER OF MILES AND WRITE THEM INTO A NOTEBOOK. AT THE END OF THE WEEK, THEY WOULD LIKE TO KNOW THE NUMBER OF MILES RUN EACH DAY AND AVERACE MILES RUN EACH DAY. INSTRUCTIONS WRITE A PROCRAM TO HELP THEM ANALYZE THEIR DATA. YOUR PROCRAM MUST CONTAIN PARALLEL ARRAYS: AN ARRAY TO STORE THE NAMES OF THE RUNNERS AND A TWO-DIMENSIONAL ARRAY OF FIVE ROWS AND SEVEN COLUMNS TO STORE THE NUMBER OF MILES RUN EACH EACH DAY. FURTHERMORE, YOUR PROGRAM MUST CONTAIN AT LEAST THE FOLLOWING FUNCTIONS: A FUNCTION TO READ AND STORE THE RUNNERS' NAMES AND THE NUMBERS OF MILES RUN EACH DAY; A FUNCTION TO CALCULATE THE AVERACE NUMBER OF MILES RUN EACH DAY; AND A FUNCTION TO OUTPUT THE RESULTS. (YOU MAY ASSUME THAT THE INPUT **DATA IS STORED IN A FILE** AND EACH LINE OF DATA IS IN THE FOLLOWING FORM: RUNNERNAME MILESDAYI MILESDAY2 MILESDAY3 MILESDAY4 MILESDAY5 MILESDAY6 MILESDAY7.) ***THIS IS THE DATA TEXT FILE: JASON 10 15 28 25 18 20 26 SAMANTHA 15 18 29 16 26 20 23 RAVI 20 26 18 29 18 12 20 SHEILA 17 28 15 26 18 25 12 ANHIT 16 8 28 28 11 25 21 EXPECTED OUTPUT NAME DAY 1 DAY 2 DAY 3 DAY 4 DAY 5 JASON 18.80 15.08 20.80 25.80 18.00 28.0 RAVI 20.00 26.80 18.00 29.80 18.80 12.0
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
![C++ HELP
CODE AND OUTPUT ONLY
JASON, SAMANTHA, RAVI, SHEILA, AND ANKIT ARE PREPARING FOR AN UPCOMING
MARATHON. EACH DAY OF THE WEEK, THEY RUN A CERTAIN NUMBER OF MILES AND
WRITE THEM INTO A NOTEBOOK. AT THE END OF THE WEEK, THEY WOULD LIKE TO
KNOW THE NUMBER OF MILES RUN EACH DAY AND AVERACE MILES RUN EACH DAY.
INSTRUCTIONS
WRITE A PROCRAM TO HELP THEM ANALYZE THEIR DATA. YOUR PROCRAM MUST
CONTAIN PARALLEL ARRAYS: AN ARRAY TO STORE THE NAMES OF THE RUNNERS AND
A TWO-OIMENSIONAL ARRAY OF FIVE ROWS AND SEVEN COLUMNS TO STORE THE
NUMBER OF MILES RUN BY EACH RUNNER EACH DAY. FURTHERMORE, YOUR PROGRAM
MUST CONTAIN AT LEAST THE FOLLOWING FUNCTIONS:
A FUNCTION TO READ AND STORE THE RUNNERS' NAMES AND THE NUMBERS OF MILES
RUN EACH DAY;
A FUNCTION TO CALCULATE THE AVERACE NUMBER OF MILES RUN EACH DAY;
AND A FUNCTION TO OUTPUT THE RESULTS. (YOU MAY ASSUME THAT THE INPUT
**DATA IS STORED IN A FILE** AND EACH LINE OF DATA IS IN THE FOLLOWING FORM:
RUNNERNAME MILESDAY1 MILESDAY2 MILESDAY3 MILESDAY4 MILESDAY5 MILESDAY6
MILESDAY7.)
***THIS IS THE DATA TEXT FILE:
JASON 18 15 20 25 18 20 26
SAMANTHA 15 18 29 16 26 20 23
RAVI 28 26 18 29 18 12 28
SHEILA 17 20 15 26 18 25 12
ANKIT 16 8 28 20 11 25 21
EXPECTED OUTPUT
NAME DAY 1 DAY 2 DAY 3 DAY 4 DAY 5
JASON 18.80 15.08 20.00 25.00 18.00 28.8
RAVI 20.00 26.00 18.00 29.00 18.00 12.0](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F7fb300e5-ad83-4abe-b276-c9cba5e939d0%2F6f5ede51-4eb2-45d2-8f5a-16b2b4fe83ca%2Fqcc7cce_processed.jpeg&w=3840&q=75)
Transcribed Image Text:C++ HELP
CODE AND OUTPUT ONLY
JASON, SAMANTHA, RAVI, SHEILA, AND ANKIT ARE PREPARING FOR AN UPCOMING
MARATHON. EACH DAY OF THE WEEK, THEY RUN A CERTAIN NUMBER OF MILES AND
WRITE THEM INTO A NOTEBOOK. AT THE END OF THE WEEK, THEY WOULD LIKE TO
KNOW THE NUMBER OF MILES RUN EACH DAY AND AVERACE MILES RUN EACH DAY.
INSTRUCTIONS
WRITE A PROCRAM TO HELP THEM ANALYZE THEIR DATA. YOUR PROCRAM MUST
CONTAIN PARALLEL ARRAYS: AN ARRAY TO STORE THE NAMES OF THE RUNNERS AND
A TWO-OIMENSIONAL ARRAY OF FIVE ROWS AND SEVEN COLUMNS TO STORE THE
NUMBER OF MILES RUN BY EACH RUNNER EACH DAY. FURTHERMORE, YOUR PROGRAM
MUST CONTAIN AT LEAST THE FOLLOWING FUNCTIONS:
A FUNCTION TO READ AND STORE THE RUNNERS' NAMES AND THE NUMBERS OF MILES
RUN EACH DAY;
A FUNCTION TO CALCULATE THE AVERACE NUMBER OF MILES RUN EACH DAY;
AND A FUNCTION TO OUTPUT THE RESULTS. (YOU MAY ASSUME THAT THE INPUT
**DATA IS STORED IN A FILE** AND EACH LINE OF DATA IS IN THE FOLLOWING FORM:
RUNNERNAME MILESDAY1 MILESDAY2 MILESDAY3 MILESDAY4 MILESDAY5 MILESDAY6
MILESDAY7.)
***THIS IS THE DATA TEXT FILE:
JASON 18 15 20 25 18 20 26
SAMANTHA 15 18 29 16 26 20 23
RAVI 28 26 18 29 18 12 28
SHEILA 17 20 15 26 18 25 12
ANKIT 16 8 28 20 11 25 21
EXPECTED OUTPUT
NAME DAY 1 DAY 2 DAY 3 DAY 4 DAY 5
JASON 18.80 15.08 20.00 25.00 18.00 28.8
RAVI 20.00 26.00 18.00 29.00 18.00 12.0
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Recommended textbooks for you
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
![Concepts of Database Management](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY