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...

Use the expression ___________________ in a media query to target devices with screens up to 480 pixels in width.

a. (width: 480px) b. (max-width: 480px) c. (min-width: 480px;) d. (size: 480px;)

Computer Science & Information Technology

How is the network portion and the host portion of an IP address identified?

A. dynamic address B. DHCP address C. default gateway D. subnet mask

Computer Science & Information Technology

Critical Thinking QuestionsCase B-1As a production assistant, you have been using different kinds of images in Flash without a deep knowledge of what kinds of images you have been working with. In your introductory Flash course, you are beginning to build a more solid foundation of understanding. In order for the image quality not to suffer as described above, what kind of graphic should you get for your White House image? a. vectorc. calibratedb. rasterd. bitmap

What will be an ideal response?

Computer Science & Information Technology

Which of the following statements will declare a two-dimensional array called scores to be of the int data type and contain 3 rows and 4 columns, while also initializing all elements to 0?

A. int scores [4][3] = 0; B. int scores [3][4] = 0; C. int scores[3][4] = {0}; D. int scores[0] = {4, 3};

Computer Science & Information Technology