Question: Write a program that can be used to calculate discount and final amount due by a customer. Discount is calculated based on the number of

Write a program that can be used to calculate discount and final amount due by a customer. Discount is calculated based on the number of items bought. Your program should prompt the user for an amount due (amount before discount) as well as the number of items bought.
Your program may assume that only valid values will be entered by the user. Discount is calculated according to the following:
\table[[Number of items bought,Discount amount / percentage],[Less than 4,R10 discount],[4 or more, less than 10,7%
 Write a program that can be used to calculate discount and

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!