Question: 5 4 5 0 5 0 . 3 9 5 7 9 2 8 . qx 3 zqy 7 Jump to level 1 num _
qxzqy
Jump to level
numdonuts and numdollars are read from input. A donut costs dollars.
If numdonuts is less than then output 'numdonuts requires at least to purchase.
If numdonuts is greater than or equal to then assign totalcost with the product of numdonuts and
If totalcost is less than or equal to numdollars, then output 'Approved transaction.
Otherwise, output 'Not enough money to buy all.
If numdollars is greater than or equal to then output At least one item was purchased.
If numdonuts is greater than then output 'Now out of stock.
Otherwise, output 'Item still in 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
