Store A is having a BoGoHo (Buy One, Get One Half Off) sale. Store B is not

Question:

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 algorithm 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.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: