Use a counter-controlled loop to read seven numbers, some positive and some negative, then compute and display their average.

What will be an ideal response?


00 +2018 (Load Counter)
01 +3121 (Subtract Termination)
02 +4211 (Branch zero to 11)
03 +2018 (Load Counter)
04 +3019 (Add Increment)
05 +2118 (Store Counter)
06 +1017 (Read Value)
07 +2016 (Load Sum)
08 +3017 (Add Value)
09 +2116 (Store Sum)
10 +4000 (Branch 00)
11 +2016 (Load Sum)
12 +3218 (Divide Counter)
13 +2120 (Store Result)
14 +1120 (Write Result)
15 +4300 (Halt)
16 +0000 (Variable Sum)
17 +0000 (Variable Value)
18 +0000 (Variable Counter)
19 +0001 (Variable Increment)
20 +0000 (Variable Result)
21 +0007 (Variable Termination)

Computer Science & Information Technology

You might also like to view...

When an optical fiber is used to extend a connection to a LAN, what additional devices are needed?

What will be an ideal response?

Computer Science & Information Technology

Destructors are automatically called whenever an object goes out of scope.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

The Building Block Gallery content control is used when the user selects a built-in building block from the gallery.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Case-based Critical Thinking Questions Case 2-1 Casey is using XML to store information about the students in the science classes that he teaches. He wants to design a DTD that he can use to validate the XML documents that he uses for this purpose, and he comes to you for help. Casey next wants to write a declaration for an element named "advanced" that he will use to record the fact that a student is advanced. This element will not contain any content. Which of the following is an appropriate element declaration for this element?

A. B. C. D.

Computer Science & Information Technology