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
enyata [817]
3 years ago
15

Write a program that reads integers from the user and stores them in a list. Your

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

Answer:

The program in Python is as follows:

numList = []

num = int(input())

while num != 0:

   numList.append(num)

   num = int(input())

   

numList.sort()

for num in numList:

   print(num)

Explanation:

This initializes the list

numList = []

This gets input from the user

num = int(input())

This loop is repeated until the user enters 0

while num != 0:

This appends the user input to the list

   numList.append(num)

This gets another input from the user

   num = int(input())

This sorts the list in ascending order    

numList.sort()

This iteration prints the list elements, each on a line

<em>for num in numList:</em>

<em>    print(num)</em>

You might be interested in
Before installing any software, it's always important to back up your system and to create a BLANK, which enables you to go back
g100num [7]
Whats the question supposed to be so I can answer it?
8 0
3 years ago
Read 2 more answers
Xor meaning in computer science
Jlenok [28]

<h2>eXclusive OR</h2>

<h3>✅X. (eXclusive OR) A Boolean logic operation that is widely used in cryptography as well as in generating parity bits for error checking and fault tolerance. XOR compares two input bits and generates one output bit. The logic is simple. If the bits are the same, the result is 0.</h3>
8 0
3 years ago
Read 2 more answers
Your Windows PC has an AMD processor installed that includes AMD-V technology and the motherboard fully supports this processor.
Anvisha [2.4K]

Answer:

Option C: Windows Virtual PC is the correct answer.

Explanation:

The virtualization program for Microsoft Windows is given by Windows Virtual PC. As discussed it has an AMD processor installed that includes AMD-V technology and the motherboard fully supports this processor.

The superseded version of Windows virtual PC is Hyper-V.  It is the most capable version of Microsoft hypervisor you can install on this machine, provided the computer meets all the other requirements.

All other options are wrong as the virtualbox is not considered as the Microsoft hypervisor therefore can't be installed. Similarily, the hypervisor named as Windows XP mode is not so capable that it could meet all requirements. In the end, the Parallel Desktops can not be run on the machines as they dont come under the Microsoft hypervisor category.

I hope it will help you!

7 0
3 years ago
write a single expression that will return true if the lower four bits of x are the same as the lower four bits of y
horrorfan [7]

A single expression that will return true if the lower four bits of x are the same as the lower four bits of y is; (x & 0x0F) == (y & 0x0F)

<h3>How do you write single expression programs?</h3>

There are different methods of writing programs such as python and others. However, in this case, it is pertinent to know that this compiler that will return true if the lower four bits of x are the same as the lower four bits of y doesn't accept binary constants and as such we will use hexidecimal instead. For example; for 0b00111111, we will use 0x3F.]

Thus, using that same concept above, the single expression that will return true if the lower four bits of x are the same as the lower four bits of y is; (x & 0x0F) == (y & 0x0F)

Read more about writing computer programs at: brainly.com/question/16397886

6 0
2 years ago
Develop a multithreaded app that can find the integer in the range 1 to 10000 that has the largest number of divisors. It should
skelet666 [1.2K]

Answer:

its not letting me Write out the code so here are screenshots

Explanation:

5 0
4 years ago
Other questions:
  • In what way, if any, are colleges and universities related?
    14·1 answer
  • On a pie chart, the different sections or "wedges" show:
    9·1 answer
  • Sam's manager would like him to create and distribute copies of a budget report for each department. The budget report should sh
    10·2 answers
  • Which is the most common drive letter where Windows stores most data and programs? A. A B. B C. C D. E
    12·2 answers
  • What color does Sam obtain when he mixes white with a color? Sam is painting a landscape and needs to paint the sky light blue.
    9·2 answers
  • What is the difference between primary storage, secondary storage and off-line storage?
    5·1 answer
  • Write the definition of a method, oddsMatchEvens, whose two parameters are arrays of integers of equal size. The size of each ar
    10·1 answer
  • The following code will not compile. Which of the options below would allow the code to compile and run as intended?
    9·1 answer
  • Which factors have led to the fast growth in IT​
    13·1 answer
  • Sequence structure is when have a repetition of instructions. true false
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!