Ask your own question, for FREE!
Computer Science 10 Online
OpenStudy (anonymous):

A customer can only order two types of beverages from the BucksStar coffee shop. The two types are Latte and Mocha. A cup of Latte is $2.07 and a cup of Mocha is $3.69. But this price applies only when it is not in the evening. In the evening, the price for a cup of Latte and Mocha are each reduced by a dollar. Write the following method that returns the total price of an order. getOrderPrice(true, 1, 1) → 3.76 getOrderPrice(false, 1, 1) → 5.76 getOrderPrice(true, 2, 2) → 7.52

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Latest Questions
Arriyanalol: i need help
1 day ago 7 Replies 1 Medal
Arriyanalol: CONGRATS to me
1 day ago 8 Replies 2 Medals
Legomaster346: What colleges are good that are near Arab Alabama?
1 week ago 5 Replies 0 Medals
Arriyanalol: i need help
1 week ago 6 Replies 2 Medals
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!