Question: matlab only please quickly The program must first make sure that the 2-D array is positive. Then it asks the user to enter the required
matlab only please quickly

The program must first make sure that the 2-D array is positive. Then it asks the user to enter the required piece ID. After that it must display the piece ID, price and discount, otherwise display 'Not Found'. Finally ask him if he wants to continue or no. Input/output Sample: Enter customers info: [100 1 20 80; 101 2 -40 750; 102 1 35 400; 103 -2 18 225; 104 1 46 1550; 105 1 50 900; 106 2 31 1200] Error!! Re-Enter customers info: [100 4 20 80; 101 2 40 75; 102 10 35 40; 103 2 18 20; 104 15 46 15; 105 1 50 0; 106 20 31 12] Enter required gender: 101 ID No.stoke Price 100 1 20 Discount 80 The Piece of ID : 101 price is 20 $ The Piece of ID : 101 price after discount is 4 $ Do you want to continue? (y): y Enter required gender: 105 ID No.stoke Price Discount ID No.stoke Price 100 1 20 Discount 80 The Piece of ID : 101 price is 20 $ The Piece of ID : 101 price after discount is 4 $ Do you want to continue? (y): y Enter required gender: 105 ID No.stoke Price 105 1 50 Discount 0 The Piece of ID : 105 price is 50 $ The Piece of ID : 105 price after discount is 50 $ Do you want to continue? (y): y Enter required gender: 109 Not found Do you want to continue?:n
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
