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
<h3>The errors in the pseudocode</h3>
The errors in the pseudocode include:
- Inclusion of unusable segments
- Incorrect variables
- Incorrect loops
<h3>The correct pseudocode</h3>
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:
brainly.com/question/11623795
Cooking steps are to recipes as: C. tasks are to development checklists.
<h3>What is an
analogy?</h3>
An analogy can be defined as a comparison between two (2) or more thing, especially for the purpose of <u>explanation</u> or clarification based on their similar characteristics, qualities and features.
A good example of an analogy is the comparison of cooking steps to recipes because they both provide the procedures involved in preparation of food such as rice, potato, beans, etc.
Similarly, <u>tasks and development checklists</u> are examples of an analogy.
Read more on analogy here: brainly.com/question/24452889
A seismogram typically measures movement in the ground (such as earth quakes or tremors)
Hypot = float( input( "How long is the hypotenuse?: " ) )
height= float( input( "What's the height?: " ) )
print( "The width is %f\n" % ( sqrt( hypot**2 - height**2 ) ) )
# I don't know how to calculate interior angles, but that shouldn't be too hard
# You'll probably need to import the math lib: import math