Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What is the MATLAB Algorithm for this Script File? %Determine locationfor a coffee bean inUTM or SKT. %Thelocation must give good profits. t='Y'; while (t=='Y')

What is the MATLAB Algorithm for this Script File?

%Determine locationfor a coffee bean inUTM or SKT.

%Thelocation must give good profits.

t='Y';

while (t=='Y')

time=input("Please enter time when you want to have a drink in 24hours format like 1800 for 6pm :");

day=input("Please enter day,1 for monday, 2 for Tuesday etc. :");

if ((time >=0700 & time <= 2359 ) & (day >=1 & day <=7))

fprintf (' Cafeteria:Meranti Arcade ')

fprintf (' Specification:Malay (including traditional food of Kelantan and Johor) and Western Cuisine, Minimart, Spectacles center, Mobile phone centers, Photocopy and printing Centre, Computer Center and Ticketing Agent (Travel Agencies) ')

fprintf (' Cafeteria:Perdana Arcade ')

fprintf (' Specification:Iranian Cuisine, Bookstores and Minimart (24 Hours) ')

fprintf (' Cafeteria:9th College Arcade ')

fprintf (' Specification:Malay (including traditional food of Johor), Western and Indonesian Cuisine, Driving School Center, Snacks and Photocopy Shop ')

fprintf (' Cafeteria:13th College Arcade ')

fprintf (' Specification:Malay and Thai Cuisine (Tomyam), Minimart, Bookstores and Photocopy Center ')

fprintf (' Cafeteria:11th College Arcade ')

fprintf (' Specification:Malay and Western Cuisine, Minimart, Photocopy and Printing Centers ')

fprintf (' Cafeteria:Cengal Arcade ')

fprintf (' Specification:Malay, Chinese, Indian, Vegetarian and Turkish Cuisine, Minimart, Newspaper Agent, Photocopy, Computer Center and Bookstores. ')

end

if ((time >=0700 & time <= 1800 ) & (day >=1 & day <=5))

fprintf (' Cafeteria:Student Union Building (SUB) Arcade ')

fprintf (' Specification:Malay Cuisine, Celcom and Maxis kiosks, Bank Islam and CIMB ATM Machine and BSN ATM Machine nearby this building. ')

end

if ((time >=0700 & time <= 1800 ) & (day >=1 & day <=7))

fprintf (' Cafeteria:DO7 ')

fprintf (' Specification:Computer Centre ')

end

if ((time <=0700 | time == 0000) & (day >=1 & day <=7))

fprintf('Sorry no cafeteria available for this time ')

end

t=input('Please Enter Y if you want to check for other time, and enter N if ended: ','s');

end

fprintf('Thank you for using this program :)')

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

Database Marketing The New Profit Frontier

Authors: Ed Burnett

1st Edition

0964535629, 978-0964535626

More Books

Students also viewed these Databases questions

Question

4. Make recommendations on steps to take to melt the glass ceiling.

Answered: 1 week ago

Question

1. Discuss the potential legal issues that relate to training.

Answered: 1 week ago

Question

3. Design a program for preparing for cross-cultural assignments.

Answered: 1 week ago