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, x64) that loops until the student either stops eating or they exceed Minstry's daily maximum sugary intake which is 200 grams of sugar.
1. You will loop until the amount of sugar remaining is less than (or equal to) zero.
2. 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 4 desserts. You are welcome to change the ones used in the example.
1) Input the user's selection as an integer.
2) Input how many times they ate it.
3) Compute the total amount of sugar.
4) Subtract the sugar from the remaining amount. (if they didn't choose to stop eating)
5) Loop until the sugar left reaches zero (or below) or they stop eating.
6) Display two different ends depending on if they walked away or got detention.
Write a program ( Assembly Language, Intel

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 Programming Questions!