r me to follow

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education