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 water reservoir contains 108 metric tons of water at an average elevation of 84 m. The maximum amount of electric energy that
zavuch27 [327]

Answer:

24.72 kwh

Explanation:

Electric energy=potential energy=mgz where m is mass, g is acceleration due to gravity and z is the elevation.

Substituting the given values while taking g as 9.81 and dividing by 3600 to convert to per hour we obtain

PE=(108*9.81*84)/3600=24.72 kWh

8 0
3 years ago
A formal indication from a state, on letterhead, or an official state form, that shows the applicant has valid driving privilege
alex41 [277]

A formal indication from a state, on letterhead, or an official state form, which shows that an applicant has valid driving privileges and is clear to apply for a Colorado driver's license is called a clearance.

<h3>What is a learner's license?</h3>

A learner's license is also referred to as learner's permit and it can be defined as a category of driver's license that is issued to an individual who is learning how to drive an automobile vehicle (car).

<h3>What is a license?</h3>

A license is also referred to as a certificate and it can be defined as an authorization that is typically issued by state governments to a driver, so as to avail him or her the legal ability to physically driver in all the states across a country.

In this scenario, we can infer and logically deduce that a clearance is a formal indication from a state which shows and affirms that an applicant has valid driving privileges, and is permitted to apply for a Colorado driver's license.

Learn more about learner's license here: brainly.com/question/26289148

#SPJ1

7 0
1 year ago
A small metal particle passes downward through a fluid medium while being subjected to the attraction of a magnetic field such t
bekas [8.4K]

Answer:

a)Δs = 834 mm

b)V=1122 mm/s

a=450\ mm/s^2

Explanation:

Given that

s = 15t^3 - 3t\ mm

a)

When t= 2 s

s = 15t^3 - 3t\ mm

s = 15\times 2^3 - 3\times 2\ mm

s= 114 mm

At t= 4 s

s = 15t^3 - 3t\ mm

s = 15\times 4^3- 3\times 4\ mm

s= 948 mm

So the displacement between 2 s to 4 s

Δs = 948 - 114 mm

Δs = 834 mm

b)

We know that velocity V

V=\dfrac{ds}{dt}

\dfrac{ds}{dt}=45t^2-3

At t=  5 s

V=45t^2-3

V=45\times 5^2-3

V=1122 mm/s

We know that acceleration a

a=\dfrac{d^2s}{dt^2}

\dfrac{d^2s}{dt^2}=90t

a= 90 t

a = 90 x 5

a=450\ mm/s^2

4 0
3 years ago
A list is sorted in ascending order if it is empty or each item except the last one is less than or equal to its successor. HERE
Free_Kalibri [48]

Using the knowledge of computational language in python it is possible to write a code that writes a list and defines the arrange.

<h3>Writing code in python:</h3>

<em>def isSorted(lyst):</em>

<em>if len(lyst) >= 0 and len(lyst) < 2:</em>

<em>return True</em>

<em>else:</em>

<em>for i in range(len(lyst)-1):</em>

<em>if lyst[i] > lyst[i+1]:</em>

<em>return False</em>

<em>return True</em>

<em>def main():</em>

<em>lyst = []</em>

<em>print(isSorted(lyst))</em>

<em>lyst = [1]</em>

<em>print(isSorted(lyst))</em>

<em>lyst = list(range(10))</em>

<em>print(isSorted(lyst))</em>

<em>lyst[9] = 3</em>

<em>print(isSorted(lyst))</em>

<em>main()</em>

See more about python at brainly.com/question/18502436

#SPJ1

7 0
2 years ago
Do you get a better performance using premier gasoline (Octane number 93) for your compact car?
topjm [15]

Answer:

Yes

Explanation:

As we know that octane number resist the engine from knocking.If knocking can prevent that automatically the performance of engine will increases.If octane number is 100 then it means that knocking tendency in the engine is zero.So higher the octane number better will the performance of the engine.

Generally octane number is 87 but for premier gasoline is 92 or 93.

So we can say that if octane number is  93 then car will give better performance

6 0
3 years ago
Other questions:
  • Controlling your vehicle
    5·1 answer
  • The lab technician you recently hired tells you the following: Boss, an undisturbed sample of saturated clayey soil was brought
    6·1 answer
  • A six-lane freeway (three lanes in each direction) currently operates at maximum LOS C conditions. The lanes are 11 ft wide, the
    5·1 answer
  • What happens to a commercial airline at cruising altitude if the pilot does not touch the throttles?
    12·1 answer
  • Convert the unit Decimeter (dm) into Micrometer (um).
    8·1 answer
  • A heat engine receives heat from a heat source at 1453 C and has a thermal efficiency of 43 percent. The heat engine does maximu
    11·1 answer
  • 0 - 1"<br> -20<br> -15<br> -10<br> 5<br> 0 1 2 3<br> 0
    14·1 answer
  • Balanced forces will result in which of the following
    9·1 answer
  • A plane wall of thickness 2L = 40 mm and thermal conductivity k = 5 W/m K experiences uniform volumetric heat generation at a ra
    15·1 answer
  • 7 to 1 inch above the stock
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!