ASSALAMMUALAIKUM W.B.T. peeps !
so.. hi! sorry for not updating last week as i got no homework. :3 as repayment, today more source codes are coming! and as for the first 1 here is Summon Rate.
example of question :
(USE NESTED IF....ELSE)
Summon Rate
1.Summon within 1 month
2.Summon within 2 months and above
If user enter 1;
1.ask input for the value of summon
2.ask whether summon is within 15 days or not
a)if yes, 50% discount will be given. display discounted value & the new summon value
b)if no, 25% discount will be given. display discounted value & the new summon value
If user enter 2;
1.ask input for the value of summon
2.15% discount will be given. display discounted value & the new summon value
DISPLAY ERROR MESSAGE IF USER ENTER OTHER THAN 1 & 2.
so here is the snapshot of the source code.
CLICK THE IMAGE FOR LARGER VIEW
CLICK HERE FOR THE C FILE (can copy&paste and try to compile on your own compiler&edit)
regards,
No comments:
Post a Comment
pecah kaca sebab koman,
lepas baca harap komen. :D