Question: i need help with this code im using java At a coffee shop, a coffee costs $1. Each coffee you purchase, earns one star. Seven

i need help with this code im using java

At a coffee shop, a coffee costs $1. Each coffee you purchase, earns one star. Seven stars earns a free coffee. In turn, that free coffee earns another star. Ask the user how many dollars they will spend, then output the number of coffees that will be given and output the number of stars remaining. Hint: Use a loop

the output how it suppose to look like and it should work for any number

1) How many dollars will you spend? Coffees: 1 Stars remaining: 1 

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!