Ask your own question, for FREE!
Computer Science 13 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!
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!