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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

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

Post 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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply