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 helical compression spring is made with oil-tempered wire with wire diameter of 0.2 in, mean coil diameter of 2 in, a total of
Naya [18.7K]

Answer:

a. Solid length Ls = 2.6 in

b. Force necessary for deflection Fs = 67.2Ibf

Factor of safety FOS = 2.04

Explanation:

Given details

Oil-tempered wire,

d = 0.2 in,

D = 2 in,

n = 12 coils,

Lo = 5 in

(a) Find the solid length

Ls = d (n + 1)

= 0.2(12 + 1) = 2.6 in Ans

(b) Find the force necessary to deflect the spring to its solid length.

N = n - 2 = 12 - 2 = 10 coils

Take G = 11.2 Mpsi

K = (d^4*G)/(8D^3N)

K = (0.2^4*11.2)/(8*2^3*10) = 28Ibf/in

Fs = k*Ys = k (Lo - Ls )

= 28(5 - 2.6) = 67.2 lbf Ans.

c) Find the factor of safety guarding against yielding when the spring is compressed to its solid length.

For C = D/d = 2/0.2 = 10

Kb = (4C + 2)/(4C - 3)

= (4*10 + 2)/(4*10 - 3) = 1.135

Tau ts = Kb {(8FD)/(Πd^3)}

= 1.135 {(8*67.2*2)/(Π*2^3)}

= 48.56 * 10^6 psi

Let m = 0.187,

A = 147 kpsi.inm^3

Sut = A/d^3 = 147/0.2^3 = 198.6 kpsi

Ssy = 0.50 Sut

= 0.50(198.6) = 99.3 kpsi

FOS = Ssy/ts

= 99.3/48.56 = 2.04 Ans.

7 0
3 years ago
Which of the following describes one of an employee's responsibilities under OSHA's rules?
kow [346]

Explanation:

what are the options for this question?

5 0
2 years ago
Read 2 more answers
Which of the following terms is defined as small bumps and slashes within a fluid power system?
-BARSIC- [3]

Answer:

friction

Explanation:

''.''

7 0
3 years ago
Read 2 more answers
Assume all surface are smooth Draw the FBD for each body
victus00 [196]

Answer: I’ll send picture

Explanation:

7 0
3 years ago
How does geothermal work
puteri [66]

Answer:

geothermal heating works by moving temperature-conducting fluid through an underground loop of pipes beneath or near your home. This allows the fluid to collect the thermal energy deposited in the earth from the sun.

Explanation:

5 0
3 years ago
Other questions:
  • The air in a room has a pressure of 1 atm, a dry-bulb temperature of 24C, and a wet-bulb temperature of 17C. Using the psychrome
    12·1 answer
  • A 200 W vacuum cleaner is powered by an electric motor whose efficiency is 70%. (Note that the electric motor delivers 200 W of
    13·1 answer
  • There are 22 gloves in a drawer: 5 pairs of red gloves, 4 pairs of yellow, and 2 pairs of green. You select the gloves in the da
    13·1 answer
  • Python lists are commonly used to store data types. Lists are a collection of information typically called a container. Think of
    5·1 answer
  • Which crystal system(s) listed below has (have) the following relationship for the unit cell edge lengths?
    13·1 answer
  • Which of the following are made up of electrical probes and connectors?
    8·1 answer
  • List a minimum of four reasons why you might be rejected for a job offer.
    10·1 answer
  • Select the creative imaging fields that require knowledge of programming.
    11·1 answer
  • What should be given to a customer before doing a repair?
    9·1 answer
  • What should you consider when choosing the type of head protection
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!