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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!