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
DIA [1.3K]
3 years ago
15

3.27 LAB: Exact change (FOR PYTHON PLEASE)

Computers and Technology
1 answer:
Harlamova29_29 [7]3 years ago
7 0

Answer:

See explaination

Explanation:

if __name__ == '__main__':

total = int(input())

if total <= 0:

print("No Change")

else:

dollars = total // 100

total %= 100

quarters = total // 25

total %= 25

dimes = total // 10

total %= 10

nickels = total // 5

total %= 5

pennies = total

if dollars > 1:

print('%d Dollars' % dollars)

elif dollars == 1:

print('%d Dollar' % dollars)

if quarters > 1:

print('%d Quarters' % quarters)

elif quarters == 1:

print('%d Quarter' % quarters)

if dimes > 1:

print('%d Dimes' % dimes)

elif dimes == 1:

print('%d Dime' % dimes)

if nickels > 1:

print('%d Nickels' % nickels)

elif nickels == 1:

print('%d Nickel' % nickels)

if pennies > 1:

print('%d Pennies' % pennies)

elif pennies == 1:

print('%d Penny' % pennies)

You might be interested in
The picture that graphically represents the items you use in Windows is called a/an
Fofino [41]
Icon need to use 20  characters <span />
7 0
3 years ago
FREE BRAINLIEST!!!
Nastasia [14]

Answer:

B

Explanation:

4 0
3 years ago
Read 2 more answers
Someone help please!! i’ll give brainliest
Anni [7]

Answer:

1-Mouse

2-Display

3-Printer

4-Keyboard

Explanation:

6 0
3 years ago
Read 2 more answers
Using a "word" of 3 bits, list all of the possible signed binary numbers and their decimal equivalents that are representable in
Paul [167]
The sign bit is the high order bit, so that leaves two bits for the value. Two bits can represent 0-3. 2^2 possibilities.
6 0
3 years ago
To save time and avoid formatting errors, you can use the__ to apply custom formatting to other places in your presentation and
rjkz [21]
One way to save time and also avoid errors in formatting is to use the Format Painter in applying custom formatting in other places in your presentation easily and quickly. Using such will not only save your time but also guarantee an excellent presentation. 
4 0
4 years ago
Other questions:
  • You are boating on a lake. the weather turns bad. what should all passengers do first?
    14·2 answers
  • You are setting up a desktop computer for an AutoCAD specialist who needs a minimum of 125GB of RAM. Which operating system belo
    6·1 answer
  • How do you choose the amount of points you give a person here on this brainless app...??.
    11·2 answers
  • How to show neither precious nor accurate
    13·1 answer
  • You have created a PivotChart showing sales by quarter by sales rep. Before presenting it to management, you notice thename of a
    7·1 answer
  • 1. Consider a database with object X and Y and assume that there are two transactions T1 and T2. Transaction T1 reads objects X
    5·1 answer
  • Katla is a project manager. One of the programmers on her team comes to her and says that he permanently deleted some code mista
    5·1 answer
  • PLEASE HELP me with at least 1 of the problems in the picture <br><br>We are coding using python​
    14·1 answer
  • How much download speed does netflix take away from gaming
    12·1 answer
  • HELP ME ILL GIVE BRAINLY Input 50 numbers and then output the average of the negative numbers only. Write in pseudocode!
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!