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
Please help I need it by today!!!
AfilCa [17]

Answer:

if engineering disappeared for a day i would be at a loss. i wouldnt know what to do with myself considering engineering is my life. one way that engineers improve my life is they help me to understand enything end everything

Explanation:

7 0
3 years ago
The wheel and the attached reel have a combined weight of 50lb and a radius of gyration about their center of 6 A k in = . If pu
marishachu [46]

The complete question is;

The wheel and the attached reel have a combined weight of 50 lb and a radius of gyration about their center of ka = 6 in. If pulley B that is attached to the motor is subjected to a torque of M = 50 lb.ft, determine the velocity of the 200lb crate after the pulley has turned 5 revolutions. Neglect the mass of the pulley.

The image of this system is attached.

Answer:

Velocity = 11.8 ft/s

Explanation:

Since the wheel at A rotates about a fixed axis, then;

v_c = ω•r_c

r_c is 4.5 in. Let's convert it to ft.

So, r_c = 4.5/12 ft = 0.375 ft

Thus;

v_c = 0.375ω

Now the mass moment of inertia about of wheel A about it's mass centre is given as;

I_a = m•(k_a)²

The mass in in lb, so let's convert to slug. So, m = 50/32.2 slug = 1.5528 slug

Also, let's convert ka from inches to ft.

So, ka = 6/12 = 0.5

So,I_a = 1.5528 × 0.5²

I_a = 0.388 slug.ft²

The kinetic energy of the system would be;

T = Ta + Tc

Where; Ta = ½•I_a•ω²

And Tc = ½•m_c•(v_c)²

So, T = ½•I_a•ω² + ½•m_c•(v_c)²

Now, m_c is given as 200 lb.

Converting to slug, we have;

m_c = (200/32.2) slugs

Plugging in the relevant values, we have;

T = (½•0.388•ω²) + (½•(200/32.2)•(0.375ω)²)

This now gives;

T = 0.6307 ω²

The system is initially at rest at T1 = 0.

Resolving forces at A, we have; Ax, Ay and Wa. These 3 forces do no work.

Whereas at B, M does positive work and at C, W_c does negative work.

When pulley B rotates, it has an angle of; θ_b = 5 revs × 2π rad/revs = 10π

While the wheel rotates through an angle of;θ_a = (rb/ra) • θ_b

Where, rb = 3 in = 3/12 ft = 0.25 ft

ra = 7.5 in = 7.5/12 ft = 0.625 ft

So, θ_a = (0.25/0.625) × 10π

θ_a = 4π

Thus, we can say that the crate will have am upward displacement through a distance;

s_c = r_c × θ_a = 0.375 × 4π

s_c = 1.5π ft

So, the work done by M is;

U_m = M × θ_b

U_m = 50lb × 10π

U_m = 500π

Also,the work done by W_c is;

U_Wc = -W_c × s_c = -200lb × 1.5π

U_Wc = -300π

From principle of work and energy;

T1 + (U_m + U_Wc) = T

Since T1 is zero as stated earlier,

Thus ;

0 + 500π - 300π = 0.6307 ω²

0.6307ω² = 200π

ω² = 200π/0.6307

ω² = 996.224

ω = √996.224

ω = 31.56 rad/s

We earlier derived that;v_c = 0.375ω

Thus; v_c = 0.375 × 31.56

v_c = 11.8 ft/s

3 0
4 years ago
A beam has been fixed to the floor by the pin at B and the roller at A as shown in figure 1 below.​
ahrayia [7]
What figure below???
3 0
3 years ago
A gear train has two gears. The driver gear has 8 teeth and a diametral pitch of 6 teeth/inch. the follower gear has 24 teeth. W
Sliva [168]

Answer:

18 teeth/inch

Explanation:

Given that: i. driver gear has 8 teeth and diametral pitch of 6 teeth/inch.

                  ii. follower gear has 24 teeth.

Let the followers diametral pitch be represented by x.

Then,

8 teeth ⇒  6 teeth/inch

24 teeth ⇒ x teeth/inch

So that;

x = \frac{24 x 6}{8}

   = \frac{144}{8}

   = 18 teeth/inch

The diametral is 18 teeth/inch

3 0
3 years ago
If they opened up the International Space Station to tourism, would you go? Why? answer in 2 sentences
Arlecino [84]
Personally, I would go to the space station. The space station has extreme different levels of technology and abilities, plus who doesn’t want to go to space.
6 0
3 years ago
Read 2 more answers
Other questions:
  • In , the industries with the most complaints to the Better Business Bureau were banks, cable and satellite television companies,
    13·1 answer
  • Select the properties and typical applications for the high carbon steels.
    12·1 answer
  • Traditional password entry schemes are susceptible to "shoulder surfing" in which an attacker watches an unsuspecting user enter
    13·1 answer
  • Very thin films are usually deposited under vacuum conditions to prevent contamination and ensure that atoms can fly directly fr
    14·1 answer
  • The market for college textbooks is illustrated in the graph below. In the market for textbooks, the current price of a textbook
    11·1 answer
  • Help me, iv been having problems with ads going in my phones storage files, what can i do to stop this?
    14·2 answers
  • (,,)=^3−^3+^3, where is the sphere ^2 + ^2 + ^2=^
    6·1 answer
  • Christopher has designed a fluid power system that repeatedly gets clogs. Which of the following objects should he choose to add
    13·1 answer
  • What is the density of the mass of 24.0g and a volume of 6 ml?
    13·1 answer
  • Which type of artificial intelligence (ai) can repeatedly perform tasks of limited scope?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!