Departmental Store offers a discount to their customers based on the total bill amount of purchase...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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. 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.
Expert Answer:
Answer rating: 100% (QA)
C program to implement include using namespace std Calculates the discount based on the total bill a... View the full answer
Related Book For
Accounting Information Systems basic concepts and current issues
ISBN: 978-0078025334
3rd edition
Authors: Robert Hurt
Posted Date:
Students also viewed these programming questions
-
< < and >> are left shift and right shift operator in C. Assuming a is a 32 bits integer, and given the following code snippet: int i = 520; a = a < < 2; a = a >> 3; What are the results of a in each...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
The classic iPod is 10.5 millimeters thick. Suppose that the actual thickness T of any particular iPod has a maximum error tolerance that is less than 0.05 millimeter. (a) Write an absolute value...
-
At what speed will an objects relativistic mass be twice its rest mass?
-
a. Calculate the cost per equivalent unit for the month of April using the weighted average method of process costing. b. Calculate the value of work in progress and the value of completed stock...
-
Choose a country from three of the regions presented in Table 6.7. Using the Internet, collect as much information as you believe is needed to identify the potential for market segments based on age,...
-
Assume that Denis Savard Inc. has the following accounts at the end of the current year. 1. Common Stock. 2. Discount on Bonds Payable. 3. Treasury Stock (at cost). 4. Notes Payable, short-term. 5....
-
Schematic below represents a given circuit with two inputs A and B 2-bits each and 2 outputs Sum_reg and Carry_reg 2-bits each as wee. At every rising edge of the clock, the circuit will add two...
-
1. Create and upload a histogram of the salary data for the city of Bell, where each bar width is about 50,000 US dollars. (Data for the histogram is at the bottom). a.) Is the distribution of the...
-
A researcher wants to estimate the difference in population proportions for two populations using a 95% confidence interval. She samples 875 from the first population and 350 possess the...
-
In terms of influencing organizational effectiveness, since groups are composed of individuals, is group behavior really any different than individual behavior? Why or why not? How do or how would...
-
A house is 52.0 ft long and 34.0 ft wide and has 8.0-ft-high ceilings. What is the volume of the interior of the house in cubic meters and cubic centimeters? m3 cm
-
(a) Write 13.8% as a decimal. (b) Write 0.2 as a percentage. (a) 13.8% = 7 (b) 0.2 =% X S
-
Robin Rinehart summarizes the three compositions relating to the Goddess Candi in the Dasam Granth. Identify and explain one way in which Rinehart links these tales to Sikh teaching.
-
A house is 60.0 ft long and 42.0 ft wide and has 8.0-ft-high ceilings. What is the volume of the interior of the house in cubic meters and cubic centimeters? m cm Submit Answer
-
A rural road must be redesigned between Hermon and Gouda. The road must be designed as a Class 1 rural road, to a design speed of 100km/hr. Check whether the radius of curve 8 conforms to the minimum...
-
The slopes of the tangents at the points where the curve y = x2 - 4x intersects the X-axis is 1) 1 2) +2 3) +3 4) +4
-
Please indicate whether each of the following statements is (i) always true, (ii) sometimes true, or (iii) never true. For those that are (ii) sometimes true, explain when the statement is true. a....
-
Visit the Web site of the Wild Cat Zoo in southern California (www.cathouse-fcc.org). Classify each of the following risks using Browns taxonomy. Also suggest one or more internal controls to address...
-
Match each item on the left with the most appropriate item on the right. 1. Ad hoc processes.......... a. Test (SDLC) 2. Business rules............ b. Risk of SDLC 3. Consistent project standards. c....
-
Solve Exercise 1.22 using the concept of the transfer function. Exercise 1.22 Compute the inverse Fourier transform of \[X\left(\mathrm{e}^{\mathrm{j} \omega} ight)=\frac{1}{1-\mathrm{e}^{-\mathrm{j}...
-
We define the even and odd parts of a complex sequence \(x(n)\) as \[\mathcal{E}\{x(n)\}=\frac{x(n)+x^{*}(-n)}{2} \quad \text { and } \quad \mathcal{O}\{x(n)\}=\frac{x(n)-x^{*}(-n)}{2}\]...
-
Prove that \[\begin{equation*}\mathcal{F}^{-1}\left\{\sum_{k=-\infty}^{\infty} \delta\left(\omega-\frac{2 \pi}{N} k ight) ight\}=\frac{N}{2 \pi} \sum_{p=-\infty}^{\infty} \delta(n-N p) \tag{2.262}...
Study smarter with the SolutionInn App