1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
serious [3.7K]
3 years ago
13

Design the logic for a program that allows a user to enter 20 numbers, then displays each number and its difference from the num

eric average of the numbers entered. Modify the program in Exercise 2a so that the user can enter any amount of numbers up to 20 until a sentinel value is entered.
Computers and Technology
1 answer:
Svetach [21]3 years ago
7 0

Answer:

Logic for a program

Explanation:

//Here ind = index

//declare the number

number ind

number sum

number avg

number SIZE = 20

number num[SIZE] = {0,0,0,0,0,0,0,0,0,0 ,0,0,0,0,0,0,0,0,0,0}

getReady()

while ind < SIZE

getNumbers()

stop

getReady()

ind = 0

sum = 0

return

getNumbers()

cout<< “Enter a number for position ”, ind

input numbers[ind]

sum = sum + numbers[ind]

ind = ind + 1

return ;

finishUp()

avg = sum/SIZE

ind = 0

while ind < SIZE

output numbers[ind], avg – numbers[index]

ind = ind + 1

return

Modify the program in 2a

number index

number sum

number avg

number actualSize

number SIZE = 10

number number[SIZE] = 0

You might be interested in
Wat kind o mouse pleese hep meh​
Trava [24]

Answer:

It's is a razer Basilisk

4 0
4 years ago
Briefly describe three (3) obstacles to becoming
Bingel [31]

Obstacles to becoming digital literates and solutions include:

1. Poor network connectivity. Solutions are:

  • Use good network service providers.
  • Find a good location with good internet facilities.

2. Authenticating Information. Solutions are:

  • Ensure you do a thorough research before sharing any information on the internet.
  • Learn to be critical with information.

3. Excessive Use of the Internet. Solutions are:

  • Always have a target of what you want to achieve with the internet.
  • Avoid unproductive activities.

<h3>What is Digital Literacy?</h3>

Digital literacy can be defined as the ability or skills needed to be able to access information and communicate via internet platforms, mobile devices, or social media.

<h3>Obstacles to becoming Digital Literates</h3>

1. <u>Poor Network Connectivity</u>: In areas where network connectivity is poor, digital literacy becomes difficult to achieve as accessing the internet to source information would be impeded. The solutions to this are:

  • Use good network service providers.
  • Find a good location with good internet facilities.

2. <u>Authenticating Information:</u> The internet is awash with information, most of which may not be verifiable, when a user becomes misinformed, they tend to have biases which affects their critical thinking. Solutions to this are:

  • Ensure you do a thorough research before sharing any information on the internet.
  • Learn to be critical with information.

3. <u>Excessive Use of the Internet:</u> People tend to spend much time on the internet which at the end of the day becomes unproductive. Solutions to this include:

  • Always have a target of what you want to achieve with the internet.
  • Avoid unproductive activities.

Learn more about digital literacy on:

brainly.com/question/14242512

6 0
3 years ago
What is the standard internet protocol, which provides the technical foundation for the public internet?
luda_lava [24]
You have to be carefull no bulling cuiberbulling people hurt there self for stuff like that
3 0
3 years ago
Which of these is most likely to contribute to the long term of a local ecosystem?
maria [59]
I would help but you didn’t say what these is
8 0
2 years ago
There is a file "IT4983" in my home (personal) directory. I don’t know my current working directory. How can I find out the file
RoseWind [281]

Answer and Explanation:

Find / -name "IT4983"

See what it will do is it will find the file named IT4983 in the root directory.

run this commmand with sudo just in case for permission issues.

then it will give you the location of that file we want to find.

 

Or

$ file /home/IT4983 ( you can type this command from whichever directory you are )

output : IT4983 , ASCII TEXT

3 0
3 years ago
Other questions:
  • A new company is upgrading a media workstation. The computer will be predominantly used for graphic intensive presentations, sli
    13·1 answer
  • Write a Bare Bones program that takes as input a value for X and places 4 times the value of X into the value of Z. The value of
    10·1 answer
  • Complete the statement pertaining to the number of frames used by the national television system committee. The national televis
    9·1 answer
  • Lines, block arrows, stars, and banners are examples of which of the following
    6·1 answer
  • Determine the distance between point (x1, y1) and point (x2, y2), and assign the result to points Distance. The calculation is:
    14·1 answer
  • Which of the following operation is not performed by a mouse 1) left click , middle click , right click, double click​
    15·2 answers
  • Can someone please help me
    15·1 answer
  • Please help What two Boolean operators can you use to narrow your search results?
    7·1 answer
  • Martin is responsible for translating the script into a visual form by creating a storyboard. Which role is he playing?
    8·1 answer
  • Select the correct answer from the drop-down menu.
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!