Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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 errorStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started