Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a C++ program that prompts the user for as many as 100 floating point numbers. Then, the program should perform the following tasks in

image text in transcribed

Write a C++ program that prompts the user for as many as 100 floating point numbers. Then, the program should perform the following tasks in the given order. Each task should be performed by a separate function/method: a. Store the numbers in an "array" -- can be a traditional array/template based array/vector -- you decide. b. Compute the average of the numbers stored in the "array". c. Compute the standard deviation of the numbers stored in the "array" (see below). d. Output the contents of the "array". e. Report the average and the standard deviation. Test your program with at least the following sets of numbers: I) 1.23 2.34 3.45 4.56 5.67 II) 100 200 300 400 500 600 700 800 900 1000 III) 10.123 20.234 30.345 40.456 50.567 IV) 1 1 1 1 1 V) 1 2 3 4 5 6 7 8 9 10 Formula (mathematical) for standard deviation

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database 101

Authors: Guy Kawasaki

1st Edition

0938151525, 978-0938151524

More Books

Students also viewed these Databases questions