I have been stuck on this lab this is my program.

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}')

My program:
quarters = int(input("Quarters: "))

dimes = int(input("Dimes: "))

nickels= int(input("Nickels: "))

pennies= int(input("Pennies: "))

dollars = (quarters * 0.25 + dimes * 0.10 + nickels * 0.05 + pennies * 0.01)

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


not sure why my answer is for wrong.

my output is: (with input)
1

2

3

4

Quarters: Dimes: Nickels: Pennies: Amount: $1.41

expected out put is : Amount: $1.41

What about my code adds the extra part to my answer?

Answers

Answer 1

They are using the knowledge of computational language in python to write the values ​​of the coins and the total we find that

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 upto two decimal places

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

See more about python at brainly.com/question/18502436

#SPJ1

I Have Been Stuck On This Lab This Is My Program. Given Four Values Representing Counts Of Quarters,

Related Questions

What is software engineering? What are the objectives of software engineering?

Answers

Answer:

The basic objective of software engineering is to develop methods and procedures for software development that can scale up for large systems and that can be used consistently to produce high-quality software at low cost and with a small cycle of time.

Explanation:

Which loop structure always uses a semicolon after the test condition?
A. for
B. do-while
C. while

Answers

Answer:

I would have to go with A

Explanation:

It could be B, but I'm going with A because of the fact that right after the condition, there is a semicolon, whereas for the do-while loop, the semicolon comes after the )

Syntax:

// For loop

for (int i = 0; i < 10; i++)

{

// Body

}

// Do-while

int i = 0;

do

{

i++;

// Other code

} while(i < 9); // We do i < 9, because by the time we get to the condition, i = 10, because the increment happens before the condition is checked

Answer:

do-while

Explanation:

syntax:

do {

//the statements;

} while(the condition is true);

