c++

profiletatanga

Write a program that takes its input from a file of numbers of type double.  Use these numbers:  12.4, 5.8, 32.67, 78.9, 100.99.

Have the program calculate the average of the numbers and output the following to a file:  "The average of 12.4, 5.8, 32.67, 78.9 and 100.99 is   (put the answer here)"

Upload the .cpp file, the input file and the output file.

    • 6 years ago
    • 10
    Answer(1)

    Purchase the answer to view it

    blurred-text
    NOT RATED
    • attachment
      Source.cpp
    • attachment
      input.txt