Question: CS 1 1 6 Programming Fundamentals for Computer Science Lab # 5 A Objectives To learn to code, compile and run a program using file

CS 116 Programming Fundamentals for Computer Science Lab #5A
Objectives
To learn to code, compile and run a program using file input and an output file.
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. Write a program to input each of the
numbers, 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 from each record in the input file. Use the data file designated by your instructor.
Output
The 7 numbers, the highest, the lowest, their total, and average for each set of 7 numbers.
Note
Label all output clearly. Be sure your output file contains user prompts and what was entered by the
user in addition to the results of your program processing. Be sure your output file contains data that
was input in addition to the results of your program processing. Create the data file below using your
text editor or Notepad.
Data File
34613098290656117595
415948126455857187
4236041272146347119
4411909852145092571
77816816519959374
31099955619214288
466664892876634639
151649881367834369

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!