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 Programming Fundamentals for Computer Science Lab #A
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 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 numbers to another file.
Input
numbers from each record in the input file. Use the data file designated by your instructor.
Output
The numbers, the highest, the lowest, their total, and average for each set of 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
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
