Page 1 of 1

Write a program to display Total bill for a customer. The program asks the user to enter qty and price for the item. Th

Posted: Sun Jul 03, 2022 11:22 am
by answerhappygod
Write a program to display Total bill for a customer. Theprogram asks the user to enter qty and price for the item. Theregular customers gets discount of 3% of total bill.
Your Output should display
Number of Items=xxx
Price per item= xx.xx
Total Bill=xx.xx
Discount amount=xx.xx
Payment=xx.xx
Input
Processing
Output
Qty=int
Price=double
DisRate=0.03
Totalbill=Qty *price
disAmt=totalbill * disrate
payment= totalbill – disAmt
Qty
Price
Totalbill
DisAmt
Payment