Write a program to input the TotalCost and display the Assured gift as per the following criteria TotalCost(TC) Assured Gift Less than or up to 2000 Wall Clock 32001 to 5000 School Bag 5001 to 10,000 Electric Iron More than 10,000 Wrist Watch​

Answers

Answer 1

Answer:

The program in Python is as follows:

TotalCost = int(input("Total cost: "))

if TotalCost <= 2000:

   print("Wall Clock")

elif TotalCost >= 2001 and TotalCost <= 5000:

   print("School Bag")

elif TotalCost >= 5001 and TotalCost <= 10000:

   print("Electric Iron")

else:

   print("Wrist Watch")

Explanation:

This gets input for total cost

TotalCost = int(input("Total cost: "))

If the total cost is up to 2000, print wall clock as the assured gift

if TotalCost <= 2000:

   print("Wall Clock")

If the total cost is between 2001 and 5000 (inclusive), print school bag as the assured gift

elif TotalCost >= 2001 and TotalCost <= 5000:

   print("School Bag")

If the total cost is between 5001 and 10000 (inclusive), print electric iron as the assured gift

elif TotalCost >= 5001 and TotalCost <= 10000:

   print("Electric Iron")

If the total cost is more than 10000, print wrist watch as the assured gift

else:

   print("Wrist Watch")


Related Questions

PLEASE HELP DUE!!!
WILL GIVE BRAINLIEST!!

can someone help me please?

Answers

Answer:

see below picture

Explanation:

You can work your way through the formula from the inside out, mapping every operation to a gate.

Travis just got promoted to network administrator after the previous administrator left rather abruptly. There are three new hires that need onboarding with user accounts. When Travis looks at all the existing account names, he notices there is no common naming system. Where should he look to try to give the new hires user accounts with proper naming conventions

Answers

Answer:

The company's account policy

Explanation:

If there's no common naming system, It's best to go with the company's account policy.

Once the CPU has fetched the data requested, what are the next steps in the process?

A
execute, articulate

B
perform, execute

C
decode, analyze

D
decode, execute

MULTIPLE CHOICE

Answers

Answer:

D. decode execute

Explanation:

What are the advantages of Radio waves over micro waves?​

Answers

Answer:

radio frequencies can penetrate deeply into the material and thus heat thick products. They heat more slowly than microwaves and thus make it possible to treat more delicate products which require a slower heating.

Other Questions
what sight gave her Mony new unusual experiences? At which times could Rory's phone have been plugged into the charger? Select three options. Can someone help me with this please !! Help help help help help The following ordered pairs represent a function: {(-3, 1), (1, -2), (3, 0), (4, 5)}.True or False How do the inland areas of the Willapa Hills differ from the coastal areas?The inland areas are heavily forested.The inland areas receive very little rain.The inland areas contain open plains.The inland areas have large wetland habitats. a man's income is rupees 12000 per month if the.If the rate of income tax ia rs2.50 per rs100,how much tax should he pay? Write an inequality, in slope-intercept form, for the graph below. If necessary,use * Solve inequality problem (urgent help please) What is the effect of these currents on Earth's temperatures? 6.The man I __________ yesterday is my high school teacher.A.came across B. come across C. has come across D. had come across Rewrite the sentences according to the instructions given. 1. Hers is the most beautiful voice I have ever heard. (change into exclamatory) 2 Will you please tell me the truth? (change into advice) 3.It rains heavily in Cherrapunji. (add a question tag) 4. Help me complete this task. (request) 5. I will go to see her tomorrow. (negative) 6. Suman plays tennis. (yes/no question) Tina invests $3,700 into an account with a 4.4% interest that is compounded quarterly. How much money will she have inthis account if she keeps it for 8 years?Round your answer to the nearest cent.Do NOT round until you have calculated the final answer. 1 Ex You live in an area that is currently engulfed 21st July, 2021 with filth. Wite a letter to your tembunan ! complaining about at least two health hazards that the present condition is posing to tants on do to Livest the situation soy you think the inhabitants can do to address the situation .....Cultura en contexto. Escoja la regin que se asocia con cada palabra o fraseCiudad costal- sevilla- salamanca- galicia- valenciaLa Compostelana- sevilla- salamanca- galicia- valenciaPatrimonio de la Humanidad- sevilla- salamanca- galicia- valenciaUniversidad antigua- sevilla- salamanca- galicia- valenciaPaella pura y original- sevilla- salamanca- galicia- valenciaEl Camino de Santiago- sevilla- salamanca- galicia- valenciaAndaluca- sevilla- salamanca- galicia- valencia Calculate the total Social Security and Medicare tax burden on a sole proprietorship earning 2020 profit of $300,000, assuming a single sole proprietor with no other earned income. How much state tax is withheld from $36,200 if the tax rate is 4%? The option which is not a solution of the equation 2x + 3y = 6 is: (A) (0, 2) (B) (1, 1)(C) (-3, 4) (D) (3, 0). A set of composite number less than 12.Express it in listing and set-builder methods The distribution of SAT scores is approximately normal with a mean of 1500.If 1628 is the 90th percentile, what is the standard deviation?