Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Pseudocode: STEP - 1 : Accumulate input data Initialize n to zero, initialize array numbers _ x to 0 dimension array. Prompt user for first

Pseudocode:
STEP -1: Accumulate input data
Initialize n to zero, initialize array numbers_x to 0 dimension array.
Prompt user for first positive number and note that "Entering -1 will end the process."
Read in first x
while x0
nlarrn+1
-?x[n]=x
Prompt user for next number
Read in next x
End
STEP -2: Calculate mean and Standard Deviation
,x?bar larr sum_x / n
std_dev larr sqrt( FILL IN THE BLANKS )
STEP-3: Write Out the results
Write out the mean value x_bar
Write out the standard deviation std_dev
Write out the number of input data points n
Additional Questions:
List the conditions when above program will fail.
How can you avoid these possible errors programmatically and change "-1" exit flag to
any letter?
image text in transcribed

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

Practical Database Programming With Visual C# .NET

Authors: Ying Bai

1st Edition

0470467274, 978-0470467275

More Books

Students also viewed these Databases questions

Question

What is conservative approach ?

Answered: 1 week ago

Question

What are the basic financial decisions ?

Answered: 1 week ago

Question

In an Excel Pivot Table, how is a Fact/Measure Column repeated?

Answered: 1 week ago