For example: macys.com offers free shipping if you spend 99 dollars and more, so if you will spend 50 dollars, and the shipping charges are 3.99, and your state tax is 7%, the total price will be: $57.77
For example: target.com offers free shipping if you spend 50 dollars or more, so if you will spend $99.99, and the shipping charges are 5.99, and your state tax is 6%, the total will be $105.99
For example, organic quinoa in bulk sesion cost 5.99 per pound, and the package of 2.5 pounds cost $12.9. In this case, it is cheaper to buy the package, since the price per pound in packaged version will be $5.2 which is less than $5.99 in bulk session.
For example: almonds in bulk session cost 7.99 per pound, and the package of 3/4 of the pound cost 6.99. In this case it is cheaper to buy in bulk, since the pound of packaged almonds will cost $9.32
For example: the pound of ham cost 10 dollars, and the 2 pound package cost 20 dollars, in this case both options have equal value.
Pay attention, when you test your program, to test the third option, input whole numbers to avoid issues with floating point numbers rounding.