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:
tableNumber of items bought,Discount amount percentageLess than R discount or more, less than
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
