in c++ (Sum, average and product of numbers in a file) Suppose that a text file...

50.1K

Verified Solution

Question

Mechanical Engineering

in c++ (Sum, average and product of numbers in a file) Supposethat a text file Exercise13_3.txt contains six integers. Write aprogram that reads integers from the file and displays their sum,average and product. Integers are separated by blanks.

Instead of displaying the results on the screen, send theresults to an output named using your last name.

Example:

      Contents ofExercise13_3.txt:

100 95 88 97 71 67 80 81 82

     

      Contents ofYourLastName.txt:

Your first and last name

Total = 761

Average = 84.6

     

Run the program for the example above and for another examplewith 15 scores.

Answer & Explanation Solved by verified expert
3.7 Ratings (454 Votes)
include include include    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students