Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started