r me to follow

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter7: File Handling And Applications
Section: Chapter Questions
Problem 15RQ
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

** please do not send duplicate codes if you have already attempted this program, 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 2 steps with 1 images

Blurred answer
Knowledge Booster
System Management Strategies
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
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,