Further specification ...
The size input is further specified to have three values:
- Short with basePrice $1.10
- Tall with basePrice $1.50
- Grande with basePrice $1.90
The shots input is further specified to be any nonnegative number, i.e. 0 or more
- The per shot price is $0.65
The sales tax input (fixed for the problem) is 8.6%
The price output is further specified to be
- price = basePrice + shots * 0.65 + figureTax(subTotal)
Notice, size is different
Summary: The coffee drinker needs to give desired size
and shots, and will receive back the displayed price.