flowchart a process to make change for a given value using quarters, dimes, nickels and pennies. Ask the user for the value amount first, then use unnested repetition structures for a solution with the fewest number of coins. Use one While loop for each coin.

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter5: Looping
Section: Chapter Questions
Problem 10RQ
icon
Related questions
Question
flowchart a process to make change for a given value using quarters, dimes, nickels and pennies. Ask the user for the value amount first, then use unnested repetition structures for a solution with the fewest number of coins. Use one While loop for each coin.
Expert Solution
Step 1

Flowchart explanation:

  • Declare the respective variables
  • Define the condition controlled loop to check the conditions
    • If the amount value is greater than 25 then calculate 
      • Quarters = Quarters +1
      • Amount   = Amount-25
    • If the amount value is greater than 10 then calculate
      • Dimes = Dimes +1
      • Amount = Amount - 10
    • If the amount value is greater than 5 then calculate
      • Nickels = Nickels +1
      • Amount = Amount -5
    • If the amount value is greater than 1 then calculate
      • Pennies = Pennies+1
      • Amount = Amount - 1
  • Print the respective evaluate values
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Concept of Flowchart
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr