Write a simple program that uses a loop to sum every third integer from 1 to 10 and outputs the final result. Assign every third integer by incrementing by three so that the values 1, 4, 7, 10 can be summed. Check the program to insure that it works correctly.
What will be an ideal response?
```
LET sum = 0
LET n=1
DO WHILE n<= 10
LET sum = sum + n LET n=n + 3
LOOP
OUTPUT sum 10 1 5 12 22
_____________ sum
11 4 7 10 13
TTTTTF n<=10
Note: The output will be 22.
```
You might also like to view...
Give three examples of applications in which certain transactions need not be totally isolated and, as a result, might return data which, although not the result of a serializable schedule, is adequate for the needs of the applications.
What will be an ideal response?
Answer the following statements true (T) or false (F)
1. There are numerous DBMS's in use today, and Visual C# can interact with many of them. 2. Data stored in databases is organized into one or more tables. 3. Data stored in a database table is organized into rows and columns 4. Data stored in a database table’s column is divided into tables.
What option combined with the Kill command will make it considered stronger?
A. -9 B. -1 C. 0 D. 10
__________ separates the case label from the code that will execute if the case label matches the controlling expression.
a) A colon b) An underscore c) Keyword break d) A semicolon