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
masha68 [24]
2 years ago
7

Given four values representing counts of quarters, dimes, nickels and pennies, output the total amount as dollars and cents. Out

put each floating-point value with two digits after the decimal point, which can be achieved as follows:
Mathematics
1 answer:
Anastaziya [24]2 years ago
7 0

They are writing the values of the coins and the sum using their understanding of the computational language Python.

<h3>What is Python?</h3>

Python is a general-purpose, high-level programming language that is interpreted. Code readability is a priority in its design philosophy, which uses substantial indentation. Garbage collection and dynamic typing are features of Python.

<h3>According to the given information:</h3>

Writing code in python      

quarters = int(input())

dimes = int(input())

nickels = int(input())

pennies = int(input())

cents = (quarters*25 + dimes*10 + nickels*5 + pennies)

#convert cents to dollars

# 1 dollar = 100 cents

# n cents = n/100 dollars

dollars = cents / 100.00

#Print the amount in dollars up to two decimal places

print("Amount: $"+"{:.2f}".format(dollars))

To know more about python visit:

brainly.com/question/27950303

#SPJ4

I understand that the question you are looking for is:

In python 3.17 LAB: Convert to dollars

Given four values representing counts of quarters, dimes, nickels and pennies, output the total amount as dollars and cents

Output each floating-point value with two digits after the decimal point, which can be achieved as follows:

print(f'Amount: ${dollars:.2f}'

Ex: If the input is

4

3

2

1

where 4 is the number of quarters, 3 is the number of dimes, 2 is the number of nickels, and 1 is the number of pennies, the output is:

Amount: $1.41

For simplicity, assume input is non-negative

You might be interested in
Write a sentence in which the relative frequency of the letter E (or e) is exactly 10%.
SVEN [57.7K]

Answer:

I'd try to do that, but it cannot be done.

Step-by-step explanation:

The above sentence contains 30 letters, including 3 "e"s, so the frequency of e is 3/30 = 0.1 = 10%

8 0
3 years ago
What is the negative square root of 25/400?
Vitek1552 [10]

Answer:

Step-by-step explanation:

8 0
3 years ago
The builder receives a 20% contractor's discount, plus and additional 3% for paying in full within 30 days. Tax on building mate
erastova [34]

Answer:

$1340.49

Step-by-step explanation:

From the attached image

Subtotal Cost of Purchased Items

= (20  \times 16.69)+(2 \times 20.78)+(2  \times 15.58)+(6  \times 21.38)\\+(118  \times 6.60)+(500  \times 0.22)+(10  \times 8.44)+(1  \times 150)\\\\=\$1658

Since the builder receives a 20% contractor's discount, plus and additional 3% for paying in full within 30 days.

Discount = 23% of $1658 = 0.23 X 1658 =$381.34

Total (Less Discount) = 1658-381.34 = $1276.66

Tax on building materials is 5%.

Therefore:

Tax = 5% of $1276.66=0.05 X 1276.66

Tax=$63.83

Therefore, the total bill:

=$1276.66+63.83

Grand Total =$1340.49

5 0
3 years ago
can someone plz help me with this question: select the correct answer. what is √125 in simplest form?​
aliina [53]

Answer: First Option (5√5)

4 0
3 years ago
Read 2 more answers
Calculator
Anna11 [10]

Answer:

The formula to calculate the total surface area of a cylinder is given as, the total surface area of cylinder = 2πr(h + r), while the curved surface area of cylinder formula is, curved/lateral surface area of cylinder = 2πrh, where 'r' is the radius of the base and 'h' is the height of the cylinder.

Step-by-step explanation:

hope it helps you

because I am not getting your answer

6 0
3 years ago
Read 2 more answers
Other questions:
  • If m triangle fgh=60 what is the value of x?
    9·2 answers
  • Roger gets $ 4 0 $40dollar sign, 40 per day as wages and $ 4 . 5 0 $4.50dollar sign, 4, point, 50 as commission for every pair o
    6·2 answers
  • If the mean of a symmetrical distribution is 42, which of these values could be the median of the distribution?
    13·2 answers
  • What is the range of the function f(x) = 3.2x for the domain {-4, -2, 0, 2, 4
    7·1 answer
  • if becky earns 10.19 per hour they amount she earns in 1 hr is 10.19t . determine if she works 13 hours
    15·1 answer
  • ANSWER ASAP
    9·2 answers
  • 29 What are the solutions to 2(x - 5)2= 98?
    12·1 answer
  • √4x-4=√5x-1−1.<br> there's 2 answers apparently
    9·1 answer
  • Solve.<br><br> x/2 + 8 = 14<br><br> x=
    8·1 answer
  • PLEASE HELP ASAP!!!!
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!