Question: num _ lobsters and total _ allowance are read from input. A lobster costs 3 dollars. If num _ lobsters is greater than or equal
numlobsters and totalallowance are read from input. A lobster costs dollars.
If numlobsters is greater than or equal to then assign totalcost with the product of numlobsters and
If totalcost is less than or equal to totalallowance, then output 'Lobsters successfully purchased.
Otherwise, output 'Not enough money to buy all.
If numlobsters is greater than then output 'Restocking soon.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
