Answered step by step
Verified Expert Solution
Link Copied!

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;

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Understanding Databases Concepts And Practice

Authors: Suzanne W Dietrich

1st Edition

1119827949, 9781119827948

More Books

Students also viewed these Databases questions

Question

9. Power and politics can be destructive forces in organizations.

Answered: 1 week ago