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
Helen [10]
3 years ago
6

Write a program to input the TotalCost and display the Assured gift as per the following criteria TotalCost(TC) Assured Gift Les

s than or up to 2000 Wall Clock 32001 to 5000 School Bag 5001 to 10,000 Electric Iron More than 10,000 Wrist Watch​
Computers and Technology
1 answer:
Yanka [14]3 years ago
8 0

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

<em>if TotalCost <= 2000:</em>

<em>    print("Wall Clock")</em>

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

<em>elif TotalCost >= 2001 and TotalCost <= 5000:</em>

<em>    print("School Bag")</em>

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

<em>elif TotalCost >= 5001 and TotalCost <= 10000:</em>

<em>    print("Electric Iron")</em>

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

else:

   print("Wrist Watch")

You might be interested in
If an electric circuit has 30ohms and 10amps. How many volts the battery voltmeter should read?
Andreyy89

Given that,

Resistance, R = 30 ohms

Current, I = 10 A

To find,

The voltage of the battery.

Solution,

Let V is the voltage of the battery. We can use Ohm's law to find V.

Since, V = IR

Put all the values in the above formula.

V = 10×30

V = 300 Volt

So, the voltage of the battery in the voltmeter is 300 Volt.

8 0
3 years ago
You are entering command that operates on a file. The path to the file is lengthy and confusing and you are afraid that you will
Gelneren [198K]

Complete Question:

You are entering command that operates on a file. The path to the file is lengthy and confusing and you are afraid that you will misspell part of it. You can help yourself out via the use of?

Group of answer choices

A. Wildcard

B. The Tab key

C. Regular expressions

D. The Escape key

Answer:

B. The Tab key

Explanation:

In this scenario, You are entering command that operates on a file. The path to the file is lengthy and confusing and you are afraid that you will misspell part of it. You can help yourself out via the use of the Tab key.

When working with the command line prompt (cmd) on a Windows, Unix or Linux computer, typing file paths is sometimes difficult or considered to be a burden because they are lengthy (too long) and perhaps confusing to the user. To help yourself out, you can always use the "Tab key" to autocomplete names of directories or file paths in an alphabetical order, while in the command line.

<em>Additionally, pressing the "Tab key" continuously while in the command line would cycle or toggle all available commands in an alphabetical order. </em>

3 0
3 years ago
Select each of the steps involved in creating a table in a presentation.
klio [65]

Answer:

huh? Making your presentation more interesting through the use of multimedia can help to improve the audience's focus. PowerPoint allows you to use images, audio and video to have a greater visual impact. These visual and audio cues may also help a presenter be more improvisational and interactive with the audience.

7 0
3 years ago
The eight great ideas in computer architecture are similar ideas from other fields. Match the eight ideas from computer architec
andrew11 [14]

Answer:

following are the answer to this question:

In option a, "Performance via Pipelining".

In option b, "Performance via Parallelism".

In option c, "Performance via Prediction".

In option d, "Make the Common Case Fast".

In option e, "Hierarchy of Memories".

In option f,  "Design for Moore’s Law".

In option g, "Dependability via Redundancy".

In option h, "Use Abstraction to Simplify Design".

Explanation:

Automotive assembly lines are Efficiency through pipelines.

The cable bridge suspension is used to Perform by Parallelism.  

The aircraft and navigation systems are designed to integrate and use through simulation wind information.  

The fast and the common Case is used to express lifts in the building.  

The Memory hierarchy library is used for the reserve desk.  

Extending the port area of a CMOS transistor to reduce Moore's Law Design for Moore's legislation switching sequence.

Increasing energy generation from the latest reactor technology dependability through redundancy. It enables the addition of electrical aircraft slingshots, which are electrically powered as opposed to the earlier steam models.  

It Constructs cars that depend on existing sensor systems, like automatic braking devices or clever speed control systems, that already have installed their monitoring system throughout the base vehicle by Using abstraction to ease the model.

7 0
4 years ago
A zipped folder is indicated by a
stiv31 [10]
C. Little zipper on the outside of the folder.
4 0
3 years ago
Other questions:
  • In 2-5 paragraphs, describe the points that Kendra needs to consider when choosing a telecommunications technology to meet her n
    6·1 answer
  • How do you use the Internet? Think about your typical day. When are you using the Internet? For what purposes? What role does it
    11·1 answer
  • Chole enjoys her math classes, and she would like to find a career that will allow her to continue use her math skillls which ca
    10·1 answer
  • Transforming a message into an understandable sign and symbol system is _________.
    15·1 answer
  • The five steps in the fetch/execute cycle and how do they correspond to a restaurant
    5·1 answer
  • Which tasks can be completed using the Chart Tools Design tab? Check all that apply.
    9·1 answer
  • How can I collect tweets from different accounts concurrently and categorize the tweets in a corpus?
    15·1 answer
  • How long would it take a 8 bit computer to calculate π to the thousandth place?
    8·1 answer
  • Https://www.blooket.com/play?id=300932<br> please
    8·2 answers
  • Limited time only for christmas give yourself free 100 points YES YES yes yes yes
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!