Question: 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

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!