Question
Using C++ programming (please put explination how to create the input.txt file ---------------------------------------------------------------------------------------- Using the lab samples as a starting point, write a program called
Using C++ programming
(please put explination how to create the input.txt file"
----------------------------------------------------------------------------------------
Using the lab samples as a starting point, write a program called lab4.cpp to input 10 float values from an input file input.txt. (Hint, you have to create the input.txt file yourself)
Output the sum and the average of the 10 float values to an output file output.txt.
Be sure to test to see if you opened the input and output files before you use them.
Compile and run this C++ program.
Run the program for your lab instructor and show the result in output.txt
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started