Question: Onestion 3 : [30Maris] Writing Ct+ Code for a Hybrid Marluet Prize System. A New hybrid market is launching in Muscat and you are asked
![Onestion 3 : [30Maris] Writing Ct+ Code for a Hybrid Marluet](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f4e4da0ce39_40166f4e4d988f5e.jpg)
Onestion 3 : [30Maris] Writing Ct+ Code for a Hybrid Marluet Prize System. A New hybrid market is launching in Muscat and you are asked to creale a prize system for the bind customers based on the amount of his invoice. The soenario of giving the prize is as follow. - The market owner should enter the Secret amount (SM), Above Peroentage (AP), Lower Percentage (LP) and Prise at the start of executing the system. [5 Maris] - The cashier should enter the following infomation for five custorners in a 2D-Array 5 X 3: The Invice Number, the Invoice Amount, and Customer Name [10 Maris] - The system needs to print the number and the amount of each invoice with the customer name. In addition to the prize amount, such that [15 Marks] - If the Invoice Amount is equal to (SM) the record of the customer should be printed with $100 %$ of the Prize. o If the invoice Amount is Larger than (SM) by (AP) the record of the customer should be printed with $50 \%$ of the Prize. 0. If the Invoice Amount is larger than (SM) by ( $(P) $ the record of the customer should be printed with $25 %$ of the Prize. Output Example: Enter SM $=250$ Enter AP $=0.8$ Enter LP $=0.2$ Enter Prize $=1000 $ Full record of invoices: \begin{tabular}{111) invoice Number & Invoioe Amount & Customer ID 123 & 200 & Mohammed 124 & 250 & Salem 125 & 270 & Khaled 126 & 150 & Fatema 127 & 100 & Sara \hline \end{tabular) CS.VS. 1069
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
