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
Get step-by-step solutions from verified subject matter experts
