Assignment Plan and code a program utilizing one file for input and one file for output to solve the following problem: A file contains 7 numbers per line and contains several records. The number of records could vary and it's unknown. Write a program to read each number in a record, find the highest number, the lowest number, their total and average. Output the numbers, the highest, lowest, total, and average for each set of 7 numbers to another file. Input 7 numbers per record in the input file. Output The 7 numbers, the highest, the lowest, their total, and average for each record. Label all output clearly. Be sure your output file contains data that was input in addition to the results of your program processing. Run Create the data file below using your text editor or Notepad. Run with the following data: 346 130 982 90 656 117 595 415 948 126 4 558 571 87 119 571 42 360 412 721 463 47 441 190 985 214 509 77 81 681 651 995 93 74 310 9. 995 561 92 14 288 892 766 34 639 466 151 664 64 98 813 67 834 369 Turn In Turn in source code, the input file, and the output file.

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...
icon
Related questions
Question

please complete the program in C++, and please avoid using any strings or advanced manipulators. I would appreaciate also if you left comments in the code for me to follow along! thanks

 

Assignment
Plan and code a program utilizing one file for input and one file for output to solve the following problem:
A file contains 7 numbers per line and contains several records. The number of records could vary and it's unknown.
Write a program to read each number in a record, find the highest number, the lowest number, their total and average.
Output the numbers, the highest, lowest, total, and average for each set of 7 numbers to another file.
g one
Input
7 numbers per record in the input file.
Output
The 7 numbers, the highest, the lowest, their total, and average for each record. Label all output clearly. Be sure your
output file contains data that was input in addition to the results of your program processing.
Run
Create the data file below using your text editor or Notepad. Run with the following data:
346
130
982
90
656
117
595
415
948
126
4
558
571
87
42
360
412
721
463
47
119
190
985
214
509
2
571
441
77
81
681
651
995
93
74
995
561
92
14
288
310
9.
664
892
8.
766
34
639
466
64
98
813
67
834
369
151
Turn In
Turn in source code, the input file, and the output file.
Transcribed Image Text:Assignment Plan and code a program utilizing one file for input and one file for output to solve the following problem: A file contains 7 numbers per line and contains several records. The number of records could vary and it's unknown. Write a program to read each number in a record, find the highest number, the lowest number, their total and average. Output the numbers, the highest, lowest, total, and average for each set of 7 numbers to another file. g one Input 7 numbers per record in the input file. Output The 7 numbers, the highest, the lowest, their total, and average for each record. Label all output clearly. Be sure your output file contains data that was input in addition to the results of your program processing. Run Create the data file below using your text editor or Notepad. Run with the following data: 346 130 982 90 656 117 595 415 948 126 4 558 571 87 42 360 412 721 463 47 119 190 985 214 509 2 571 441 77 81 681 651 995 93 74 995 561 92 14 288 310 9. 664 892 8. 766 34 639 466 64 98 813 67 834 369 151 Turn In Turn in source code, the input file, and the output file.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
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 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)
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
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY