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
insens350 [35]
3 years ago
12

Create a program that will find and display the largest of a list of positive numbers entered by the user. The user should indic

ate that he/she has finished entering numbers by entering a 0.
Computers and Technology
1 answer:
FinnZ [79.3K]3 years ago
5 0

Answer:

<em>This program is written using Python Programming language,</em>

<em>The program doesn't make use of comments (See explanation section for line by line explanation)</em>

<em>Program starts here</em>

print("Enter elements into the list. Enter 0 to stop")

newlist = []

b = float(input("User Input: "))

while not b==0:

    newlist.append(b)

    b = float(input("User Input: "))

newlist.sort()

print("Largest element is:", newlist[-1])

Explanation:

This line gives the user instruction on how to populate the list and how to stop

print("Enter elements into the list. Enter 0 to stop")

This line creates an empty list

newlist = []

This line enables the user to input numbers; float datatype was used to accommodate decimal numbers

b = float(input("User Input: "))

The italicized gets input from the user until s/he enters 0

<em>while not b==0:</em>

<em>     newlist.append(b)</em>

<em>     b = int(input("User Input: "))</em>

This line sorts the list in ascending order

newlist.sort()

The last element of the sorted list which is the largest element is printed using the next line

print("Largest element is:", newlist[-1])

You might be interested in
3.6 Code Practice Edhesive. (PYTHON LANGUAGE)
Aleks [24]

i = 0

lst = ([])

while i < 6:

   lst.append(int(input("Enter a number: ")))

   print("Largest: "+str(max(lst)))

   i+= 1

This works for me. Best of luck.

5 0
3 years ago
Which of the following are benefits of designing a scalable system? Choose 3 options.
zhenek [66]

Which of the following are benefits of designing a scalable system? Choose 3 options.

  • ability to maintain a high level of service for customers ✔

system will never need to grow again

  • Ability to respond to user volume issues more quickly ✔
  • guaranteed system access for all users ✔

users may never know that a site has experienced tremendous growth

4 0
3 years ago
Which branch of study can help Jessica study the concept of light
Fiesta28 [93]

Answer:

Physics, Quantum Mechanics

Explanation:

Light is a stream of photons with no weight. If you want to dig deeper in this mysterious phenomena, you should study physics and quantum mechanics. Physics takes up things like the theory of relativity, which can be useful in studying spacetime and how light travels through it, and quantum mechanics, being the study of matter in an atomic level, should help you get an understanding on how photons of light travel and why they behave so strangely.

4 0
3 years ago
Format Painter cannot be used to copy only character attributes. True or False
andrey2020 [161]
Format painter are used for copying texts, shape and even pictures. It is located on the top left part of your home button of your microsoft product. The statement " Format painter cannot be used to copy only character attributes." is absolutely False. As it can copy things individually.
4 0
4 years ago
What is the purpose of a cover letter? Accompany a résumé to describe who you are and what you can do for the company Describe y
Vaselesa [24]

The answer is "Accompany a résumé to describe who you are and what you can do for the company". A cover letter should help sell you to the company, its information should tell them additional relivent information about you that may not be included on your resume.

8 0
3 years ago
Other questions:
  • Prehistoric music was often written down on clay tablets
    10·1 answer
  • During an experiment, if you purpose change the temperature to test a hypothesis the temperature is called what??
    6·1 answer
  • An ergonomic keyboard is one that has been designed to fit the natural placement of your hands.
    14·2 answers
  • What government agency initially began the work with computers that would eventually lead to the development of the Internet?
    5·2 answers
  • Select the information protection item that ensures that information is correct and that no unauthorized person or malicious sof
    9·1 answer
  • Sammy's Seashore Supplies rents beach equipment such as kayaks, canoes, beach chairs, and umbrellas to tourists. Write a program
    9·1 answer
  • Given numRows and numColumns, print a list of all seats in a theater. Rows are numbered, columns lettered, as in 1A or 3E. Print
    7·1 answer
  • __________ access control is a form of __________ access control in which users are assigned a matrix of authorizations for part
    8·1 answer
  • _ is a term used for license like those issues by creative commons license as an alternative to copyright
    8·1 answer
  • In object-oriented analysis, an object is a member of a(n) _____, which is a collection of similar objects.
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!