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
50 POINTS!!! I WILL GIVE BRAINLIEST!!!!!
dedylja [7]

The equation would be worded as: 2m+16=36.


Solve! Using the subtraction property of equality, 2m=20. Then the division property of equality lets us figure out that m=10.

3 0
4 years ago
Read 2 more answers
Please please please help need this right now I will give brainless
telo118 [61]

Answer:

system of equations:

y \leq \frac{3}{4}x + 3\\y < -\frac{7}{2}x -3

Step-by-step explanation:

I've attached an image with an explanation below, hope it helps!

6 0
3 years ago
The formula an=a1+(n−1)⋅d is used for a geometric explicit formula. <br><br> true<br> false
Ulleksa [173]
True i hope it helps
3 0
3 years ago
How do I do: Subtract w+4 from 6w +3
sammy [17]
I think it should be 5w+7. I'm not 100% sure though
4 0
3 years ago
Which of the following are remote interior angles of one check all that apply?
RUDIKE [14]

Answer:

<4 and <3

Step-by-step explanation:

The remote interior angles are  the two angles that are inside the triangle and away from the angle adjacent to the exterior angle.

5 is adjacent to 1

so 3 and 4 are the remote interior angles

6 0
3 years ago
Other questions:
  • The students in math class use square tiles to make arrays. Celia says they can make more arrays with 8 tiles than with 9 tiles
    7·2 answers
  • a circle with center c(4,-2) contains the point D(8,1). what is the equation of the line perpendicular to the radius of the circ
    10·1 answer
  • Please help me, I will give thanks.
    5·1 answer
  • I need help please!<br><br> REMEMBER THEY NEED TO BE IN ABSOLUTE VALUE!!'
    7·2 answers
  • Which fraction is equivalent to 6/8​
    11·1 answer
  • Please help it’s due today. Stay safe! :) (:
    12·1 answer
  • Problem situation:
    7·2 answers
  • A bank offers a savings account which pays 3% interest per year. The amount of money in the account after t years is represented
    8·1 answer
  • 14
    11·1 answer
  • MHA SHIPS ON MY LIST:
    9·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!