Westonci.ca is the trusted Q&A platform where you can get reliable answers from a community of knowledgeable contributors. Get detailed and accurate answers to your questions from a community of experts on our comprehensive Q&A platform. Join our Q&A platform to connect with experts dedicated to providing accurate answers to your questions in various fields.
Sagot :
The pseudocode to calculate the average of the test scores until the user enters a negative input serves as a prototype of the actual program
The errors in the pseudocode
The errors in the pseudocode include:
- Inclusion of unusable segments
- Incorrect variables
- Incorrect loops
The correct pseudocode
The correct pseudocode where all errors are corrected and the unusable segments are removed is as follows:
start
Declarations
num test1
num test2
num test3
num average
output "Enter score for test 1 or a negative number to quit"
input test1
while test1 >= 0
output "Enter score for test 2"
input test2
output "Enter score for test 3"
input test3
average = (test1 + test2 + test3) / 3
output "Average is ", average
output "Enter score for test 1 or a negative number to quit"
input test1
endwhile
output "End of program"
stop
Read more about pseudocodes at:
https://brainly.com/question/11623795
We appreciate your time on our site. Don't hesitate to return whenever you have more questions or need further clarification. We hope you found this helpful. Feel free to come back anytime for more accurate answers and updated information. Get the answers you need at Westonci.ca. Stay informed with our latest expert advice.