Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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 MarksStep 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