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
Dafna11 [192]
3 years ago
14

The smalled valid zip code is 00501. The largest valid zip code is 89049. A program asks the user to enter a zip code and stores

it in zip as an integer. So a zip code of 07307 would be stored as 7307. This means the smallest integer value allowed in zip is 501 and the largest integer value allowed in zip is 89049. Write a while loop that looks for BAD zip code values and asks the user for another zip code in that case. The loop will continue to execute as long as the user enters bad zip codes. Once they enter a good zip code the progam will display Thank you. The first line of code that asks for the zip code is below. You don't have to write this line, only the loop that comes after it.
Computers and Technology
1 answer:
Vlad1618 [11]3 years ago
5 0

Answer:

The program in Python is as follows:

zipp = int(input("Zip Code: "))

while (zipp > 89049 or zipp < 501):

   print("Bad zip code")

   zipp = int(input("Zip Code: "))

   

print("Thank you")

Explanation:

This gets input for the zip code [The given first line is missing from the question. So I had to put mine]

zipp = int(input("Zip Code: "))

This loop is repeated until the user enters a zip code between 501 and 89049 (inclusive)

while (zipp > 89049 or zipp < 501):

This prints bad zip code

   print("Bad zip code")

This gets input for another zip code

   zipp = int(input("Zip Code: "))

   

This prints thank you when the loop is exited (i.e. when a valid zip code is entered)

print("Thank you")

You might be interested in
What is another name for an unmanaged switch?
Natalka [10]

Answer:

The answer is "Plug and play".

Explanation:

A switch with minimum debugging tools for log-and-play simplicity and also no IP address. The Unmanaged switches are cost-effective and also have limited power, and other choices are not correct, which can be described as follows:

  • Fast Ethernet provides 10 to 100 Mbps speeds, that's why it is not correct.
  • Gigabit provides bandwidth, which is up to 1 Gbps speed, and it is 10 times faster than Ethernet Fast, that's why it is wrong.
  • The trunk provides the link design that's why it is not correct.
7 0
3 years ago
Use the horizontal scroll bar to navigate through the _______.?
soldier1979 [14.2K]
The answer is B, rows. 

You cannot scroll through tabs, you always click them. Worksheets just doesn't make sense and collums are vertical. This leaves your only answer as rows.
7 0
4 years ago
In 2 or 3 sentences, describe one advanced stradegy and how its useful
Tanzania [10]

Answer:

A search strategy is useful because it helps you learn about things that are not available to you in person. One advanced search strategy is to form words carefully. I could copy 'describe one advance search strategy and how it is useful' and put it into a search engine and get many different results that aren't helpful. But if I shorten it to 'advance search strategies' I get helpful information.

Explanation:

5 0
3 years ago
Which statement below is true about how the functions of the digestive and circulatory system are connected.
telo118 [61]

Answer:

The digestive system breaks down the food into molecules that can be used by the cells. The circulatory system moves the molecules from the villi to all cells in the body.

8 0
3 years ago
The Register Set that stores temporary results related to the computations are<br>​
Natasha_Volkova [10]

Answer:

ooh Bhai sahab

Explanation:

ooh Bhai Yaar Mata tyo gari sanisanisanisani

5 0
3 years ago
Other questions:
  • Type of file can a user send a technician in order to get help remotely, when using remote assistance
    5·1 answer
  • "Suppose there is a class Alarm. Alarm has two class variables, code which contains a String value representing the code that de
    10·1 answer
  • Role of computers in everyday life​
    15·1 answer
  • Which among the following shortcut key is used to check spelling​
    12·2 answers
  • Write an algorithm (pseudo-code) that takes an unsorted list of n integers and outputs a sorted list of all duplicate integers.
    6·1 answer
  • Who watches the show gravity falls, if you do, if you play the theme song for the first episode backwards you get a hiding messi
    11·2 answers
  • Text me on instagram forever.brazy so we can watch a movie​
    15·1 answer
  • ANSWER ASAP! 50 POINTS!!!!
    10·2 answers
  • Ethan is a project manager who is responsible for overseeing overall budget and schedule. Which tool is he is MOST likely to use
    7·1 answer
  • When using the Internet, do not give out your __________ without your parents' permission. (Select all that apply.)
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!