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
What term is used to identify the visual interface that displays information it receives from the computer?
olga nikolaevna [1]
The answer to this question is A
7 0
4 years ago
After installing the processor, if the system begins the boot process and suddenly turns off before completing the boot, the pro
NikAS [45]

Answer:

A. True

Explanation:

Be sure your processor is receiving sufficient cooling by verifying if there is a heatsink on it. If there is, make sure that it's inserted fully into cpu_fan port on the motherboard. If the boot process still turns off, you may have a defective processor or replace the motherboard.

8 0
4 years ago
What is the name of the file in which this
anyanavicka [17]

Answer:

B

Explanation:

i’m an information technology  student and as I remember we used this  name

3 0
3 years ago
What are some ways to rename a worksheet? Check all that apply.
Mamont248 [21]

Answer:

Click the Home tab, click Format, click Rename Sheet, type the name, and press Enter

Explanation:

im  not really sure but i think this is the answer

have a good day

3 0
3 years ago
What is a circuit breaker and how is it different from a fuse? Why do we need these two different devices?
Liula [17]

Answer:

Circuit breakers and fuses both have the same purpose, but a fuse will melt when stopping electricity where as circuit breakers can just be reset. You need both devices in order to stop a overload of power that could fry your electronics or worse, start fires.

Explanation:

7 0
3 years ago
Read 2 more answers
Other questions:
  • What process describes using technology as a basis for controlling the access and usage of sensitive data?
    7·1 answer
  • What is one important feature of an aup? 1. a list of all available courses. 2. a clear out line of the consequences of violatin
    12·2 answers
  • 20 Points!! Please hurry!!
    9·1 answer
  • How do you change the slide layout?
    6·2 answers
  • Ben's team is working on an English project. The members want to see everyone's progress on their part of the project. What tech
    7·2 answers
  • Why does Zoologist have no work experience in a related occupation?
    5·1 answer
  • What is a relationship between a object and a class?
    7·1 answer
  • What is gender bias?
    9·1 answer
  • How to use repl.it css
    7·1 answer
  • Cmo se puede añadir amigo ??'
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!