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
max2010maxim [7]
3 years ago
8

Write a program with total change amount as an integer input, and

Engineering
1 answer:
AURORKA [14]3 years ago
8 0

Answer:

amount = int(input())

#Check if input is less than 1

if amount<=0:

    print("No change")

else: #If otherwise

    #Convert amount to various coins

    dollar = int(amount/100) #Convert to dollar

    amount = amount % 100 #Get remainder after conversion

    quarter = int(amount/25) #Convert to quarters

    amount = amount % 25 #Get remainder after conversion

    dime = int(amount/10) #Convert to dimes

    amount = amount % 10 #Get remainder after conversion

    nickel = int(amount/5) #Convert to nickel

    penny = amount % 5 #Get remainder after conversion

    #Print results

    if dollar >= 1:

          if dollar == 1:

                print(str(dollar)+" Dollar")

          else:

                print(str(dollar)+" Dollars")

    if quarter >= 1:

          if quarter == 1:

                print(str(quarter)+" Quarter")

          else:

                print(str(quarter)+" Quarters")

    if dime >= 1:

          if dime == 1:

                print(str(dime)+" Dime")

          else:

                print(str(dime)+" Dimes")

    if nickel >= 1:

          if nickel == 1:

                print(str(nickel)+" Nickel")

          else:

                print(str(nickel)+" Nickels")

    if penny >= 1:

          if penny == 1:

                print(str(penny)+" Penny")

          else:

                print(str(penny)+" Pennies")

Explanation:

You might be interested in
1. A team of students have designed a battery-powered cooler, which promises to keep beverages at a high-drinkability temperatur
Anit [1.1K]

Answer:

Minimum electrical power required = 3.784 Watts

Minimum battery size needed = 3.03 Amp-hr

Explanation:

Temperature of the beverages, T_L = 36^0 F = 275.372 K

Outside temperature, T_H = 100^0F = 310.928 K

rate of insulation, Q = 100 Btu/h

To get the minimum electrical power required, use the relation below:

\frac{T_L}{T_H - T_L} = \frac{Q}{W} \\W = \frac{Q(T_H - T_L)}{T_L}\\W = \frac{100(310.928 - 275.372)}{275.372}\\W = 12.91 Btu/h\\1 Btu/h = 0.293071 W\\W = 12.91 * 0.293071\\W_{min} = 3.784 Watt

V = 5 V

Power = IV

W_{min} = I_{min} V\\3.784 = 5I_{min}\\I_{min} = \frac{3.784}{5} \\I_{min} = 0.7568 A

If the cooler is supposed to work for 4 hours, t = 4 hours

I_{min} = 0.7568 * 4\\I_{min} = 3.03 Amp-hr

Minimum battery size needed = 3.03 Amp-hr

6 0
3 years ago
10. An engineer is designing a total hip implant. She intends to make the femoral stem out of titanium because it forms a good i
creativ13 [48]

Answer:

Yes. She should be worried about corrosion. The 18-8 stainless exhibits intergranular corrosion due to high (0.08%) carbon content and gross pitting due to low molybdenum content.

Explanation: lol

8 0
4 years ago
To find the quotient of 8 divided by 1/3, multiply 8 by?
iVinArrow [24]

Answer: 8.33333333 or 6.1989778

Explanation:

8 0
2 years ago
Another name for your computer, running the web browser program is: Web user The client The mainframe Browsing agent
timofeeve [1]

Answer:

Browsing agent

Explanation:

Hope this helps!

6 0
3 years ago
Hareem and Shahad are on a road trip to Florida. They pull over to get gas, and as you may know it is sold by the gallon in the
Alona [7]

Answer:

53.3

Explanation:

4×14=56

56÷1.05=53.3

4 0
3 years ago
Other questions:
  • A circuit-switching scenario in whichNcs users, each requiring a bandwidth of 25 Mbps, must share a link of capacity 150 Mbps.
    12·1 answer
  • Why is a building considered a type of system?
    6·1 answer
  • ممكن الحل ............
    10·1 answer
  • What is an air mass?​
    5·2 answers
  • In order to fill a tank of 1000 liter volume to a pressure of 10 atm at 298K, an 11.5Kg of the gas is required. How many moles o
    11·1 answer
  • Describe how to use cleaning tools and equipment safely and properly
    6·1 answer
  • How many ase certifications are there for automotive technicians?
    7·1 answer
  • A train consists of a 50 Mg engine and three cars, each having a mass of 30 Mg . If it takes 75 s for the train to increase its
    8·1 answer
  • As you push a toggle bolt into a wall, the
    13·1 answer
  • Oil, with density of 900 kg/m3 and kinematic viscosity of 0.00001 m2/s, flows at 0.2 m3/s through 500 m of 200-mm-diameter cast-
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!