If the following pseudocode were an actual program why


You have to find out error in the following pseudocode

Question 1. If the following pseudocode were an actual program, why would it not display the 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"

Question 2. 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 = lowest + highest / 2 Display "The average is ", average, "."

Question 3. Find the error in the following pseudocode. Declare Integer value1, value2, value3, sum Set sum = value1 + value2 + value3 Display "Enter the first value." Input value1 Display "Enter the second value." Input value2 Display "Enter the third value." Input value3

Display "The sum of the number is ", sum

Question 4. Find the error in the following pseudocode. Constant Real GRAVITY = 9.81 Display "Rates of acceleration of an object in free fall:" Display "Earth: ", GRAVITY, " meters per second every second." Set GRAVITY = 1.63 Display "Moon: ", GRAVITY, " meters per second every second."

Can you help me out I am stuck in middle.

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: If the following pseudocode were an actual program why
Reference No:- TGS0944949

Expected delivery within 24 Hours