Question: Create a code (that is both effective and efficient) that asks the user to enter a sales amount. The code should calculate the effective
Create a code (that is both effective and efficient) that asks the user to enter a sales amount. The code should calculate the effective discount based on the entered sales amount and the net payable amount, which is the original amount less the discount. Let the discount rate be 10% for values below 50,000 and 30% for values 20,000 and above. Below is a sample output: Enter amount: 100000 Discount: 30000.0 Net Payable Amount: 70000.0 Note: run the code the minimum number of times to make sure that the code does not return any logical errors. Show the output of all these runs.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
