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

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.

Step by Step Solution

3.31 Rating (172 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

1 enter Store As price and Store Bs price 2 calculate the cost at Store A by divi... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Microsoft Visual C# Introduction Questions!