Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Departmental Store offers a discount to their customers based on the total bill amount of purchase of n items. Write a C++ program that

Departmental Store offers a discount to their customers based on the total bill amount of purchase of n

Departmental Store offers a discount to their customers based on the total bill amount of purchase of n items. Write a C++ program that allows the user to input the unit cost, quantity for n number of items and print the bill of purchase. Use while statement to input the data of n number of items. Compute the total bill and find the discount using the following criteria: For the first RM100-10% of bill amount Next 101-200-8% of bill amount Next 201-300-5% of bill amount Next 300-500-2% of bill amount Above 501 - 1% of bill amount The sample of the bill is given as: Departmental Store, Kuala Lumpur Number of items purchased: 5 Nos. Gross bill amount: RM 150 Discount: RM 14 Total bill amount to be paid: RM 136 Note: use comments wherever documentation is required.

Step by Step Solution

3.34 Rating (151 Votes )

There are 3 Steps involved in it

Step: 1

C program to implement include using namespace std Calculates the discount based on the total bill a... 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

Accounting Information Systems basic concepts and current issues

Authors: Robert Hurt

3rd edition

130855849X, 978-1308558493, 78025338, 978-0078025334

More Books

Students also viewed these Programming questions