Design a program to output the counting numbers from 1 to 5. Use two variables, count and previous_count, inside a DO WHILE loop. The variable count represents the counting number to be outputted the current time around the loop. The variable previous_count represents the counting number outputted the previous time around the loop. Assume the values of count and previous_count are both 1 before

the loop starts.

What will be an ideal response?


```
DO WHILE count < = 5
OUTPUT count
LET previous count = count
LET count = previous_count + 1
LOOP
```

Computer Science & Information Technology

You might also like to view...

Consider the (relative distance) K-means scheme for outlier detection de- scribed in Section 10.5 and the accompanying figure, Figure 10.10.

(a) The points at the bottom of the compact cluster shown in Figure 10.10 have a somewhat higher outlier score than those points at the top of the compact cluster. Why? (a) The points at the bottom of the compact cluster shown in Figure 10.10 have a somewhat higher outlier score than those points at the top of the compact cluster. Why? (c) The use of relative distance adjusts for differences in density. Give an example of where such an approach might lead to the wrong conclusion.

Computer Science & Information Technology

The top of a game tree is called the

a. base b. top c. root d. solution

Computer Science & Information Technology

All Web browsers support all HTML5 elements.

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

Computer Science & Information Technology

You have a 255.255.255.240 mask. Which of the following are valid host addresses?

A) 192.168.10.210 B) 192.168.10.32 C) 192.168.10.94 D) 192.168.10.112 E) 192.168.10.127

Computer Science & Information Technology