Write the pseudocode to print the bill depending upon the price and quantity of an item. Also print Bill GST, which is the bill after adding 5% of tax in the total bill.
Question
Write the pseudocode to print the bill depending upon the price and quantity of an item. Also print Bill GST, which is the bill after adding $5 \%$ of tax in the total bill.
✨ Free AI Tools for You
Powered by Chatterbot AI
Answer
Here is the pseudocode to print the bill and the bill including GST:
INPUT price
INPUT quantity
COMPUTE total_bill = price * quantity
PRINT total_bill
COMPUTE bill_GST = total_bill + (0.05 * total_bill)
PRINT bill_GST
Explanation:
Input: Obtain the
price
andquantity
of the item.Compute Total Bill: Calculate
total_bill
by multiplyingprice
byquantity
.Print Total Bill: Display the
total_bill
.Compute Bill GST: Calculate
bill_GST
by adding 5% tax tototal_bill
.Print Bill GST: Display the
bill_GST
.
India's 1st AI Doubt Solver for CBSE, JEE, and NEET
Ask a Question for Freeand then it's just ₹212 a month