Use a sentinel-controlled loop to read positive numbers and compute and display their sum. Terminate input when a negative number is entered.

What will be an ideal response?


00 +1009 (Read Value)
01 +2009 (Load Value)
02 +4106 (Branch negative to 06)
03 +3008 (Add Sum)
04 +2108 (Store Sum)
05 +4000 (Branch 00)
06 +1108 (Write Sum)
07 +4300 (Halt)
08 +0000 (Storage for Sum)
09 +0000 (Storage for Value)

Computer Science & Information Technology

You might also like to view...

What is bottom-up testing?

What will be an ideal response?

Computer Science & Information Technology

Write the same code using the designed loop structure. You are not writing complete programs!

Write a for loop and a do while loop that writes the numbers 13 to 24. The list of numbers should be on one line in the output window, separated by a comma, like this: 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24

Computer Science & Information Technology

When you enter data using a form, the data in the underlying table is also updated

Indicate whether the statement is true or false

Computer Science & Information Technology

What is the aspect ratio of the SXGA video mode?

A. 5:4 B. 4:3 C. 16:9 D. 16:10

Computer Science & Information Technology