529,649 views
35 votes
35 votes
PlanthelogicforLungi’sapplicationusingpseudocode.Thelogicneedstosatisfythefollowingneeds:TheapplicationwillneedtoallowLungitoenterthenumberofblanketshewishestodistributeonagivenday.TheapplicationshouldkeeptrackofthenumberofblanketshandedouttoensurethatLungidoesnothandoutmoreblanketsthanhehas.TheapplicationwillneedtowarnLungiwhenhehasonlyone(1)blanketlefttohandout.

User Neinstein
by
2.9k points

1 Answer

27 votes
27 votes
according to my
calculations is 3
User Yurloc
by
2.8k points