Question: Write a program ( Assembly Language, Intel Syntax, x 6 4 ) that loops until the student either stops eating or they exceed Minstry's daily
Write a program Assembly Language, Intel Syntax, x that loops until the student either stops eating or they exceed Minstry's daily maximum sugary intake which is grams of sugar.
You will loop until the amount of sugar remaining is less than or equal to zero.
Allow them to walk away from the table without going over their sugar limit
You can use either a Switch or Table to get the user's selection.
Have at least desserts. You are welcome to change the ones used in the example.
Input the user's selection as an integer.
Input how many times they ate it
Compute the total amount of sugar.
Subtract the sugar from the remaining amount. if they didn't choose to stop eating
Loop until the sugar left reaches zero or below or they stop eating.
Display two different ends depending on if they walked away or got detention.
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