In the other two types of loops, you can put a semicolon after the condition, but it signifies the end of the statement (e.g.  for loop, it will mean end of for statement and it's body will have no meaning)

43
What are several examples of fictional photography?
O A
celebrity, fashion, glamour
OB.
nature, sports, life
OC. military, propaganda, commercial
OD. corporate, scientific, police
Reset
Next

Answers

Answer:

c

Explanation:

I think A for sure it shows everything I could think of in fictional photography

Why do you guys the internet who are planning to be Information technology technician?

Answers

Answer:

The biggest advantage of choosing information technology for a career is that it has a very low cost of education as compared to many other career choices. You don't need a 4-year degree to become an I.T. professional. Instead, you can get quick training to be certified in specific areas of Information Technology.

Predicate Logic The following is a snippet of pseudocode designed to produce an array (similar to a matrix). The variables m and n are integer variables and the variable A is a two-dimensional array with 10 rows (indexed from 1 to 10) and 8 columns (indexed from 1 to 8). \array.pas\ For m:=1to * 10do For n:=1to * 8do forall m bullet forall n bullet A[m, n]in mathbb Z . (d) The entries in each row of the array A are sorted into strictly decreasing order. You will also be asked to decide whether each statement is True or False. For example, the above statement is True. As an example, the statement "All entries in the array A are integers." can be expressed as (e) Some of the entries of the array A are greater than 30. (b) All entries in the array A are positive and less than 70. 1. Express each of the statements below in predicate logic. (a) All entries in the array A are positive. In the code above, A[m.n] refers to the entry in row m and column n Your task is to express the various statements bel

Answers

The answer is A are greater

which of the following is not an internet service?
(a) E-supermarket
(b) Blogging
(c) E-commerce
(d) E-mail​

Answers

Answer:

Blogging is not an internet service.

Hope it helps!

Which of the following is an antivirus software?
McAfee
Mozilla Firefox
Windows Firewall
Y2K

Answers

Answer:

McAfee

Explanation:

An antivirus is a standalone software that protects other software. On the other hand, a Firewall is capable of preserving both software and hardware on the network.

The antivirus software is McAfee. The correct option is A.

What is antivirus software?

An antivirus program detects and removes viruses and other types of malicious software from your computer or laptop.

Malicious software, also known as malware, is code that can harm your computers and laptops, as well as the data they contain.

Antivirus software is needed even though if persons are using a Mac or a Windows device, both of which encompasses some level of virus protection.

Install third-party antivirus software for total protection, including endpoint protection and response, as well as protection against malware and potentially unwanted programs.

Antivirus software scans your files and incoming email for viruses and deletes any that are found. McAfee, Norton, and Kapersky are examples of anti-virus software.

Thus, the correct option is A.

For more details regarding antivirus software, visit:

https://brainly.com/question/23845318

#SPJ2

state four input device that are used for playing gaming programs​

Answers

Answer:

Mouse, Keyboard, Headphones, Charger.

Explanation:

These can be plugged into the computer for gaming and other uses.

Answer:

mouse

joystick

keyboard

headset

Explanation:

A few more examples : a gaming keypad and a microphone

The Electronics Communications Privacy Act allows the government to have access to....?

Answers

The Electronic Communications Privacy Act allows the government to have access to a treasure trove of information regarding who you are, where you go, and what you do.

What is Electronic Communications Privacy Act?

Electronic Communications Privacy Act may be defined as a law that determines it is unlawful to wipe or apprehend communication, over wires.

This access to government is accumulated by cell phone providers, search engine operators, social networking sites, and other websites each and every day.

All such network providers track all major activities of individuals through the mode of electronic gadgets.

Therefore, it is well described above.

To learn more about The Electronics Communications Privacy Act, refer to the link:

https://brainly.com/question/14142485

#SPJ1

Discuss the relationship amongst the following basic file elements: • Field. • Record. • File. • Database. • Directory.​

Answers

Answer:

describe two events from the life of the prophet that illustrate the way he treated non muslims3+15-75+375.

Explanation:

53+15-75+3756,1803+15-75+375describe two events from the life of the prophet that illustrate the way he treated non muslims

in tabular form differentiate the first four generations of computer ​

Answers

Answer:

Explanation:

See attachment.

What are three benefits of sharing on social media?

Answers

Answer:

reach more organization

get viral to whole entire nation

it also enhance to people's knowledge and quatable understandment

Which of the following best describes a hotspot as
used in the Action feature of PowerPoint?

an image containing visible hyperlinks
O an invisible hyperlink embedded in a slide
O
a feature that converts presentations to
documents
a feature that allows you to present a slide to
people located remotely

Answers

A statement which best describes a hotspot as used in the Action feature of PowerPoint is: B. an invisible hyperlink embedded in a slide.

What is a hotspot?

A hotspot can be defined as a visual effect that can be applied in Microsoft PowerPoint to content on a slide, so as to make elements (objects) interactive with the end users.

This ultimately implies that, an invisible hyperlink embedded in a slide is a statement which best describes a hotspot as used in the Action feature of PowerPoint.

Read more on PowerPoint here: https://brainly.com/question/26404012

#SPJ1

Answer:

It's B

Explanation:

i got it right on edg 2023

What is an example of a Data component within an enterprise platform?

Answers

An example of a Data component within an enterprise platform A mobile app used by potentail customers to buy product or place an order.

What is an enterprise platform?

An Enterprise Business Platforms is known to be a kind of an integrated software applications that helps and shared data which is often combined to form Enterprise Business Solutions or Apps.

Note that An example of a Data component within an enterprise platform A mobile app used by customers to buy product or place an order.

Learn more about enterprise platform from

https://brainly.com/question/25946375

#SPJ1

which is an example of analog d


evice​

Answers

Answer:

crt (cathode ray tube) vcr (video cassette recorder)

Explanation:

How might the design be changed so that additional copies of print statements would not be needed?

Answers

A design be altered so that additional copies of print statements would not be needed by changing the format spring.

What is the aim of a print statement?

The PRINT statement is known to be often sent data so that it is taken to the display terminal or to another kind of print unit.

Note that A design be altered so that additional copies of print statements would not be needed by changing the format spring.

Learn more about design from

https://brainly.com/question/1020696

#SPJ1

Consider the following code segment. How many unique new (do not count the starting process) processes are created? (you may want to supply some reasoning/diagram )
pid = fork();
if (pid >= 0) // pid greater than or equal to zero
fork();
fork()

Answers

The number of unique processes that are created is in the original process, you get the PID of the child process. In the child process, you get 0.

What is a Code Segment?

This refers to the portion of an object file that is in the virtual space of a computer that contains executable instructions.

Hence, we can note that since PID >= 0, then there would be the creation of two identical processes in which the original process returns the PID of the child process, and the output in the child process would be zero.

If we make use of a canonical tag,

p = fork();\\if (0 == p)

{

   // We're the child process

}

else if (p > 0)

{

   // We're the parent process

}

else

{

   // We're the parent process, but the child couldn't be created

}

Read more about code segments here:

https://brainly.com/question/25781514

#SPJ1

what was the first computer system that used color display?

Answers

Answer:

Year Event

1977 The Apple II, released in June 1977, allowed for colour display on a             CRT monitor.

Explanation:

If x=5 and y=3 will this condition execute? if(x > y)
A. yes
B. no

Answers

Yes
Because the x bigger than the y
A. yes

because 5 > 3 is a true value, therefore if(True) will execute

Give an implementation of the abstract data type of a priority queue of integers as an
ordered list using the SML syntax (ML functor). Given the following:

type Item
val > : Item * Item -> bool

Answers

We can use the code for IntPQ to implement the priority queue construction:

functor PQUEUE(type Item  

              val > : Item * Item -> bool  

             ):QueueSig =  

struct  

   type Item = Item  

   exception Deq  

   fun insert e [ ] = [e]:Item list  

     | insert e (h :: t) =  

       if e > h then e :: h :: t  

                else h :: insert e t  

   abstype Queue = Q of Item list  

   with  

       val empty          = Q []  

       fun isEmpty (Q []) = true  

         | isEmpty _      = false  

       fun enq(Q q, e)    = Q(insert e q)  

       fun deq(Q(h :: t)) = (Q t, h)  

         | deq _          = raise Deq  

   end  

end;

What is SML?

The capital asset pricing model (CAPM), which displays varying levels of systematic, or market risk, of various marketable securities plotted against the projected return of the entire market at any one time, is represented graphically by the security market line (SML), a line drawn on a chart.

The supplied predicate, which we consider to be a total ordering, can be used as the priority order in a priority queue. The end result is a structure with a new type for the queue and a number of operations that work with it. We create a new structure from a group of types and values (a structure), and we represent this creation as an ML functor. A functor takes a structure and produces a new structure, much as how a function takes a value and makes a new value. To accomplish the formation of the priority queue, we can utilize the IntPQ code.

Learn more about SML here https://brainly.com/question/15901527

#SPJ10

What is used for risk response control?

Answers

Answer:

Risk response control uses methods such as mitigate, avoidance, shift, actively accept, and passively accept.

Explanation:

Risk Response Control refers to the procedure of evaluating residual risks, detecting new risks, guaranteeing the execution of risk plans, and assessing the success of the plans in decreasing risk is known as risk response control. Whereby the risk response control techniques include acceptance, avoidance, transfer, and mitigation

What is the difference between a status bar, title bar, and tabs?

Answers

Answer:

Status Bar: a horizontal window at the bottom of a parent window in which an application can display various kinds of status information. The status bar can be divided into parts to display more than one type of information. The following screen shot shows the status bar in the Microsoft Windows Paint application.

Title Bar: horizontal bar at the top of a window, bearing the name of the program and typically the name of the currently active document.

Tabs: a tab is a clickable area at the top of a window that shows another page or area

What is wrong with this case statement -> case 2:
A. cases must be capitalized
B. cases must use a ; and not a :
C. nothing

Answers

Answer:

C: Nothing

Explanation:

Assuming this case is acting upon a switch on an integral value, there is nothing wrong with this case header.

var x = 10;

switch (x)

{

case 2:

     Console.WriteLine("The value of 'x' is 2!");

}

Write down the importance of cooling system on your machine to cools the workpiece and avoid damage during surface grinding process:​

Answers

The importance of cooling system on the machine is to avoid the buildup of the heat on the system due to working of system because heating of the system cause friction and spars, that damage the system.

What is a cooling system?

A cooling system help in cooling the machine, because when machine runs they produce heat and friction. Cooling system reduce the excess heat of the machines.

Thus, the  importance of cooling system on the machine is to avoid the buildup of the heat on the system due to working of system because heating of the system cause friction and spars, that damage the system.

Learn more about cooling system

https://brainly.com/question/13258295

#SPJ1

compare the results of both the RATS and Skipfish reports.

Answers

Answer:

The results of both reports RATS is known nas mouse and skipfish is known as one type of fish

The Electronics Communications Privacy Act allows the government to have access to....?

Answers

Personal information like who the person is, what they do, and where they go are the information that can be accessed by the government under the Electronics Communications Privacy Act.

What is Electronics Communications Privacy Act?

Electronic Communications Privacy Act allows the government to have the authority to the suspicious activity that takes place at social sites or through the use of electronic devices.

The unlawful acts and issues are overseen so that any violent circumstances do not arise. The data is provided through networking sites, cell phone providers, etc.,

The suspicious and unlawful activities are tracked through the electronic device that allows the government to keep track of the activities that can be a threat to them and the country.

Therefore, the act allows the government to track personal information which is unlawful and unauthorized.

Learn more about Electronics Communications Privacy Act here:

https://brainly.com/question/3773028

#SPJ1

When an AC voltage is being measured
across a 15-ohm resistor which is carrying
a current of 12 amps,
the selector switch should be set to the AC voltage position of __volts.
A. 1000 B.2 C. 20 D. 200

Answers

Answer:

D.

200

Explanation:

The TCP\IP protocol was invented by who

Answers

Answer:

The TCP protocol was invented by Bob Kahn, Ray Tomlinson and Vint Cerf.

Explanation:

Answer:

Vint Cerf ,Bob Kahn and Ray Tomlinson

The term ____ photography syndrome is often used to refer to photographers who who use zoom lenses all the time rather than prime lenses.

Answers

Answer:

The term Gear Acquisition photography syndrome is often used to refer to photographers who who use zoom lenses all the time rather than prime lenses.

Explanation:

Why do we need to connect computers"​

Answers

Answer:

batteries cant last connected to nothing forever probably

Other Questions
Which theme is best established by the conflict in this passage? advances in technology can lead to devastation. war is an unfortunate but necessary path to growth. those who come before us determine the future. coming of age requires risk-taking and bravery. Describe the features of the respiratory epithelium and explain in terms of physiology how they protect the lung. Which uses a precise adjective?hot sunwarm sunscorching sunbright sun 0123456 7 8 9 10 what is this called.........ence.fill in the missing space. 3y + 9x = 21 Graph A On a coordinate plane, a line goes through (negative 3, negative 2) and (0, 7). Graph B On a coordinate plane, a line goes through (0, negative 7) and (3, 2). Graph C On a coordinate plane, a line goes through (0, 7) and (3, negative 2). Graph D On a coordinate plane, a line goes through (negative 3, 2) and (0, negative 7). a. Graph A c. Graph C b. Graph B d. Graph D Please select the best answer from the choices provided Which of the following choices is NOT a consequence of incomplete combustion?A. Carbon monoxide blocking oxygen in the blood.B. Heavy metals leaking into groundwater and damaging the nervous system.C. Carbon particles causing breathing problems.D. Carbon particles making buildings dirty. What is the range of the function g(x) = 3sec(2x + 4) 1? (, 2] [0, ) (, 4] [0, ) (, 4] [2, ) (, 5] [1, ) the lindisfarne gospels (fig. 16.6) are from the ________ period. What is the central idea of the first quatrain?My mistress is unattractive.O My mistress is beautiful. My mistress has a natural a beauty. My mistress is not as beautiful as nature.und: British sailors, traders, and workers carried the game of soccer with them around the world. Which describes of soccer with them around the world? 387 kilograms = x gramsAnswer:a. 387,000gb. 38,700gc. 387gd. 3.87g Someone-perhaps emmanuel or paul-__________ the right wine to serve with earthworm lasagna Based on its prefix witch is the correct definition of impersonal Carbon fixation occurs in the second stage of photosynthesis, during the light-independent reactions of the Calvin cycle. In the first step of this cycle, the enzyme Rubisco adds CO2 to the energy-rich compound ribulose 1,5-bisphosphate, ultimately producing two molecules of 3-phosphoglycerate. In a culture of green alga that is carrying out photosynthesis in the presence of CO2 in the laboratory, what would happen to the levels of ribulose 1,5-bisphosphate and 3-phosphoglycerate in the minutes after the lights were turned off and the cultures were plunged into darkness What type of polynomial is P(x)=x^3-1? 4x^2 +16x -20 = 0What is x La tercera persona de nuestra What term does the formula sin A/a = sin B/b represent? Refer to the fourth stanza of Lady Freedom Among Us.How does Doves use of figurative language in these lines affect the poem?It shows Dove is critical of Americans who fail to achieve the American Dream.It conveys the idea that, regardless of status, every American deserves equal respect and dignity.It highlights Doves optimism about Americas efforts to restore national monuments.It develops a sarcastic tone regarding Americas ignorance of homelessness in society. In ABC, m