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
nlexa [21]
3 years ago
6

Write a method named buildArray that builds an array by appending a given number of random two-digit integers. It should accept

two parameters—the first parameter is the array, and the second is an integer for how many random values to add.
Print the array after calling buildArray.
Computers and Technology
1 answer:
saul85 [17]3 years ago
7 0

Answer:

the code using Python

Explanation:

import random

def buildArray(array, size):

for i in range(size):

array.append(random.randint(10, 99))

def sumArray(array , num):

sum_array = 0

for i in range(num):

sum_array += array[i]

return sum_array

 

def main():

n = int(input("How many values to add to the array:\n"))

array = []

buildArray(array, n)

print(array)

 

num = int(input("How many values to find sum of array:\n"))

result= sumArray(array,num)

print(result)

 

main()

You might be interested in
How do i stream from my chromebook to my tv?
pychu [463]
If you want to stream youtube there should be a cast button if your using the same wifi as your tv and if its a smart tv or you have a chrome cast 
6 0
3 years ago
Type the correct answer in the box. Spell all words correctly.
baherus [9]

At the two opposite direction or angle should he take the photo and Henry should shoot at an angle of 180 degrees.

<h3>What is two point lighting photography?</h3>

The two point light principle is known to be one that is itself along with the subject as they are lit from two different directions with the light sources and are said to be 180 degrees apart.

Therefore,  At the two opposite direction or angle should he take the photo and Henry should shoot at an angle of 180 degrees.

Learn more about photograph from

brainly.com/question/25821700

#SPJ1

5 0
2 years ago
2. A well designed high-volume system will minimize _________ inventory and reduce _____________for the product or service. a) w
valina [46]

Answer:

A.

Explanation:

A well designed high-volume system will minimize work-in-process (WIP) inventory and reduce lead time for the product.

Work in process (WIP) are partially finished products. WIP inventory could be minimized by designing a suitable high-volume system.

Lead time or throughput time is the time taken for a product to be manufactured or processed. A well designed high-volume system would reduce throughput time.

7 0
3 years ago
Which is a gallery of pr design pictures that can be inserted directly in the document​
fredd [130]

Answer:

.,.,.,.,.,.,.,.,.,.,.,.,.

6 0
3 years ago
I am the biggest and most important part of data storage hardware. I am about the size of a small book and store critical things
inn [45]

Answer:

HDD (Hard drive disk) or SSD (Solid state drive)

Explanation:

8 0
2 years ago
Other questions:
  • If people have humility, they don’t tend to see themselves as overly or more important than others. True False
    13·1 answer
  • Let K(x, y) denote the statement "x knows y" and D denote the domain of all people. Express the following English sentences as a
    9·1 answer
  • Local variables:
    7·1 answer
  • A neologism is defined as:
    5·1 answer
  • How can you tell that a rolling soccer ball is in motion
    5·1 answer
  • Steps in the systems development life cycle​
    15·2 answers
  • If you were writing a story set in our time, what would you include to give readers a sense of our world? Check any that apply.
    5·1 answer
  • So I bought a mechanical keyboard with cherry mx red switches. you're called "linear and silent" they are linear but they aren't
    10·1 answer
  • Decribe the advantages of using emails compared with physical faxing ?
    8·1 answer
  • Which of the following is NOT true about a USB stick?
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!