Question: Task A candy vending machine sells a few popular candies. 1 5 cents for Hershey's Kisses, 2 5 cents for Reese's Peanut Butter Cups, or

Task
A candy vending machine sells a few popular candies. 15 cents for Hershey's Kisses, 25 cents for Reese's Peanut Butter Cups, or 50 cents for snickers. Write a C program that accepts coins from the user, it accepts quarters (25 cents), dimes (10 cents), and nickels (5 cents). User will enter enters zero to stop input. Then giv the user a choice for the candy selection. If the amount is sufficient, print a message and calculate the chang If the amount is not sufficient, display a message for insufficient amount and return the money.
 Task A candy vending machine sells a few popular candies. 15

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!