Question: num _ soups and total _ cash are read from input. A soup costs 8 dollars. If num _ soups is less than 5 ,
numsoups and totalcash are read from input. A soup costs dollars.
If numsoups is less than then output 'Not enough soups.
If numsoups is greater than or equal to then assign totalcost with the product of numsoups and
If totalcost is less than or equal to totalcash, then output 'Soups successfully purchased.
Otherwise, output 'Need more money to purchase all.
If totalcash is greater than or equal to then output At least one item was purchased.
If numsoups is greater than then output 'Now out of stock.
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
