To convert the inputs to dollars and cents, we make use of a combination of multiplication and addition.
The program written in Python where comments are used to explain each line is as follows:
<em />
<em>#This gets input for the number of quarters</em>
quarters = int(input("Quarters: "))
<em>#This gets input for the number of dimes</em>
dimes = int(input("Dimes: "))
<em>#This gets input for the number of nickels</em>
nickels= int(input("Nickels: "))
<em>#This gets input for the number of pennies</em>
pennies= int(input("Pennies: "))
<em>#This converts the amount to dollars and cents</em>
dollars = quarters * 0.25 + dimes * 0.10 + nickels * 0.05 + pennies * 0.01
<em>#This prints the amount to 2 decimal places</em>
print("Amount ${:.2f}".format(dollars))
Read more about Python programs at:
brainly.com/question/22841107
Answer:
1.I have learned that my teacher is a good teacher
2.I have realized that my name is beautiful
Explanation:
thats right? hope it's help you heart me and please give brainlesst
Answer:
lol i would but i have an Xbox...
Explanation:
Answer:
Web protocols are a set of standards used to exchange information. It ensures that code can be modular and portable.
Answer: Once Upon a Time in the West (1968) PG-13 | 165 min | Western. ...
Cinema Paradiso (1988) R | 155 min | Drama. ...
Blade Runner (1982) R | 117 min | Action, Sci-Fi, Thriller. ...
2001: A Space Odyssey (1968) G | 149 min | Adventure, Sci-Fi. ...
Apocalypse Now (1979) ...
Chinatown (1974) ...
Stardust Memories (1980) ...
Le Notti Bianche (1957)
Explanation: