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
Soloha48 [4]
3 years ago
8

Design and implement an application that reads a set of values in the range 1 to 100 from the user and then creates a chart show

ing how often the values appeared
Computers and Technology
1 answer:
AVprozaik [17]3 years ago
3 0

Answer:

import random

import matplotlib.pyplot as plt

n = int(input("Enter the number of values: "))

mylist = random.choices(range(1,100), k= n)

plt.hist(mylist, bins=[1,10,20,30,40,50,60,70,80,90,100])

plt.xlabel(" Numbers")

plt.ylabel(" Frequency")

plt.show()

Explanation:

The python progam creates an histogram where the x axis is a list of random numbers in the range of 1 to 100. The program uses the random and matplotlib packages. The random module is used to get the a list of randomly selected values from a range of 1 to 100 and the matplotlib denoted as plt is use to plot a chart of the list as the x-axis and the frequency of the number values in the list.

You might be interested in
Where does cable termination occur in most buildings?
Igoryamba

Answer:

Demarcation point

Explanation:

There is point that is set by engineers for the entrance of the cables to provide different services such as Telephone, internet and other utilities. At this point a device has been installed, in which service provider and end users plugin their cables.

Service providers is responsible for any service degradation till this point. After this point user is responsible for any damage. This point is called Demarcation point .

6 0
3 years ago
Is LTE faster than 4G?
ser-zykov [4K]
I thought there is a phone.4GLTE maybe internet
3 0
3 years ago
Select the correct answer from each drop-down menu.
mihalych1998 [28]

Answer:

i dont know

Explanation:

they block every thing for smoe reason

3 0
3 years ago
(10 LC)
barxatty [35]

Answer:

college A

Explanation:

7 0
3 years ago
The sticky notes often have strings of characters written on them that appear to be passwords. What can you do to prevent the se
Varvara68 [4.7K]
Educate the user on how to make strong passwords
8 0
2 years ago
Other questions:
  • Explain free space allocation?
    9·1 answer
  • Is printer an input device​
    5·1 answer
  • Consider the following code segment:
    14·1 answer
  • Create a parent class called Shape with width and height parameters of type double and a function that returns the area of the s
    12·1 answer
  • Which kind of image is indispensable and needs added text to go with ?
    12·1 answer
  • What three actions happen when you cloak a folder or file?
    6·1 answer
  • A student wrote a song. Another student posted a video of the song on You Tube, claiming to have written the song. This is most
    15·1 answer
  • In python, what is the difference between a dictionary and a set? How are they similar?
    11·1 answer
  • What makes a recipe for a meal an example of an algorithm?
    6·1 answer
  • if a college wanted to provide its students with access to a network that could be used in any of the buildings across campus, i
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!