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
Ivahew [28]
3 years ago
7

8.6 Code Practice: Question 2

Computers and Technology
1 answer:
Rina8888 [55]3 years ago
4 0

Answer:

import random

def buildArray(a, n):

   for i in range (n):

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

     

arr = []

def sumArray(a):

   tot = 0

   for i in range(len(a)):

       tot = tot + a [i]

   return tot

       

   

arr = []

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

buildArray(arr, numbers)

print(arr)

print("Total " + str(sumArray(arr)) )

Explanation:

You might be interested in
Which pair of devices have the same input motion and different outputs?
allochka39001 [22]

Answer:

nutcracker and can opener

Explanation:

5 0
3 years ago
Some operating systems add the command interpreter to the kernel .what will be the justification for this design principle?
stira [4]

Answer:

Some operating systems add the command interpreter to the kernel. What will be the justification for this design principle? It displays all the apps and programs in the computer. Fab Numbers Sid wants to find out the average of Fab numbers.

Explanation:

Some operating systems add the command interpreter to the kernel. What will be the justification for this design principle? It displays all the apps and programs in the computer. Fab Numbers Sid wants to find out the average of Fab numbers.

3 0
2 years ago
What happens when you double-click a column border??
IrinaVladis [17]
<span>The column width is adjusted to fit the text.</span>
7 0
3 years ago
My computer keeps on logging me out when i try to answer a question on brainly. Can somebody please explain why. And give a good
fomenos

Answer:

it could be your internet

Explanation:

mine used to do it to me because of internet and since everyone is one the internet because of the Coronavirus everyone is working online that could be the case

:)

8 0
4 years ago
Read 2 more answers
True of False - use T or F An abstract class can have instances created using the constructor of the class.
Sindrei [870]

Answer:

False

Explanation:

An instance of an abstract class cannot be created through the constructor of the class, because it does not have a complete implementation. Though, it is possible to have references of an abstract type class. Abstract classes are incomplete structures and you would have to build onto it before you are able to use it.

7 0
4 years ago
Other questions:
  • In an excel table, which of the following represents a column of data?
    8·1 answer
  • What type of interview would be most likely for the following scenario?
    11·2 answers
  • Which command should you enter to configure a single port to discard inferior bpdus 200-125?
    5·1 answer
  • Meaning of page break​
    8·1 answer
  • Is it important for a writer to include voice and point of view in writing because... Plz help
    15·1 answer
  • Which of the following organizations offers a family of business management system standards that details the steps recommended
    12·1 answer
  • PLEASE HELP
    7·2 answers
  • Cuales fueron las consecuencias que creo el storm worm (gusano storm, el informatico)??
    5·1 answer
  • Topic: Graphs.1.) Bob loves foreign languages and wants to plan his courseschedule for the following years. He is interested in
    8·1 answer
  • 1. Who is known as the father of a computer?​
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!