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
Expert Solution
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
Recommended textbooks for you
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…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
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…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
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)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY