Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please show steps Now use the program to solve the following: Supremez is a superstore that sells different items to its customers. When customers buy
please show steps
Now use the program to solve the following: Supremez is a superstore that sells different items to its customers. When customers buy from the store then they are given a receipt/invoice. Create a program in RAPTOR that will calculate the total amount for an invoice. At first the program will ask how many products are there in the invoice. Then the program will take input of product price and quantity for each product in the invoice. As the items are entered, the program calculates the total of the invoice. If the calculated total is greater than $50 then the customer gets a 5% discount on the total. At the end, the program outputs i) The total for the invoice ii) If the invoice is eligible for a discount, then it shows the discounted total iii) It applies 13% HST on the total/ discounted total iv) It displays the total payable Sample execution-Casel: How many products: 3 Price: 5 Quantity: 3 Price: 8 Quantity:1 Price: 10 Quantity:1 Total for the invoice is: $33 HST (13%): $4.29 Total payable: $37.29 Sample execution-Case2: How many products: 2 Price: 15 Quantity: 3 Price: 10 Quantity: 1 Total for the invoice: $55 Promo (total>50) applied: $52.25 HST (13%): $6.7925 Total payable: $59.0425 You have saved: $2.75 Test Run using RAPTOR: Case-1: (No discount case)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