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
If the bolt head and the supporting bracket are made of the same material having a failure shear stress of 'Tra;i = 120 MPa, det
Nina [5.8K]

Answer:

P=361.91 KN

Explanation:

given data:

brackets and head of the screw are made of material with T_fail=120 Mpa

safety factor is F.S=2.5

maximum value of force P=??

<em>solution:</em>

to find the shear stress

                            T_allow=T_fail/F.S

                                         =120 Mpa/2.5

                                         =48 Mpa

we know that,

                               V=P

<u>Area for shear head:</u>

                              A(head)=π×d×t

                                           =π×0.04×0.075

                                           =0.003×πm^2

<u>Area for plate:</u>

                               A(plate)=π×d×t  

                                            =π×0.08×0.03

                                            =0.0024×πm^2

now we have to find shear stress for both head and plate

<u>For head:</u>

                                   T_allow=V/A(head)

                                    48 Mpa=P/0.003×π                 ..(V=P)

                                             P =48 Mpa×0.003×π

                                                =452.16 KN

<u>For plate:</u>

                                   T_allow=V/A(plate)

                                    48 Mpa=P/0.0024×π                 ..(V=P)

                                             P =48 Mpa×0.0024×π

                                                =361.91 KN

the boundary load is obtained as the minimum value of force P for all three cases. so the solution is

                                                P=361.91 KN

note:

find the attached pic

7 0
3 years ago
Calculate the molar heat capacity of a monatomic non-metallic solid at 500K which is characterized by an Einstein temperature of
aleksandr82 [10.1K]

Answer:

Explanation:

Given

Temperature of solid T=500\ K

Einstein Temperature T_E=300\ K

Heat Capacity in the Einstein model is given by

C_v=3R\left [ \frac{T_E}{T}\right ]^2\frac{e^{\frac{T_E}{T}}}{\left ( e^{\frac{T_E}{T}}-1\right )^2}

e^{\frac{3}{5}}=1.822

Substitute the values

C_v=3R\times (\frac{300}{500})^2\times (\frac{1.822}{(1.822-1)^2})

C_v=3R\times \frac{9}{25}\times \frac{1.822}{(0.822)^2}

C_v=0.97\times (3R)            

6 0
3 years ago
A river has an average rate of water flow of 59.6 M3/s. This river has three tributaries, tributary A, B and C, which account fo
Fiesta28 [93]

Answer:

50421.6 m³

Explanation:

The river has an average rate of water flow of 59.6 m³/s.

Tributary B accounts for 47% of the rate of water flow. Therefore the rate of water flow through tributary B is:

Flow rate of water through tributary B = 47% of 59.6 m³/s = 0.47 * 59.6 m³/s = 28.012 m³/s

The volume of water that has been discharged through tributary B = Flow rate of water through tributary B * time taken

time = 30 minutes = 30 minutes * 60 seconds / minute = 1800 seconds

The volume of water that has been discharged through tributary B in 30 seconds = 28.012 m³/s * 1800 seconds = 50421.6 m³

3 0
3 years ago
What is the function maintenance? List some important steps for vibration monitoring based maintenance.
Mrrafil [7]

The maintenance is in charge of controlling that all the machines of a company are constantly running in order to avoid damages that cause loss of money when the machines fail.

The maintenance based on vibration monitoring allows to predict failures in some rotating machines such as:

1. worn bearings

2.alignment

3.balance

4. affected gears

5. bent shafts

6. rocks

7.gags

8. eccentricity

9. failures of electrical origin

4 0
3 years ago
A cooling system load is 96,000 BTUh sensible. How much chilled air is required to satisfy the load if the system is designed fo
Natalija [7]

Answer:

For 20^{\circ} - 5.556 lb/s

For 15^{\circ} - 7.4047 lb/s

Solution:

As per the question:

System Load = 96000 Btuh

Temperature, T = 20^{\circ}

Temperature rise, T' = 15^{\circ}

Now,

The system load is taken to be at constant pressure, then:

Specific heat of air, C_{p} = 0.24 btu/lb ^{\circ}F

Now, for a rise of 20^{\circ} in temeprature:

\dot{m}C_{p}\Delta T = 96000

\dot{m} = \frac{96000}{C_{p}\Delta T} = \frac{96000}{0.24\times 20} = 20000 lb/h = \frac{20000}{3600} = 5.556 lb/s

Now, for 15^{\circ}:

\dot{m}C_{p}\Delta T = 96000

\dot{m} = \frac{96000}{C_{p}\Delta T} = \frac{96000}{0.24\times 15} = 26666.667 lb/h = \frac{26666.667}{3600} = 7.4074 lb/s

4 0
3 years ago
Other questions:
  • What is 1000 kJ/sec in watts?
    10·1 answer
  • An insulated piston–cylinder device initially contains 1 m3 of air at 120 kPa and 17°C. Air is now heated for 15 min by a 200-W
    7·1 answer
  • If you should lose your balance, you should grab onto the turning center to steady yourself.
    10·1 answer
  • Mining is an example of this type of business
    7·1 answer
  • Name the main classes of polymer and define their characteristic properties
    15·1 answer
  • . Which of the following formula is used for calculating current:
    15·1 answer
  • What is the name of the type of rocker arm stud that does not require a valve adjustment?
    12·1 answer
  • What is the primary difference between the process of lost-wax casting as practiced in ancient times and that same process today
    13·1 answer
  • What is the first step of the engineering design process?
    9·2 answers
  • The A/C compressor will not engage when the A/C is turned on. The static refrigerant pressure is 75 psi and the outside temperat
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!