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
gladu [14]
3 years ago
12

Your local Publixsupermarket is reprogramming their cash registersand you are their software developer. The machine will output

the amount of change that must be given to the customerbroken down into each coin. Write a program that asks the user to entertheir name as well as theamount of change in CENTS. The program shouldthenoutput the amount of half dollars,quarters, dimes, nickels, and pennies to be returned to the customer (in that order) to arrive at the total amount of change inputted by the customer.
Computers and Technology
1 answer:
Verdich [7]3 years ago
7 0

Answer:

name = input("Enter name: ")

change = float(input("Enter change in cents: "))

half_dollars = int(change / 50)

change %= 50

quarters = int(change / 25)

change %= 25

dimes = int(change / 10)

change %= 10

nickels = int(change / 5)

change %= 5

pennies = int(change)

print("Half dollars: " + str(half_dollars) + ", Quarters: " + str(quarters) + ", Dimes: " + str(dimes) + ", Nickels: " + str(nickels) + ", Pennies: " + str(pennies))

Explanation:

*The code is in Python.

Ask the user to enter the name and change in cents

Calculate the number of half dollars, quarters, dimes, nickels, and pennies, use division and modulo operator

Print the results

Let me demonstrate calculating the half_dollars:

Let's say the user enter 134 for the change.

half_dollars = int(change / 50) → int(134/50) → int(2.68) = 2

change %= 50 (same as change = change % 50) → 134 % 50 → 34

You might be interested in
Three uses for Auto Formatting in Word 2016.
sdas [7]

Answer

  1. Auto Numbering and billeting
  2. Auto paragraphing and  indenting
  3. automatically super-scripting and sub-scripting

Explanation

Auto formatting is a software commonly found in word processor such as word 2016 and it is designed to automatically change the appearance of the text. In numbering and bulletin this helps by generating numbers automatically and it makes it easier for the user when typing for does not need to keep on going through the menu bar for numbering. Same case on paragraphing and indenting.  Auto formatting also helps in automatically generating the superscript and subscript. This helps in saving time and also producing a decent and an appealing  work or document.

3 0
3 years ago
Which key prevents movement between cells in a spreadsheet?
Natasha_Volkova [10]

The Scroll Lock key - Most of the time on the keyboard it is abbreviated ScrLK, or Scroll Lock.

8 0
3 years ago
Which BEST describes how the author’s purpose is revealed? A) The speaker appeals to the emotions of the audience in section 10.
tatiyna

You probably meant languge arts not Tech.

Anyways I will not be sure unless I read the book but..C most of the time is correct sooo sorry I can't help much unless I read the book

I would suggest <u>B) The speaker appeals to the emotions of the audience in section 9.</u>

<u />

I'm also sorry that I'm late but I hope someone else who searchs this up can use this

<u></u>

<u>Sorry If I'm wrong</u>

8 0
3 years ago
Identify the primary responsibilities associated with each of the following web design roles: content writer/editor, artist/grap
frosja888 [35]

A web designer/developer is responsible for the design, layout and coding of a website. They are involved with the technical and graphical aspects of a website and how the site works and how it looks.

Explanation:

  • A content writer/editor creates and revises the text that visitors read when the visit a website, choose a link, image, video, or other media that enhances your text content.
  • A web artists/graphic designer's responsibility is to create original art, such as logos, stylized typefaces, and avatars, and props for virtual 3-d worlds.
  • A web designer's role is to create webpages that combine, text, images, and links using tools such as markup languages; CCS, HTML, and WYSIWYG editors.
  • Web programmer/database developer's job is to script languages such as, JavaScript, ASP, PHP, and MYSQL and must plan, create, secure, and maintain databases of varying complexity.
  • Web Administrator assumes all roles, including creative, high-tech, and oversight. May oversee a web development team that includes technical and creative roles.
5 0
4 years ago
PLEASE HELP ITS CODING AND I INCLUDED A SCREENSHOT OF WHAT TO DO
madam [21]

Answer:

I need to have better photos in order to assist you...

Explanation:

I will attempt to get back with you if you can provide more clearer photos.

6 0
3 years ago
Read 2 more answers
Other questions:
  • On a camera,what does focus tracking do?
    6·1 answer
  • There are n coins, each showing either heads or tails. We would like all the coins to show the same face. What is the minimum nu
    6·1 answer
  • A proxy is
    6·1 answer
  • What is a special character when creating a password?
    8·2 answers
  • How can you continue learning about computer science and improve your coding abilities?
    5·1 answer
  • True/false
    8·1 answer
  • Write an instance method in Rational called add that takes a Rational number as an argument, adds it to this, and returns a new
    12·1 answer
  • The U.S. government has put in place IPv6-compliance mandates to help with the IPv4-to-IPv6 transition. Such mandates require go
    5·1 answer
  • How are PivotCharts different from regular charts?
    12·1 answer
  • What data type would you use for a decimal number?* ​
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!