Question: Q.5. Write 8086 assembly code to compute the bill for a grocery store using following MACROS String_ : To take string variable as an argument

Q.5. Write 8086 assembly code to compute the bill for a grocery store using following MACROS String_ : To take string variable as an argument and display Total. Bill: To compute the total bill of all products Bill Disc: To calculate the discount on the bill by using following logic If the total purchase bill is more than Rs. 3000-4999/- then the discount will be Rs. 50 if the total bill is Rs. 5000-6999/- then the discount will be Rs.80 and if the total bill is more than Rs. 7000/- then the discount will be Rs. 100. (Marks 15) Sample Execution: Welcome to XYZ Store ******* Product no. 1: ...500........ Product no.2: ...600......... Product no.3: ... 1800....... Product no.4: ...1000... (To terminate entering product details press 'T') Total Bill: ......3900.............. Total Bill after discount: ......3850....... Thank you for shopping Q.5. Write 8086 assembly code to compute the bill for a grocery store using following MACROS String_ : To take string variable as an argument and display Total. Bill: To compute the total bill of all products Bill Disc: To calculate the discount on the bill by using following logic If the total purchase bill is more than Rs. 3000-4999/- then the discount will be Rs. 50 if the total bill is Rs. 5000-6999/- then the discount will be Rs.80 and if the total bill is more than Rs. 7000/- then the discount will be Rs. 100. (Marks 15) Sample Execution: Welcome to XYZ Store ******* Product no. 1: ...500........ Product no.2: ...600......... Product no.3: ... 1800....... Product no.4: ...1000... (To terminate entering product details press 'T') Total Bill: ......3900.............. Total Bill after discount: ......3850....... Thank you for shopping
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
