Question: Write 8086 assembly code along with comments and output to compute the bill for a grocery store using following MACROs . String_ : To take

Write 8086 assembly code along with comments and output 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

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