Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started