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
matrenka [14]
3 years ago
10

Write a program that prompts the user to input the number of quarters, dimes, and nickels. The program then outputs the total va

lue of the coins in pennies.
Computers and Technology
1 answer:
Anni [7]3 years ago
7 0

Answer:

The program to this question can be given as follows:

Program:

#defining variable quarters, dimes, and nickels.

quarters=int(input("Enter value of quarters: ")) #input value by user  dimes=int(input("Enter value of dimes: ")) #input value by user  nickels=int(input("Enter value of nickels: ")) #input value by user  

#defining variable pennies

pennies = ((25*quarters)+(10*dimes)+(5*nickels)) #calculate value in pennies variable

print('Total number of coins in pennies is: ',pennies)#print value

Output:

Enter value of quarters: 3

Enter value of dimes: 2

Enter value of nickels: 1

Total number of coins in pennies is:  100

Explanation:

In the above python program code, firstly three variable "quarters, dimes, and nickels", all of these variable uses input function, that is used to take input value from the user side, in these variable, an int is used that defined, that user input only integer value.

  • After taking input from the user a new variable "pennies" is defined, which is uses the user input values and calculates its addition.
  • In the next line, print function is used, which uses variable "pennies" to print its calculated value.
You might be interested in
A __________ attack is a bot attack on a computer system or network that causes a loss of service to users.
PSYCHO15rus [73]

Answer:

DDos or Distributed Denial Of Service Attack

Explanation:

:)

4 0
2 years ago
Antivirus software products require that you update _____ on a regular basis
german
Operating System, as far as I know @[email protected]
5 0
4 years ago
Read 2 more answers
Which of the following is an example of a federal tax? A. Social Security tax B. Sales tax C. Property tax D. Transaction tax
Nastasia [14]
Property tax should be the correct answer
6 0
3 years ago
Match the vocabulary to the appropriate definition.
Allisa [31]

Answer:

Pulling related code together in objects is Arrays

Helps programmers when they revisit code or are new to code-- Documentation

Explanation:

This is all I know

3 0
2 years ago
Disadvantage of monolithic programming​
skelet666 [1.2K]

Answer:

=Tight coupling between components, as everything is in one application.

=Less reusability.

=Large code base; tough for developers and QA to understand the code and business knowledge.

=Less Scalable.

=Does not follow SRP (Single Responsibility Principle)

=More deployment and restart times.

3 0
3 years ago
Other questions:
  • Which of the following is a goal of paraphrasing and summarizing?
    14·2 answers
  • You work in a customer call center. Martin is on the phone asking about the difference between solid-state drives (SSDs), hybrid
    6·1 answer
  • A security policy is a
    11·1 answer
  • Each time you save a document, _____. you will need to type in the file type in which it should be saved you can select the Save
    11·1 answer
  • Given the availability of an ofstream object named output, write the other statements necessary to write the string "3.14159" in
    8·1 answer
  • Why is it important to respect other political opinions
    7·2 answers
  • Wireless networks usually use ____ signals to send data.
    11·2 answers
  • What are listed in the vertical columns across the top of the Event Editor?
    5·2 answers
  • A-1 grdening supply is preparing a reprt to hand out to the customerez in pointes form only.why should the reprts writers avoid
    9·2 answers
  • What is Celeste? ( This is for my coding class )
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!