Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Development For Dummies

Authors: Allen G. Taylor

1st Edition

978-0764507526

More Books

Students also viewed these Databases questions

Question

What is a radiation curve?

Answered: 1 week ago

Question

Using the variable x, write each interval as an inequality. -4 0 4

Answered: 1 week ago

Question

=+What can we learn about the PVA data from this decision tree?

Answered: 1 week ago

Question

What internal and external forces were influencing DigiTech?

Answered: 1 week ago