-
Help getting started
Can anyone help me get my C++ engine started? My problem states that on the first day, a store gives x% discount off a the price of a certain item. On day 2, it gives x% discount off the day 1 price. I'm trying to write a program to input the original price and discount, and determine on what day the price drops to less than half the original price I can really use the help. Thanks
-
Set Prize value
Set DiscountPercent value
Set HalfPrize value to Prize value / 2
Set DayCounter to 0
Loop while Prize > HalfPrize
Set Prize to Prize - (Prize * (DiscountPercent / 100) )
Add 1 to DayCounter
End loop
Print DayCounter