Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1- Write a pseudo/algorithm to compute the equivalent resistance of the standard

ID: 3862351 • Letter: 1

Question

1- Write a pseudo/algorithm to compute the equivalent resistance of the standard deviation of 3 numbers N1, N2, N3.

• The standard deviation is found as follows:

• compute number averages as ST= (N1+N2+N3)/3

• Then compute the terms (N-ST)^2 , (N2-ST)^2, and (N3-ST)^2

• Then add the above 3 terms

• Then find the square root of the sum of the 3 terms

• Algorithm should display messages at requesting inputs as follows:

Please enter 3 numbers to find the standard deviations for:

• Display the output message as follows:

The standard deviation of 3 numbers N1 (show values entered), N2 (show value entered), N3 (show value entered) is ST ( Show computed value).

Algorithm should ensure the inputs are of valid values of integers or real floating numbers

Explanation / Answer

Alogirthm: StandardDeviation()
//Input: No input to this algorithm.
//Output: No output from this algorithm.
//Description: This algorithm reads 3 values from the user, and will print the
//       standard deviation of the three numbers to the screen.
Prompt: "Please enter 3 numbers to find the standard deviations for: "
N1 := ReadInput()
N2 := ReadInput()
N3 := ReadInput()
if N1 is not Number or N2 is not Number or N3 is not Number:
   Display: "You should enter only numbers as input."
   StandardDeviation()
ST := (N1 + N2 + N3) / 3.0
New1 := (N1 - ST) * (N1 - ST)
New2 := (N2 - ST) * (N2 - ST)
New3 := (N3 - ST) * (N3 - ST)

STD := (New1 + New2 + New3)

STDFinal := Sqrt(STD)

Display: "The standard deviation of 3 numbers", N1, N2, N3, " is ", STDFinal