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
klasskru [66]
3 years ago
14

In python 3.17 LAB: Convert to dollars

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

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

You might be interested in
What came first, the internet or WIFI?
horsena [70]

Answer: wifi

Explanation:

because you can't have the internet if you don't have wifi to power it up

4 0
3 years ago
What is the purpose of a cover letter? Accompany a résumé to describe who you are and what you can do for the company Describe y
Vaselesa [24]

The answer is "Accompany a résumé to describe who you are and what you can do for the company". A cover letter should help sell you to the company, its information should tell them additional relivent information about you that may not be included on your resume.

8 0
3 years ago
Every nic has a unique address that consists of a 12-digit hexadecimal value. what is this address called?
Lyrx [107]
That address is called the MAC address 
6 0
4 years ago
What determines the speed st which your computer perfoms tasks?
tamaranim1 [39]

The central processing unit (CPU) is what powers the computer. Any lower-end CPUs will not run a quick-functioning computer very well.

3 0
4 years ago
____ are programs that enable the browser to work with an embedded object.
DerKrebs [107]
HTML's to learn more go to https://developer.mozilla.org/en-US/docs/Web/HTML/Element/embed
5 0
4 years ago
Other questions:
  • If I wanted to add code so that the costume of my sprite would change, what menu would I look under to find the "change costume"
    11·1 answer
  • The most important protocol at the internet layer is ____.
    13·1 answer
  • PLEASE HELPPPPPPP
    15·1 answer
  • A bakery sells three types of muffins whose prices are as follows: 1- blueberry muffin, $2.98 2- chocolate chip muffin, $4.50 an
    6·1 answer
  • Suppose the following groups are defined to shorten a system’s access control lists: – Group1: Alice, Bob, Cynthia, David, Eve –
    12·1 answer
  • Describe the forward button​
    7·1 answer
  • Facial recognition software can do all of the following, except: Match photos based on facial features Generate a picture based
    10·1 answer
  • Complete the statement by entering the appropriate term in the space below.
    13·2 answers
  • Do you need a separate password for each slack channel
    13·1 answer
  • How do i mark brainliest?
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!