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
A European car manufacturer reports that the fuel efficiency of the new MicroCar is 48.5 km/L highway and 42.0 km/L city. What a
statuscvo [17]

Answer:

Fuel efficiency for highway = 114.08 miles/gallon

Fuel efficiency for city = 98.79 miles/gallon

Explanation:

1 gallon = 3.7854 litres

1 mile = 1.6093 km

Let's first convert the efficiency to km/gallon:

48.5 km/litre = (48.5 * 3.7854) km/gallon

48.5 km/litre =  183.5919 km/gallon (highway)

42.0 km/litre = (42.0 * 3.7854) km/gallon

42.0 km/litre = 158.9868 km/gallon (city)

Next, we convert these to miles/gallon:

183.5919 km/gallon = (183.5919 / 1.6093) miles/gallon

183.5919 km/gallon = 114.08 miles/gallon (highway)

158.9868 km/gallon = (158.9868 /1.6093) miles/gallon

158.9868 km/gallon = 98.79 miles/gallon (city)

3 0
3 years ago
A cylindrical resistor element on a circuit board dissipates 0.6 W of power. The resistor is 1.5 cm long, and has a diameter of
Burka [1]

Answer:

a. 51.84Kj

b. 2808.99 W/m^2

c. 11.75%

Explanation:

Amount of heat this resistor dissipates during a 24-hour period

= amount of power dissipated * time

= 0.6 * 24 = 14.4 Watt hour

(Note 3.6Watt hour = 1Kj )

=14.4*3.6 = 51.84Kj

Heat flux = amount of power dissipated/ surface area

surface area = area of the two circular end  + area of the curve surface

=2*\frac{\pi D^{2} }{4} + \pi DL\\=2*\frac{\pi *(\frac{0.4}{100} )^{2} }{4} + \pi *\frac{0.4}{100} *\frac{1.5}{100}

= 2.136 *10^-4 m^{2}

Heat flux =\frac{0.6}{2.136 * 10^{-4} } = 2808.99 W/m^{2}

fraction of heat dissipated from the top and bottom surface

=\frac{\frac{2*\pi D^{2} }{4} }{\frac{2*\pi D^{2}}{4} + \pi DL } \\\\=\\\frac{\frac{2*\pi *(\frac{0.4}{100} )^{2} }{4} }{\frac{2*\pi *(\frac{0.4}{100}  )^{2} }{4} +\pi *\frac{0.4}{100} *\frac{1.5}{100} } \\\\=\frac{2.51*10^{-5} }{2.136*10^{-4} } \\\\\= 0.1175

=11.75%

8 0
3 years ago
Read 2 more answers
What type of bridge is the sunshine skyway bridge?
sdas [7]

Answer:

That's either a cable-stayed bridge or a cantilever bridge

6 0
3 years ago
Question 7.1: Two possible overhead valve combustion chambers are being considered – the first has two valves; the second has fo
AleksandrR [38]

Answer:

1) The adoption of the second design we can see that the total valve perimeter is increased by 60.8%

2) Increase in flow are : 29%

3) Additional benefits in using 4 valves per cylinder:

a)For the purpose of controlling the combustion process, the inlet valves will give more flexibility

b) There is a larger valve throat areas for the flow of gas

Explanation:

1) Perimeter of the first possible overhead valve combustion chamber with two valves:

P₂ = πd = π × 23 = 72.26mm

Perimeter of the second possible overhead valve combustion chamber with four valves:

P₄ = π2d = π × 18.5 × 2 = 116.24 mm

If second design is adopted, percentage increase = ((P₄ - P₂)/P₂)×100

     = ((116.24 - 72.26)/72.26)×100 = 0.6086 ×100 = 60.86%

Therefore, the total valve perimeter is shown to have increased by 60.8%

2) Formula for flow Area (A) = P × L = πkd²

Area of the first possible overhead valve combustion chamber with two valves: A₂ = πkd² = πk(23)² = 1662k mm²

Area of the first possible overhead valve combustion chamber with four valves: A₄ = πkd² = 2πk(18.5)² = 2150k mm²

The percentage increase in flow area: ((A₄ - A₂)/A₄)×100 = ((2150 - 1662)/2150)×100 = 29%

3) The additional benefits of using are:

a) For the purpose of controlling the combustion process, the inlet valves will give more flexibility

b) There is a larger valve throat areas for the flow of gas

           

7 0
3 years ago
Conclude from the scenario below which type of documentation Holly should use, and explain why this would be the best choice. Ho
NARA [144]

Answer:

Okay

Explanation:

7 0
3 years ago
Other questions:
  • When encountering low visibility from rain or fog, you should use your ____.
    12·1 answer
  • A waste treatment pond is 50m long and 25m wide, and has an average depth of 2m.The density of the waste is 75.3 lbm/ft3. Calcul
    12·1 answer
  • Which option supports the following scenario?
    14·1 answer
  • Write a program in C++ that can be used by a small theater to sell tickets for performances.The theater’s auditorium has 15 rows
    7·1 answer
  • For a bronze alloy, the stress at which plastic deformation begins is 266 MPa and the modulus of elasticity is105 GPa.
    15·1 answer
  • Heating of Oil by Air. A flow of 2200 lbm/h of hydrocarbon oil at 100°F enters a heat exchanger, where it is heated to 150°F by
    7·1 answer
  • A homeowner consumes 260 kWh of energy in July when the family is on vacation most of the time. Determine the average cost per k
    7·1 answer
  • You are using a Jupyter Notebook to explore data in a DataFrame named productDF. You want to write some inline SQL by using the
    8·1 answer
  • Technician A says that the low level brake fluid switch on a master cylinder will turn on the brake warning light when the syste
    9·1 answer
  • Can someone please help me?
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!