Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started