Question: 1) 1. Declare variables total, mean, in_number, count (as integer), in_value (as string) 2. Assign 0.0 to total and 0 to count 3. Display Enter

1) 1. Declare variables total, mean, in_number, count (as integer), in_value (as string)

2. Assign 0.0 to total and 0 to count

3. Display Enter the first number

4. Get in_value

5. While in_value is a number

5.1. Compute in_number as in_value converted to a number.

5.2. Compute total as the sum of total and in_number

5.3. Increment count

5.4. Display Enter the next number or press Return to calculate the average

5.5. Get in_value

6. While end

7. If in_value is the Return character THEN

7.1. Compute mean as total divided by the (maximum of count and 1)

7.2. Display The average of the entered numbers is , mean

8. Else

8.1. Display Invalid number entered: , in_value

9. End if

For the algorithm above, what is the number output if the input is 7 3 1 9 Return?

2)1) 1. Declare variables total, mean, in_number, count (as integer), in_value (as

Which of the following input will test exception handling for a code that uses the lines? . Getx Assign 1/(x*x+1) to A Exception handling is not required for the pseudocode O 1 -1 10 the the power-32

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!