Question: Please show all work. QUESTION 10: Below is a tiny computer program written in a made up language. Line numbers are added for easy identification;

 Please show all work. QUESTION 10: Below is a tiny computer

Please show all work.

QUESTION 10: Below is a tiny computer program written in a "made up" language. Line numbers are added for easy identification; they are not really a part of the program. This program contains TWO errors. BEGIN PROGRAM DECLARE VARIABLE addend1 AS TYPE NUMBER; DECLARE VARIABLE addend2 AS TYPE NUMBER; DECLRAE VARIABLE sum AS TYPE NUMBER; PRINT "Enter the first addend" TO SCREEN READ addend1 FROM SCREEN; PRINT "Enter the second addend" TO SCREEN; READ addend2 FROM SCREEN; LET sum- addend1 - addend2; PRINT "Adding these two numbers together results in the answer "TO SCREEN; 2 4 6 9 10 PRINT sum TO SCREEN 11 END PROGRAM (a) Identify BOTH errors in this program. Specify the line number AND the type of error for each Explain your answers (b) What would you do to address/fix the errors? Explain fully for each error

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!