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

When should students in a study session use flash cards to quiz one another?

while reviewing
while drilling
while discussing
while preparing`

Answers

When drilling, students in a study session use flashcards to quiz one another. thus, Option B is the correct statement.

What do you mean by drill and practice?

The term drill and practice can be described as a way of practice characterized by systematic repetition of concepts, examples, and exercise problems.

Drill and exercise is a disciplined and repetitious exercise, used as an average of coaching and perfecting an ability or procedure.

Thus, When drilling, students in a study session use flashcards to quiz one another. Option B is the correct statement.

Learn more about drill and practice:

https://brainly.com/question/27587324

#SPJ1

The classes Person and Airplane shall have the property to print information about themselves on a printer. Draw class and interaction diagrams

Answers

The classes Person and Airplane shall have the property to print information about themselves on a printer the . Interaction diagrams cognizance on describing the waft of messages inside a device, imparting context for one or greater lifelines inside a device.

How do you operate interplay diagrams whilst you version dynamic factors of a device provide an explanation for with an instance?

Purpose of Interaction Diagrams. Sequence and collaboration diagrams are used to seize the dynamic nature however from an exceptional angle. To seize the dynamic behavior of a device. To describe the message waft withinside the device. To describe the structural corporation of the items.

Interaction diagrams are that describe how a collection of items collaborate in a few conduct - generally a single use-case. The diagrams display some of instance items and the messages which can be handed among those items in the use-case. its call would possibly suggest, an interplay diagram is a sort of UML diagram it's used to seize the interactive conduct of a device. Interaction diagrams cognizance on describing the waft of messages inside a device, imparting context for one or greater lifelines inside a device.

Read more about the interaction diagrams:

https://brainly.com/question/19632962

#SPJ1

write an alogorithm and draw the Flow Chart to
Find the Rost or quardratic equation.
2
ax² + 3x + C = 0
the Coefficont abc
are the input data
the Coefficent d is the Output data.

Answers

In computer programs, algorithms and flowcharts are used as prototypes of an actual program

The algorithm

The algorithm of the program is as follows:

Input a, b, cCalculate d using d = b*b - 4 * a * cIf d < 0, print "Complex roots"ElseCalculate x₁ using x₁ = (-b + sqrt(d))/4 * a * c)Calculate x₂ using x₂ = (-b - sqrt(d))/4 * a * c)Print x₁ and x₂End

The flowchart

This is always in represented using a diagram

See attachment for the flowchart.

Read more about flowchart and algorithms at:

https://brainly.com/question/16763367

#SPJ1

Demonstrate an understanding of the use of preventive procedures

Answers

Thre are 3 types of prevention Primary prevention, secondary invention, and tertiary invention.

What do you mean by prevention?

The process of stopping anything from happening by being prepared and getting rid of it quickly. prophylaxis. the control of illness. save.

Three different kinds of preventative initiatives:

Primary prevention entails taking action before negative health impacts arise.Screening to find diseases as soon as possible is secondary prevention.Managing disease after diagnosis in order to slow down or stop it is known as tertiary prevention.

Learn more about Preventive procedures:

https://brainly.com/question/7183215

#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

importance of software in computer​

Answers

Answer:

It allows accomplishing functions using the computer. The software is the instruction we want the computer to process for us.

Explanation:

I want to type a letter. I need a software that can interpret my letters in the keyboard and the program can print what I am typing.

Watch any film of the silent era. Choose a short film from any genre that is less than 30 minutes long. Write a review of your experience of watching this film. Make comparisons with a modern film of the same genre that you have recently watched.

Answers

 A review of your experience of watching this film. Make comparisons with a modern film of the same genre that you have recently watched The Consistency of the Silent Era Technique in The Artist.

What have been a number of the principal silent movie genres?

Many early silent movies have been both dramas, epics, romances, or comedies (frequently slapstick). One-reelers (10-12 minutes) quickly gave manner to four-reel feature-period movies.

From the factor of visible method seems there are a few which can be ordinary of the silent film technology this is appearing players, kind of shot, modifying transitions, intertitles and sound strategies together with using track at some stage in the movie.

Read more about the comparisons :

https://brainly.com/question/25261401

#SPJ1

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

in tabular form differentiate the first four generations of computer ​

Answers

Answer:

Explanation:

See attachment.

What do conditions do for programs?
A. faster processing
B. adds versatility
C. crashes them

Answers

Answer:

add versatility thank you

Can case conditions use test conditions?
A. yes
B. no

Answers

Answer:

yes.

Explanation:

because i Been tro it before

1. The letters that appear after the dot after a file name are called the:
file name code.
file extension.
file descriptor.
file locator.

Answers

Answer:

Files Extension.

Explanation:

The letters that follow the period at the end of a file name are the file's extension. This enables the computer to know what application it should use to read the file.

Which of the following keys on the keyboard is used to quickly indent text

Answers

you have to use tab on the keyboard

**HELP ME PLS**

A report tried "Employees in Company A contains the names of employees in descending alphabetical order, with the
number of years each employee worked at the company. Which statement is true? A.The report is grouped only because it gives information about employees by number of years of employment.

B.The report is soned only because it gives information about employees by number of years of employment.

C.The report is grouped only because it organizes the names of the employees in alphabetical order.

D.The report is sorted only because it organizes the names of the employees in alphabetical order.

Answers

The true statement is the report is grouped only because it gives information about employees by number of years of employment.

What is a group report?

Group reporting is made up of consolidation method and analytical reports and it gives information on the output of a firm.

Note that since there are different ranges of employment years, the report need to be grouped and as such, The true statement is the report is grouped only because it gives information about employees by number of years of employment.

Learn more about group report from

https://brainly.com/question/13628349

#SPJ1

The formula for calculating the amount of interest charged on a loan is:

interest = [principal x rate] of interest x time

Which Python statement correctly performs the interest calculation?

Answers

The Python statement that correctly performs the interest calculation is:

interest = (principal interest) time.

What is a Python statement?

This is known to be a statement  that is said to an instruction that a Python is said to often decode or interpreter and it is also one that it can execute.

Therefore, The Python statement that correctly performs the interest calculation is:

interest = (principal interest) time.

Learn more about Python statement from

https://brainly.com/question/14986545

#SPJ1

In what ways may the WBS be used as a key document to monitor and control a project?

Answers

By bringing everyone's attention to the work that has to be done, WBS can be utilized to prevent scope creep.

What is WBS?

WBS stands for Work Breakdown Structure. It facilitates task allocation. It is much simpler to allocate work to the proper person when a project is divided into manageable tasks or packages. This assists your team in making plans for tasks that must be accomplished in addition to the job at hand.

Thus, the WBS can be used as a key document to monitor and control a project because it makes the process of quickly creating a timetable easier, By assigning work estimates to particular WBS parts, the required task is described and organized by it.

Learn more about WBS here:

https://brainly.com/question/13090633

#SPJ1

On the last day at their job, a disgruntled employee accesses a company server
and deletes an entire library of internal projects. What is this an example of?
O Attack vector
O Ransomware
O Nation State Actor
O Penetration Testing
O I don't know this yet.
Submit answer

Answers

Nation state actor. I believe is the answer

Write a program that first reads a list of 5 integers from input. Then, read another value from the input, and output all integers less than or equal to that last value.

Ex: If the input is:

50 60 140 200 75 100
the output is:

50 60 75
For coding simplicity, follow every output value by a space, including the last one. Then, output a newline.

Such functionality is common on sites like Amazon, where a user can filter results. coral language, please

Answers

Answer:

take user input element of list and print element of list whose value  are less than equal to last value of list

Image 1: Input

def output_ints_less_than_or_equal_to_threshold(user_values, upper_threshold):

      print("The integers that are less than or equal to", upper_threshold, "are:")

      for value in user_values:

             if value < upper_threshold:

                    print(value)

def get_user_values():

      n = int(input("Enter the number of integers in your list: ");

      1st = []

      print("Enter the", n, "integers:");

      for i in range(n):

             1st.append(int(input)

      return ist

if _name__ == '_main_':

userValues = get_user_values();

upperThreshold = int(userValues[-11), output ints less than or equal to threshold(userValues, upperThreshold)

Image 1: Output

Enter the number of integers in your list: 3 Enter the 3 integers:

10

50

20

The integers that are less than or equal to 20 are:

10

Using the knowledge in python it is possible to write a code that uses the given values ​​to write its divisors.

Writing code in python:

integer i

integer threshold

integer array(5) data

for i = 0; i < data.size; i = i + 1

  data[50, 60, 140, 200, 75, 100] = Get next input

threshold = Get next input

for i = 0; i < data.size; i = i + 1

  if data[50, 60, 140, 200, 75, 100]

 

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

#SPJ1

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

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

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

Which benefit does serverless compute provide?

Answers

Answer: this’s an architecture where code execution is fully managed by a cloud provider, instead of the traditional method of developing applications and deploying them on servers

True or false, cases must use curly braces like other test condition statements
A. true
B. false

Answers

Answer:

False

Explanation:

You can use curly braces to scope everything that's inside of the case body, but they are not necessary.

There are cases where you will need explicit bodies for cases:

If you have two different cases that both contain a variable called 'x', you will need to scope one or both of the cases.

What is scoping?

Scoping in a language defines where variables can be accessed, or referenced.

int i = 0;

// First scope

{

int x = i + 10;

}

// Second scope

{

int j = x + 2;

}

Console.WriteLine(j);

There are a few errors in this code.

In the second scope, we try to use the variable 'x' which was defined in the first scope, but we can't find that variable because it is defined in a scope that cannot be reached by the second scope. The same goes with the Console.WriteLine(j); line, we try to access a variable that is not defined in the current scope, and is instead defined in a nested scope.

In most languages, scoping is essentially a stack, where the lower nested scopes can access variables defined in the previous scope, but not the other way around.

So now you know a little bit about scopes; when to use them in case bodies, and that you do not have to use a body for a case if it's not necessary.

Two negative reviews and no positive reviews is enough to consider the website to have a negative reputation.

Answers

Two negative reviews and no positive reviews is enough to consider the website to have a negative reputation: False.

What is reputation?

In Computer technology, reputation can be defined as a metric which is used to determine the quality of a particular website, especially based on the opinions and ratings by its end users.

In this context, we can infer that two negative reviews and no positive reviews isn't an enough metric to consider a website as having a negative reputation.

Read more on negative reputation here: https://brainly.com/question/2343924

#SPJ1

explain why you would use the soft on/off jumper when working on ATX system

Answers

Explanation:

Soft power prevents a user from turning off a system before the operating system has been shut down. It enables the PC to use power-saving modes that put the system to sleep and then wake it up when you press a key, move a mouse, or receive an e-mail (or other network traffic).

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

This program will output a right triangle based on user specified height triangleHeight and symbol triangleChar. It is strongly suggested to use the for loop for this solution.

(1) The given program outputs a fixed-height triangle using a * character. Modify the given program to output a right triangle that instead uses the user-specified triangleChar character.


(2) Modify the program to use a nested loop to output a right triangle of height triangleHeight. The first line will have one user-specified character, such as % or *. Each subsequent line will have one additional user-specified character until the number in the triangle's base reaches triangleHeight. Output a space after each user-specified character, including after the line's last user-specified character.


Example output for triangleChar = % and triangleHeight = 5:


Enter a character:

%

Enter triangle height:

5


%

% %

% % %

% % % %

% % % % %


#include

< stdio.h >


int main(void) {

char triangleChar;

int triangleHeight;


printf("Enter a character:\n");

scanf("%c", &triangleChar);


printf("Enter triangle height:\n");

scanf("%d", &triangleHeight);

printf("\n");


printf("* \n");

printf("* * \n");

printf("* * * \n");


return 0;

}

Answers

The program illustrates the use of loops;

Loops are program statements that are used to perform repetition

The complete program

The modified program in C, is as follows:

#include<stdio.h>

int main(void) {

   char triangleChar; int triangleHeight;

   printf("Enter a character: ");    scanf("%c", &triangleChar);

   printf("Enter triangle height: ");    scanf("%d", &triangleHeight);

   for (int i = 0; i<triangleHeight; i++){

       printf("\n");

       for(int j = 0;j<=i;j++){

           printf("%c",triangleChar);

       }

   }

   return 0;

}

Read more about loops at:https://brainly.com/question/24833629

#SPJ1

What does an else statement do?
A. gives an alternative to the test conditions
B. always executes
C. nothing

Answers

Answer:

A

Explanation:

If the first condition are not true then it executes else, but if the first condition is true then it ignores the else statement

What is spy wear on a desk top computer

Answers

Answer:

Spyware is when a hacker gathers confidential information and data by logging the user's key presses (keylogging) etc and uses it for fraud or identity theft. That's also why touchscreens are safer than keyboards.

Explanation:

analyse how the reduction in size and the profitability of computer have influence their usage​

Answers

HOPE ITS HELP

IN THE PICTURE

Other Questions
How do development within each domain is linked to and affected by development in other domain. multiple answer problem matter falling into a black hole arranges itself in the shape of a ____. Select all the correct answers.Ryan wants to discuss his idea for a school play. He invites his classmates Ethan and Jade to join him in the discussion. Ryan will present points for the group to discuss. Which two additional tasks does he need to assign to make the group discussion effective?someone to take notes and track the timesomeone to observe and give feedbacksomeone to present a view opposite of Ryanssomeone to make sure everyone speakssomeone to arrange for refreshments How do you classify the following polynomial?-4x + 2x - 5x+3x What issues made labor organizing difficult?Choose 3 correct answers.Racial differencesDislike of union goalsFear of losing jobsDislike of temperance groupsReligious differences What is a sign of fraud in advertising a healthcare product?A. There is a return policy if it doesn't work.B. A celebrity endorsement.C. Health benefit claims that are based in research.D. It seems too good to be true. What is the key main idea the principal is trying to communicate? What are the details that support the main idea? _______ consist(s) of guidelines used to determine what a pharmacy practitioner should or shouldn't do.Question 28 options:National FormularyMaterial Safety DataPharmacy practice standardsNational Drug Code On the second journey Ikbal drives at an average speed of 64km/h.work out(i) the distance he travels in 90minutes, in km In the Exploration, the color of the bugs evolves over the course of a few generations. Give another real world example which can support Darwins theory. In this excerpt, Muir compares a Calaveras tree to George Washington. The purpose of this comparison is to appeal to readerslogos and reason.ethos and credibility.pathos and ethos.logos and pathos.. Match the circle equations in general form with their corresponding equations in standard form. x2 y2 4x 12y 20 = 0 (x 6)2 (y 4)2 = 56 x2 y2 6x 8y 10 = 0 (x 2)2 (y 6)2 = 60 3x2 3y2 12x 18y 15 = 0 (x 2)2 (y 3)2 = 18 5x2 5y2 10x 20y 30 = 0 (x 1)2 (y 6)2 = 46 2x2 2y2 24x 16y 8 = 0 x2 y2 2x 12y 9 = 0 which matrix equation has the soul ut ion X All the square numbers between 20 and 50 PLS HELP What is the factored form for the quadratic function below?y = 7x - 2x - 5Oy(7x+5)(x - 1)Oy(7x - 5)(x - 1)Oy (7x + 1)(x + 5)Oy (7x+5)(x + 1) Cans of wood varnish come in three sizes.Small can: A 200 ml can costs 0.88.Medium can: A 500 ml can costs 1.32.Large can: A 1 litre can costs 3.60.Calculate the cost of 1 litre for the small and medium cans.Give your answer in pounds to 2 dp. 2^-4 simplified form Answer this question please A(n) _____ system is an application used in all the functions of a business and supports decision making throughout the organization