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
AB=CD what is the property
Cerrena [4.2K]
If AB = CD, then AB/n = CD/n. with mÐa in any expression. If AB = CD, then you may replace CD with AB in any expression. Transitive Property of Equality If mÐa = mÐb and mÐb = mÐc, then mÐa = mÐc. (Brainliest Answer Will be appreciated:D)
8 0
3 years ago
What the answer to this
mart [117]

Answer:

it's a trick question, it's still (-9,0)

Step-by-step explanation:

3 0
3 years ago
Read 2 more answers
PLEASE HELP WILL MARK BRAINLIEST!!
WINSTONCH [101]
Uhh i need more context
8 0
3 years ago
Read 2 more answers
Rebecca answered 42 of 60 questions correctly on a test which method should he she used to find the percent of question she answ
MakcuM [25]

She answered 70% questions correctly

Further explanation:

Percetages are used to calculae the success or failure in tests or exams usually.

Given

Total\ questions= 60\\The\ questions\ attempted\ correctly=42

The percentage will be calculated as follows:

Percentage\ of\ correctly\ answered\ questions=\frac{Correct\ questions}{Total\ questions}*100\\= \frac{42}{60}*100\\=70\%

She answered 70% questions correctly

Keywords: Percentage, Success rate

Learn more about percentage at:

  • brainly.com/question/9532142
  • brainly.com/question/9590016

#LearnwithBrainly

3 0
3 years ago
Read 2 more answers
Please help me with this (5th grade math)
Tanya [424]

Answer:

kenis

Step-by-step explanation:

3 0
3 years ago
Other questions:
  • Consider the functions f and g in the tables below. f(x) = 90x2 + 180x + 92 x y 0 92 1 362 2 812 3 1,442 4 2,252 5 3,242 g(x) =
    14·1 answer
  • Shown is a pentagon, with the size of each angle shown. Find the size of the largest angle
    10·1 answer
  • Round 0.0695712 to 2 significant figure
    8·1 answer
  • A1 = 7 and r = 5<br> I need this please
    11·1 answer
  • What does Buksa find?
    9·1 answer
  • I need help !!!!!!!!!!!!!!
    12·1 answer
  • Ken purchases a box of cereal for $2.89, cheese for $5.04, lettuce for $1.93, and milk for $1.99. He has $15 with him. About how
    6·2 answers
  • What is the HIGHEST COMMON FACTOR of 36 81
    12·2 answers
  • Answer should be in Polynomial in standard form.<br> (x-3)(x-4)
    9·2 answers
  • Find the surface area of each figure. Round to the hundredths place when necessary.​
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!