Question: Matlab question 1. Write a script called timer that takes two inputs (minutes and seconds). The script should allow you to enter up to 99

 Matlab question 1. Write a script called "timer" that takes two

Matlab question

1. Write a script called "timer" that takes two inputs (minutes and seconds). The script should allow you to enter up to 99 minutes and up to 99 seconds. It will output 2 numbers, with minutes as the first number (two digits), followed by a colon (:), followed by seconds as the second number (also two digits). Although you can enter up to 99 seconds, the program should only return 0-59 seconds. So, if the user enters a number between 60 and 99 seconds, the program will add one to the number of minutes and subtract 60 from the number of seconds. Generate an error if there are more than 99 minutes. If the user tries to enter more ple pogzam witMATLA Test the program for 63 minutes, 82 seconds. (25 points)

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!