Modify example program so it can accommodate any positive data value up to the maximum that the computer can accept. Your solution should not depend upon knowing the value of that maximum number.
Replace sentinel value 9999 in data list with —9999 (or any negative number)
Replace DO WHILE num < 9999 with DO WHILE num > = 0
The modified program is:
Data List: 10, 15, 20, 33, 52, 17, 62, 22, 76, 38, —9999 LET sum =
LET count = 0
INPUT num
DO WHILE num > 0
LET sum = sum + num
LET count = count + 1
INPUT num
LOOP
LET average = sum / count
OUTPUT average
You might also like to view...
Answer the following statements true (T) or false (F)
1. Data transport and processing and control support are sub layers of the resource layer. 2. Representational State Transfer (REST) is an architectural style used to define APIs. 3. In addition to northbound and southbound interfaces, a typical SDN controller will have an east/westbound interface that enables communication with other SDN controllers and other networks. 4. The application plane contains applications and services that define, monitor, and control network resources and behavior. 5. The northbound interface enables applications to access control plane functions and services without needing to know the details of the underlying network switches.
The ____ window is where you create (or design) your application's graphical user interface.
A. Windows Form Designer B. Windows Form Creator C. Visual Basic Form Designer D. Visual Basic Form Creator
________ macros are stored as part of a database object such as a form or report or any control like a button
Fill in the blank(s) with correct word
Describe the types of programs that use ICMP.
What will be an ideal response?