File I/O Exercise:
Write a program called
to input 10 float values from an input file
. (Hint, you have to create input.txt file)
Output the sum and the average of the 10 float values to an output file
Compile and run this C++ program.
Show your lab instructor the output file
Get ready for next week (Lab Test)
Rename your program lab10.cpp to your_name_studentnumber.cpp
Example: If your name is John Smith and your student number is 200278345. Your program
should be renamed to
Email the program to
. Your lab instructor will tell you which temp account # to use.
The subject of your email should be
your name and student number
Call you lab instructor when you are done.
Copyright: Department of Computer Science, University of Regina.