Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Database Management Systems

Authors: Patricia Ward, George A Dafoulas

1st Edition

ISBN: 1844804526, 978-1844804528

More Books

Students also viewed these Databases questions