Patulong po at paexplain kung bakit naging 0.80 yung sa may set price. Nung tinignan ko yung dito sa may internet maiksi di tulad dun sa code ng prof namin ang haba haba tsaka parang di accurate eh :3
Ah so 100%-20% kaya naging 80 nalang so kapag 3 months na 40% nalang ang natira?kasi nagreduce ka ng 20 percent kaya 80 nalang
para makuha mo naman yung 80 percent dun sa price pwede mung i multiply sa 0.80
example :
100 * 0.80 = 80
p.s. Not really sure ahh noob noob palang din ako diyan ehh
For SellingMonth 3:
MonthsPassed (since launching product) = 2
SellingPrice = 100 - (100*.20)*2 = 100 - 40 = 60
start loop
set ownerCut = price * 0.60
set shopCut = price * 0.40
set price = price * 0.80
loop again
dapat ata 64 pa ito?
dahil dun sa pseudo code ay
price = origprice * 0.8
so nung naging 80 ung preyso dahil hindi nabenta ng 1 month
kunin ung 80% nyan = 64
Note: correct me if i am wrong.Code:start loop set ownerCut = price * 0.60 set shopCut = price * 0.40 set price = price * 0.80 loop again
Another problem ko dito kung pano na naman to icoconvert into c++ code i need help po I know the basics pero wala ako masyado alam sa may if else or loop code thingy.