Question: Write a C++ program using a loop (you get to pick which one) that will help determine how many candy bars I can purchase from

 Write a C++ program using a loop (you get to pick

Write a C++ program using a loop (you get to pick which one) that will help determine how many candy bars I can purchase from a vending machine Each candy bar costs $1.00 or you can redeem 7 coupons for one candy bar. How do you get these coupons? Well each candy bar comes with a coupon as well. Your program will prompt the user for x dollars that they want to spend and then output how many candy bars they are able to purchase and how many coupons they have leftover For example: I start with $30 dollars, buy 30 candy bars and now l have 30 coupons. So then I can buy 4 more candy bars and get 4 more coupons. Now I have purchased a total of 34 candy bars and l have 6 coupons leftover. Graded on: Prompts/Input Output Formatting Comments Logic Meaningful variable names Repetition

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!