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
larisa [96]
3 years ago
7

Suppose you want to write a program that will read a list of numbers from a user, place them into an array and then compute thei

r average. How large should you make the array?
Computers and Technology
1 answer:
djyliett [7]3 years ago
6 0

Answer:

The size of the array is dependent on the amount of memory the program can access.

Explanation:

Here according to the question the user is in need of memory space equal to the amount of numbers read from the list. So the size of the array should be equal to the total numbers read from the list. if the user reads 5 number from the list then the size of the array should be int a[5] if the numbers are integers. Wastage of memory space is not appreciated in a good piece of code.

You might be interested in
A disk has 4000 cylinders, each with 8 tracks of 512 blocks. A seek takes 1 msec per cylinder moved. If no attempt is made to pu
shutvik [7]

Answer:

The answer is below

Explanation:

a)

If the blocks of a file are not put together, that is for nonadjacent block of files to each other, the time (t) taken to read a 100 block file is:

t = (average seek + rotational latency + transfer time) * 100 block

Average seek = 5 msec, rotational latency = 10 msec and transfer time = 20 microsec = 0.02 msec

t = (5 + 10 + 0.02) * 100 = 1502 msec

b)

If the blocks of a file are put together, that is for adjacent block of files to each other, the time (t) taken to read a 100 block file is:

t = (seek time * mean interblock distance + rotational latency + transfer time) * 100 block

seek time = 100 microsec = 0.1 msec, rotational latency = 10 msec and transfer time = 20 microsec = 0.02 msec, mean interblock distance = 2 cylinders

t = (0.1*2 + 10 + 0.02) * 100 = 1022 msec

3 0
3 years ago
What is the "key" to a Caesar Cipher that someone needs to know (or discover) to decrypt the message? a) A secret word only know
Tpy6a [65]

Answer:

The number of characters to shift each letter in the alphabet.

Explanation:

Caeser Cipher is the technique of encryption of data, to make it secure by adding characters between alphabets. These are the special characters that make the message secure while transmitting.

According to the standards, For Decryption, we remove these special characters between alphabets to make message understandable.

<em>So, we can say that,to de-crypt the message, the number of characters to shift each letter in the alphabet.</em>

3 0
3 years ago
You want to compare the goal blocking percentages of all goalies in the National Hockey League. Which type of chart would be bes
galina1969 [7]

Answer:

Bar Graph

Explanation:

Bar graph is used to capture data but is also able to store more data

6 0
3 years ago
An IT environment with a bastion host, an intrusion prevention system, and workstation antivirus and firewall software is an exa
pochemuha

Answer:

Defense in depth

Explanation:

4 0
4 years ago
Read 2 more answers
Given the CIDR IPv4 address block, 200.245.10.0/28, how many subnets are possible and how many hosts can be supported by each su
grin007 [14]

The number of hosts that can be supported by each subnet are option d. 24 = 16 subnets, 24 - 2 = 14 hosts per subnetwork.

<h3>What is a subnet?</h3>

This is also called a subnetwork and it is known to be a form of  a segmented aspect of a bigger network.

Note also that in the above case, the number of hosts that can be supported by each subnet are option d. 24 = 16 subnets, 24 - 2 = 14 hosts per subnetwork.

See options below

a. 228 = 268 subnets, 24 -2 = 14 hosts per subnetwork

b. 24 = 16 subnets, 228 - 2 = 268E6 hosts per subnetwork

c. 24 - 2 = 14 subnets, 24 = 16 hosts per subnetwork

d. 24 = 16 subnets, 24 - 2 = 14 hosts per subnetwork

d. 24 = 16 subnets, 24 - 2 = 14 hosts per subnetwork

Learn more about subnets from

brainly.com/question/8907973

#SPJ1

4 0
2 years ago
Other questions:
  • Jose needs to find out how to delete cells from his workbook.
    12·2 answers
  • Pls help........
    15·1 answer
  • If you are trying to photograph a house that is on sale how are you most likely to photograph it?
    12·1 answer
  • The roman structure that features heavy use of arches and columns is the _______.
    6·1 answer
  • What is the default view in a Word document?
    10·2 answers
  • Final points give away
    13·2 answers
  • You are evaluating three branch prediction strategies: (1) predict always taken, (2) predict always not taken and (3) use the 2-
    14·1 answer
  • What is a new option in PowerPoint 2016 that provides the ability to add multiple pictures into a slide, complete with transitio
    7·2 answers
  • To call the superclass's no-parameter constructor explicitly, use super(); group of answer choices true false
    10·1 answer
  • Find the name of the professor with the maximum percentage of students that failed his course.
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!