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

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!