Question: C++ need help Assume that a file has been created named Numbers.txt. This file contains five numbers that are separated by spaces. In the space
C++ need help
Assume that a file has been created named "Numbers.txt". This file contains five numbers that are separated by spaces.
In the space below write a program that does the following:
opens the file,
reads each five numbers into five double variables
calculates the average of the numbers and displays (to the screen)
Use the ifstream object inFile to read your data.
The program headers have been defined for you.
//Cacluating averages //Data in file: Numbers.txt
#include
int main() { ifstream
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
