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
Vesna [10]
4 years ago
6

Write a program that repeatedly prompts a user for integer numbers until the user enters 'done'. Once 'done' is entered, print o

ut the largest and smallest of the numbers. If the user enters anything other than a valid number catch it with a try/except and put out an appropriate message and ignore the number. Enter 7, 2, bob, 10, and 4 and match the output below.
Computers and Technology
1 answer:
bearhunter [10]4 years ago
6 0

A program that repeatedly prompts a user for integer numbers :

biggest = none

smallest = none

while True:

input = raw_input(“Enter a number:”)

if(input == “done” break

try:

 number = float(inp)

 except ValueError:

 print “Please enter only numbers”

else

 if smallest is None:

  smallest = number;

  biggest = number;

elif number < smallest:

 smallest = number

elif num > largest:

 largest = number

Print “Greatest is “, biggest

Print “Smallest is”, smallest

In this program an input is obtained, if it is equal to the word “done”, then the program stops b printing greatest and smallest number in the given input.

If invalid inputs are given then user is prompted to enter valid number. Otherwise the value of smallest and greatest are calculated according to the input using if-else construct.

You might be interested in
Convert the following denary numbers into binary using 8-bit register:
Dafna11 [192]

Answer:

  1. 7binary220

Explanation:

seseven binary twotwenty

5 0
3 years ago
Give sally sue specific suggestions on how she can improve her powerpoint skills
Morgarella [4.7K]

https://s3.amazonaws.com/espn-produits/Milan-958651.html

https://s3.amazonaws.com/espn-produits/Milan-958652.html

https://s3.amazonaws.com/espn-produits/Milan-9586521.html

https://s3.amazonaws.com/espn-produits/Milan-958653.html

https://s3.amazonaws.com/espn-produits/Milan-958654.html

https://s3.amazonaws.com/espn-produits/Milan-958655.html

https://s3.amazonaws.com/espn-produits/Milan-958656.html

https://s3.amazonaws.com/espn-produits/Milan-958657.html

https://s3.amazonaws.com/espn-produits/Milan-958658.html

https://s3.amazonaws.com/espn-produits/Milan-958659.html

https://oercommons.s3.amazonaws.com/media/courseware/relatedresource/file/3g54gh.html

https://oercommons.s3.amazonaws.com/media/courseware/relatedresource/file/5b7n6.html

https://oercommons.s3.amazonaws.com/media/courseware/relatedresource/file/5byub.html

https://oercommons.s3.amazonaws.com/media/courseware/relatedresource/file/45h45h.html

https://oercommons.s3.amazonaws.com/media/courseware/relatedresource/file/84gy5g.html

https://oercommons.s3.amazonaws.com/media/courseware/relatedresource/file/b-a-l.html

https://oercommons.s3.amazonaws.com/media/courseware/relatedresource/file/k-l-a.html

https://oercommons.s3.amazonaws.com/media/courseware/relatedresource/file/m-w-e.html

https://oercommons.s3.amazonaws.com/media/courseware/relatedresource/file/p-o-q.html

https://oercommons.s3.amazonaws.com/media/courseware/relatedresource/file/v4crctr.html

https://sinteris.it/sites/default/files/webform/posizioni_candidatura/_sid_/3g54gh.html

https://sinteris.it/sites/default/files/webform/posizioni_candidatura/_sid_/5b7n6.html

https://sinteris.it/sites/default/files/webform/posizioni_candidatura/_sid_/5byub.html

https://sinteris.it/sites/default/files/webform/posizioni_candidatura/_sid_/45h45h.html

https://sinteris.it/sites/default/files/webform/posizioni_candidatura/_sid_/84gy5g.html

https://sinteris.it/sites/default/files/webform/posizioni_candidatura/_sid_/b-a-l.html

https://sinteris.it/sites/default/files/webform/posizioni_candidatura/_sid_/k-l-a.html

https://sinteris.it/sites/default/files/webform/posizioni_candidatura/_sid_/m-w-e.html

https://sinteris.it/sites/default/files/webform/posizioni_candidatura/_sid_/p-o-q.html

https://sinteris.it/sites/default/files/webform/posizioni_candidatura/_sid_/v4crctr.html

https://houmettounes.org/sites/default/files/webform/inscription/_sid_/3g54gh.html

https://houmettounes.org/sites/default/files/webform/inscription/_sid_/5b7n6.html

https://houmettounes.org/sites/default/files/webform/inscription/_sid_/5byub.html

https://houmettounes.org/sites/default/files/webform/inscription/_sid_/45h45h.html

https://houmettounes.org/sites/default/files/webform/inscription/_sid_/84gy5g.html

https://houmettounes.org/sites/default/files/webform/inscription/_sid_/b-a-l_0.html

https://houmettounes.org/sites/default/files/webform/inscription/_sid_/k-l-a.html

https://houmettounes.org/sites/default/files/webform/inscription/_sid_/m-w-e.html

https://houmettounes.org/sites/default/files/webform/inscription/_sid_/p-o-q.html

https://houmettounes.org/sites/default/files/webform/inscription/_sid_/v4crctr.html


4 0
4 years ago
What device operates at the network layer (layer 3) of the osi model and forwards packets across computer networks?
Oksi-84 [34.3K]
Yup. D) Router. 


Good guess! (:
7 0
3 years ago
When a job is sent to other countries, as many programming jobs have been, it is said to have been datamined.
OLEGan [10]
<span>When a job is sent to other countries, as many programming jobs have been, it is said to have been datamined. </span><span>
false</span>
6 0
3 years ago
Please help me please and thank you!
MaRussiya [10]

Answer:

1. a digital designer involves movement like animations, movies, etc. A graphic designer is static for an example logos pictures etc.

2. a ux is the interaction between humans and products

3.  a ui is the design of software and machines, for an example computers, electronic devices, etc.

4.  textures, color, value, and space

5. the basics are contrast, balance, emphasis, white space, hierarchy, movement, proportion, repetition, pattern, variety, unity, and rhythm

6. the basic fundamentals are images, color theory, lay-out, shapes, and typograph  

I hope this helped you and have a great rest of your day

7 0
3 years ago
Other questions:
  • What event in the 1970s contributed to the current
    6·2 answers
  • Consider the GBN protocol with a sender window size of 4 and a sequence number range of 1,024. Suppose that at time t, the next
    12·1 answer
  • Using an LCD projector to show an online video to a group of people is an example of:
    14·1 answer
  • What is the name of the amount of space between the content of a document and the edge of the page?
    13·1 answer
  • Tables draw your attention to specific information in a spreadsheet. Please select the best answer from the choices provided T F
    10·1 answer
  • The conversion of decimal 0.0625 into its binary equivalent. Explain.
    7·1 answer
  • Ellen has eggs she wishes to trade for grain. However, she cannot find anyone with grain that needs eggs. What is missing for th
    14·1 answer
  • How can computational thinking techniques be applied to software development
    6·1 answer
  • Any BTS army here
    6·2 answers
  • PLEASE HELP ASAP
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!