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
The relationship between the pressure drop per unit length along a smooth-walled, horizontal microfluidic channel and the variab
MA_775_DIABLO [31]

Answer:

Δp = ∫( D, p, u, V)

Explanation:

The pressure drop formula is given above. It determines the relation between pressure drop per unit along with smooth walled channel. The formula is from Buckingham pi theorem in which repeating and non repeating variables are used together.

7 0
3 years ago
Designating a standard part is an example of a use for _______ notes.
Y_Kistochka [10]

Answer:

standard references

Explanation:

hope this helps :D

8 0
3 years ago
The fine for passing a stopped school bus illegally on the right is
ioda
You will pay a minimum fine of $265 for your first offense. A second offense within 5 years of this nature carries an additional $265
8 0
3 years ago
6. What are the potential consequences if a business does not follow regulations? (1 point)
dimaraw [331]

Answer:

all of the above

Explanation:

6 0
3 years ago
What is the effect of the workpiece specific cutting energy on the cutting forces, and why?
ella [17]

Explanation:

Specific cutting energy:

   It the ratio of power required to cut the material to metal removal rate of material.If we take the force required to cut the material is F and velocity of cutting tool is V then cutting power will be the product of force and the cutting tool velocity.

Power P = F x V

Lets take the metal removal rate =MRR

Then the specific energy will be

    sp=\dfrac{F\times V}{MRR}

If we consider that metal removal rate and cutting tool velocity is constant then when we increases the cutting force then specific energy will also increase.

8 0
4 years ago
Other questions:
  • What are the x and y coordinates of the centroid of the area?
    10·1 answer
  • When fermentation units are operated with high aeration rates, significant amounts of water can be evaporated into the air passi
    13·1 answer
  • A solid square rod is cantilevered at one end. The rod is 0.6 m long and supports a completely reversing transverse load at the
    13·1 answer
  • The cylindrical aluminum air tank below is to be rated for 300 psi and it must comply with the ASME Boiler Code which requires a
    5·2 answers
  • Suppose the cylinder had a mass of 20 kg and started at a height of 2,000 m. If the initial temperature of the water was 25 °C,
    8·2 answers
  • What’s hydraulic pressure
    6·1 answer
  • What do you do when two parts of a transfer line move at different rates?
    5·1 answer
  • Cat is stuck in 10 foot hole how do i get it unstuck
    13·2 answers
  • A handsfree device may be used if it can be activated or deactivate with a?
    12·1 answer
  • During shielded metal arc welding, a welder can receive a burn comparable to sunburn if proper protective clothing is not worn.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!