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 #include using namespace std;

int main() { ifstream

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 Databases Questions!