Write a program that asks the user to enter five


Program 1: Write a program that asks the user to enter five floating-point numbers. The program should create a file and save all five numbers to the file.

Program 2• The program should open the file created in Program 1 and ask the user to enter another five floating-points numbers and save all five numbers to the file, calculate the average of all ten numbers in the file and finally display the average and save the average to the file.

 

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Write a program that asks the user to enter five
Reference No:- TGS0664287

Now Priced at $40 (50% Discount)

Recommended (95%)

Rated (4.7/5)