Question: matlab . please do asap QUESTION 1 [15 MARKS] The prices for bus ticket to the selected destination are listed in Table 1: Table 1

 matlab . please do asap QUESTION 1 [15 MARKS] The prices

matlab . please do asap

QUESTION 1 [15 MARKS] The prices for bus ticket to the selected destination are listed in Table 1: Table 1 Destination Adult price (RM) 50 55 Children price (RM) 20 35 Kuala Lumpur Kuala Terengganu Alor Setar 60 40 a) Create a program to prompt the user to enter the destination listed in Table 1, as well as number of adult and children. Display the ticket price for the adult and children for each destination. [7 Marks] [CO2, PO4, C3] b) Create a command to calculate the total price ticket for all destinations given to prompt user to enter the number of adult and children. Test the program to determine the total cost for two (2) adults and three (3) children. Create a table that shows the total price for two (2) adults and three (3) children (use fprintf to perform this task). 18 Marks

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!