Question
Question 6) Write the pseudocode and a program that asks the user to provide the amount of change in cents. Calculate how many coins (quarters,
Question 6)
Write the pseudocode and a program that asks the user to provide the amount of change in cents. Calculate how many coins (quarters, dimes, nickels and pennies) must be given back to the client so that they have the LEAST amount of coins. For example,
if the change is 43 cents, the client should receive:
1 quarter(s), 1 dime(s), 1 nickel(s), 3 pennies.
If the change is 289 cents, the client should receive:
11 quarter(s), 1 dime(s), 0 nickel(s), 4 pennies
What will be the amount of change if the total change is 342 cents?
Question 7) Write a program that asks the user to provide the following information, in this exact order:
Store Number (an integer)
Store Name
Cost
Calculate the total cost of the purchase, assuming a 6.75% tax rate is being applied. Display the Store Number, Store Name and the Total Cost of the bill.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started