Question: ABC is a restaurant. Placing an order, customers are given a card that has 18 menu items along with a blank space next to
ABC is a restaurant. Placing an order, customers are given a card that has 18 menu items along with a blank space next to each item. Customer can write a number in any space to select an item. Menu is a 6 x 3 matrix containing the number of each item. Menu_no = reshape(:118,6,3); Menu = round (rand(6,3) *1000/100); 1) Sam is placing an order. The menu items that he needs to order are given by 'order' a 1x5 row vector and the corresponding quantities of each item are given by 'amount', another 1x5 row vector. Create another variable 'card' which is 6x3 array of zeroes Assign the amount Sam has ordered in each spot corresponding to the number location in menu. Note that item not ordered should be 0 in car. Order=randperm(18,5); Amount=randi([16],1,5); 2) How much does Sam has to pay including 13% sales tax. This should be scaler value.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
