Redesign the program that computes an average from a list of data. The new program should have a main module called compute_average and three subordinate modules: initial_processing, detail_processing, and final_processing.

What will be an ideal response?


```
compute_average
CALL initial_processing DO WHILE num < 9999
CALL detail_processing
LOOP
CALL final_processing
initial_processing
LET sum = 0 LET count = 0 INPUT num
detail_processing
LET sum = sum + num LET count = count + 1 INPUT num
final_processing
IF count > 0 THEN
LET average = sum / num
OUTPUT "The average is ", average
ELSE
OUTPUT "There is no data to average"
END IF
```

Computer Science & Information Technology

You might also like to view...

What is the difference between a multiuser and a multitasking system?

What will be an ideal response?

Computer Science & Information Technology

Which is another name for insertion point?

A) Cursor B) Mouse C) Marker D) Pointer

Computer Science & Information Technology

Which term did Wi-Fi people create to use as another level of naming to describe a standard name applied to the BSS or IBSS to help the connection happen?

A. Link state B. Service Set Identifier (SSID) C. Supplicant D. Mode

Computer Science & Information Technology

An administrator has configured two hosts as follows: HOST A IP 192.168.3.100 NETMASK 255.255.254.0 GATEWAY 192.168.2.1 HOSTB IP 192.168.1.200 NETMASK 255.255.254.0 GATEWAY 192.168.2.1 Which of the following MUST be changed in order to allow HOST A to talk to HOST B?

A. HOST B netmask to 255.255.252.0 B. HOSTA netmask to 255.255.255.0 C. HOST A IP address to192.168.2.100 D. HOST B IP address to192.168.2.200

Computer Science & Information Technology