View the step-by-step solution to:

Question

If you know how much change is in the cash register, how would you make sure that there are enough coins available

to provide change for a given amount? Develop a short algorithm in pseudocode that asks the user for the number of quarters, dimes, and pennies in the register, as well as for the amount of change requested. If there is sufficient change in the machine, print out "There is enough money to make change." If there is not enough money, print out "There is not enough money to make change." For this problem any amount of change that adds up to the total is acceptable. For example if the register only has 100 pennies, you could make change for 97 cents by giving the customer 97 pennies. You do not have to output how to make the change, only if it is possible

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

• -

Study Documents

Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

Browse Documents