Question: num _ lobsters and total _ allowance are read from input. A lobster costs 3 dollars. If num _ lobsters is greater than or equal

num_lobsters and total_allowance are read from input. A lobster costs 3 dollars.
If num_lobsters is greater than or equal to 6, then assign total_cost with the product of num_lobsters and 3.
If total_cost is less than or equal to total_allowance, then output 'Lobsters successfully purchased.'
Otherwise, output 'Not enough money to buy all.'
If num_lobsters is greater than 32, then output 'Restocking soon.'
 num_lobsters and total_allowance are read from input. A lobster costs 3

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!