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
aleksandrvk [35]
3 years ago
13

Write a program that stores n elements of anarray of integers, then finds:

Computers and Technology
1 answer:
n200080 [17]3 years ago
7 0

Answer:

The following code is in python:

import statistics as st

n=int(input("Enter the number of elements \n"))#taking input of the number n..

arrayint=list(map(int,input("Enter the n elements : \n").strip().split()))[:n]#taking input of the array..

print("The mean is "+ str(st.mean(arrayint)))#printing the mean..

print("The standard deviation is "+str(st.stdev(arrayint)))#printing the standard deviation..

max=-1000000

pos=-1

for i in range(len(arrayint)):#loop for finding the maximum and position

   if arrayint[i]>max:

       pos=i

       max=arrayint[i]

print("The maximium and position are "+str(max)+" and "+str(pos))#printing the maximum and the position..

Output:-

Enter the number of elements

5

Enter the n elements :

5 20 12 45 10

The mean is 18.4

The standard deviation is 15.820872289478858

The maximium and position are 45 and 3

Explanation:

I have used statistics module in python to calculate the mean and standard deviation.I have looped over the list to find the maximum and it's position in the array.

You might be interested in
--------------communication involves one speaker andaudience.
dalvyx [7]

Answer:

Person-to-Group

Explanation:

Person-to-Group communication involves one speaker and audience.

6 0
4 years ago
What does the security element of non-repudiation mean in e-commerce cybersecurity? A. Data needs to be available at all times.
VARVARA [1.3K]

Answer:

Non-repudiation is the assurance that someone cannot deny the validity of something. Non-repudiation is a legal concept that is widely used in information security and refers to a service, which provides proof of the origin of data and the integrity of the data

Explanation:

8 0
4 years ago
Question 3 / 5
Andrej [43]

Answer:

False

Explanation:

3 0
3 years ago
When a vehicle strikes a pedestrian, it's most often during A. a period of darkness or low visibility B. the day when pedestrian
yuradex [85]

Answer:

A. a period of darkness or low visibility

Explanation:

When a vehicle strikes a pedestrian, it's most often during a period of darkness or low visibility.

8 0
4 years ago
Read 2 more answers
Compare the two types of formatting that IDE devices must go through. What is the primary difference between the two?
Andrei [34K]
A quick format<span> changes the file system while the </span>full format<span> also checks the </span>drive for bad sectors.  <span>The scan for bad sectors is the reason why the Full </span>format<span> takes twice as long as the </span>Quick format<span>. If you choose the </span>Quick format<span> option, the </span>format<span> removes address files from the partition, but does not scan the disk for bad sectors.</span>
7 0
3 years ago
Read 2 more answers
Other questions:
  • Which version of Windows was considered an operating environment rather than an operating system? Windows 1.0 Windows 3.0 Window
    9·1 answer
  • One of the most common uses of spreadsheet programs are communicating with others. O editing images and photos. O tracking and m
    8·2 answers
  • (5 points) Create a user-defined data structure (i.e., struct) called Point that represents a two-dimensional Cartesian coordina
    5·1 answer
  • Do you agree with the EU's decision that people should be able to ask Google to remove search results that contain incorrect, un
    11·2 answers
  • According to the video, what kinds of projects would Computer Programmers be most likely to work on? Check all that apply.
    13·2 answers
  • Which line of code outputs the decimal portion of a float stored in the variable x? print (x % 1000) print (x) O print (x / 1000
    13·1 answer
  • 10
    9·1 answer
  • Your network has four Hyper-V hosts, which are running three domain controllers and about 10 member servers. Three of the member
    10·1 answer
  • Is Filmora 9 or Final Cut Pro Better for personal use?
    12·1 answer
  • Which of the following parameters is optional sample(a,b,c,d=7
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!