(Solved) : Function Name Citizenwatch Inputs Extra Credit 1 Double T Current Position Hour Hand 2 Dou Q44007192 . . .
Function Name: citizenWatch Inputs:
Extra Credit 1. (double) T he current position of the hour hand2. (double) T he current position of the minute hand 3. (double)A positive or negative number of minutes
Outputs: 1. (double) The position of the hour hand after thespecified time 2. (double) T he position of the minute hand afterthe specified time Background:
The moment is finally here. You’ve been saving up your wholelife and now you can finally afford a Citizen watch! You decide togo to Ross to buy your very own, brand new Citizen watch.Unfortunately, your friend Sam presses a random button on yourCitizen watch and you’re worried that he broke it. To make sure hedidn’t, you decide to write a MATLAB function to determine wherethe hour and minute hands would be after a certain amount of timehas passed so that you can make sure your Citizen watch is stillworking properly.
Function Description: This function will take in the currentposition of the hour hand, as an integer between 0 and 11 (0 fornoon/midnight), the current position of the minute hand, as aninteger between 0 and 59 (0 for “on-the-hour”) and a positiveor negative number of minutes elapsed. Given this information,determine the new position of the clock hands. You should assumethat the hour hand does not move until the next hour has begun. Forexample, the hour hand stays on 2 from 2:00 until 2:59 and onlyat 3:00 does the hour hand move to 3.
Example [hour, min] = citizenWatch(11, 30, 122) hour → 1 min →32
Notes: ● The mod() and floor() functions will be useful. ●As you do this problem, notice the behavior of mod() when thefirst input is negative.
Hints: ● Information on using mod in this manner: ○ KhanAcademy – Better Explained
Expert Answer
Answer to Function Name: citizenWatch Inputs: Extra Credit 1. (double) T he current position of the hour hand 2. (double) T�…
OR