Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please include any handwritten work used to obtain script as well as the script and screenshots of yout Matlab editor and command windows, thanks! HW5P3

image text in transcribed

Please include any handwritten work used to obtain script as well as the script and screenshots of yout Matlab editor and command windows, thanks!

HW5P3 (25 points) Write a script Time that will prompt the user to enter the current time as a vector of two elements hours minutes] and the time zone (HSTAKSTPSTMSTCSTand EST) as a string. Based on the values entered, the script must calculate and display the standard time in the other time zones based on the conversion of the given Table. If another time zone is entered, the program must display a message of invalid entry and ask the user to try again. You can assume a 24-hour clock, so for example if the standard time in CST is [12 40, it would be [1340] in MSTetc. see the Table below. The script must not display any negative times, for example if the HST time is 1:10 am it must be 24 in KST and 23 in PSTetc. Using fprint, the output must be displayed as Time in HST is 1:40 Time in KST is 24 : 4 0 Time in PST is 23 : 4 0 Time in MST is 22:40 Time in CST is 21:40 Time in EST is 20 : 4 0 Use your script to find the following times in all time zones: a) 2:30 pm in HST b) 1050 pm in EST c) 2:20 am in KST d) 4:40 am in HST e) 1:10 am in FST (FST is not a predefined time zone) Table: Standard time and daylight saving time ( Time zone standard Time Hawait time zone _HST ources 1000. Alaska time zone KSr ursosop) actic time zone psr ouTC .00) ||( -0 Mountain Time Zone MST (UTC-07:00 ) (- Central Time Zone CST (WTC On00) Eastern time zone EST curCOS00) |

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 And Transaction Processing

Authors: Philip M. Lewis, Arthur Bernstein, Michael Kifer

1st Edition

0201708728, 978-0201708721

More Books

Students also viewed these Databases questions

Question

Explain in detail the different methods of performance appraisal .

Answered: 1 week ago

Question

Recognize the power of service guarantees.

Answered: 1 week ago