Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started