Modify the example program immediately preceding these practice problems to produce the following output: —8, —5, —2, 1, 4, 7, 10.

What will be an ideal response?


Replace LET n = 200
Replace DO WHILE n > = 0 Replace LET n = n — 25
The modified program is:
LET n = — 8
DO WHILE n < = 10 OUTPUT n
LET n =n + 3
LOOP with LET n = —8
with DO WHILE n < =10 with LET n = n + 3

Computer Science & Information Technology

You might also like to view...

Which diagram models system structure?

a. State machine diagram. b. Class diagram. c. Activity diagram. d. Sequence diagram.

Computer Science & Information Technology

To test for validity, an XML parser must be able to compare the XML document with the rules established in the DTD.

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

Computer Science & Information Technology

The actual development process for ______________ applications is not significantly different from stand-alone and web applications. 

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

This panel identifies a selected object's width and height.

A. Measurements B. Location C. Transform D. Transition

Computer Science & Information Technology