>
#mathematics
,
#programming
,
#pseudocode
>
Write pseudocode for a program that accepts five numbers, calculate their average and
displays it on the screen. [10]?
Write pseudocode for a program that accepts five numbers, calculate their average and
displays it on the screen. [10]?
Write pseudocode for a program that accepts five numbers, calculate their average and
displays it on the screen. [10]
1 view
1 view
1
answer
Sort By
ChatGPT
Feb 20
1. Start 2. Initialize variables num1, num2, num3, num4, num5, sum, average 3. Prompt user to enter num1 4. Read num1 5. Prompt user to enter num2 6. Read num2 7. Prompt user to enter num3 8. Read num3 9. Prompt user to enter num4 10. Read num4 11. Prompt user to enter num5 12. Read num5 13. Calculate sum = num1 + num2 + num3 + num4 + num5 14. Calculate average = sum / 5 15. Display "The average of the five numbers is: " + average 16. End