Question: 1. Store A is having a BoGoHo (Buy One, Get One Half Off) sale. Store B is not having a sale, but sometimes its prices

1. Store A is having a BoGoHo (Buy One, Get One Half Off) sale. Store B is not having a sale, but sometimes its prices are much lower than at Store A. Write an algorithm that determines whether it's cheaper to buy two of the item at Store A or Store B. The algo- rithm should display either the message "Buy at store A" or the message "Buy at store B". If the prices would be the same at both stores, display the "Buy at store A" message
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
