For question K take the input
Step 1)divide input by 100 if remainder 0 then result of division is 100 denomination no. If not
Step2) divide remainder by 50 and check if remainder.
,If yes divide by 10 again until no remainder...Keep a count on each division and add.
I think that should do