Question: If the following pseudocode were an actual program, why would it not display the The following code will not display the results expected by the
If the following pseudocode were an actual program, why would it not display the The following code will not display the results expected by the programmer. Can
you find the error?
Declare Real lowest, highest, average
Display "Enter the lowest score."
Input lowest
Display "Enter the highest score."
Input highest
Set average low high
Display "The average is average,
Find the error in the following pseudocode.
Display "Enter the length of the room."
Input length
Declare Integer length
Find the error in the following pseudocode.
Declare Integer value value value sum
Set sum value value value
Display "Enter the first value."
Input value Declare Integer value value value sum
Set sum value value value
Display "Enter the first value."
Input value
Display "Enter the second value."
Input value
Display "Enter the third value."
Input value
Display "The sum of numbers is sum
Find the error in the following pseudocode.
Declare Real pi
Set pi
Display "The value of pi is pi
Find the error in the following pseudocode.
Constant Real GRAVITY
Display "Rates of acceleration of an object in free fall:"
Display "Earth: GRAVITY, meters per second every second."
Set GRAVITY
Display "Moon: GRAVITY, meters per second every second."
output that the programmer expects?
Declare String favoriteFood
Display "What is the name of your favorite food?"
Input favoriteFood
Display "Your favorite food is
Display "favoriteFood"
If the programmer translates the following pseudocode to an actual programming
language, a syntax error is likely to occur. Can you find the error?
Declare String stPrize
Display "Enter the award for first prize."
Input stPrize
Display "The first prize winner will receive stPrize
The following code will not display the results expected by the programmer. Can
you find the error?
Declare Real lowest, highest, average
Display "Enter the lowest score."
Input lowest
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
