Modify example program so it can accommodate data values up to one million.

Replace sentinel value 9999 in data list with 1000000
Replace DO WHILE num < 9999 with DO WHILE num < 1000000
Replace IF num < 9999 with IF num < 1000000

The modified program is:
```
Data List: 10, 15, 20, 33, 52, 17, 62, 22, 76, 38, 1000000
LET sum = 0 LET count = 0 LET num = 0 DO WHILE num < 1000000
INPUT num
IF num < 1000000 THEN
LET sum = sum + num
LET count = count + 1
END IF
LOOP
LET average = sum / count
OUTPUT average
```

Computer Science & Information Technology

You might also like to view...

Match the following Resource Monitor tabs with their purpose:

I. Overview II. CPU III. Memory IV. Disk V. Network A. Helps you decide if you have enough primary storage B. A summary of all resource usage C. Helps you see if you are connected to other computers D. Helps you decide if you have enough processing power E. Helps you decide if you have enough RAM

Computer Science & Information Technology

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

1. A binary tree cannot be empty. 2. A tree whose height is h has its root at level h. 3. An inorder traversal visits a node before it traverses either of the node’s subtrees. 4. A complete binary tree with n nodes has a height of log2(n + 1

Computer Science & Information Technology