Question
Write a C++ program for a bill issuer. Your program should read from the user the item price and number of pieces to be purchased.
Write a C++ program for a bill issuer. Your program should read from the user the item price and number of pieces to be purchased. Cost is calculated as = price * number of items. If the items price was greater than or equal to 100 SR and the number of items is greater than 2 pieces, then the user can get a 5% discount on the total cost and no delivery cost will be addded; otherwise no discount will be given and additional delivery charge of 10 SR will be added. Also, the customer can get additional discount only if the total cost after discount was greater than 1000 SR. Here are some run samples:
Sample#1: Enter item price: 10 Enter No items: 2 Total cost = 30
Sample#2: Enter item price: 100 Enter No items: 10 Total cost = 950
Sample#3: Enter item price: 100 Enter No items: 11 Total cost = 992.75
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