You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// e) What do you think the variable result represents? Can you think of a better name for this variable?
24
24
25
25
// f) Try experimenting with different values of movieLength. Will this code work for all values of movieLength? Explain your answer
26
+
27
+
28
+
29
+
// a) 6 variables declarations.
30
+
31
+
// b) 1 function call.
32
+
33
+
/* c) The remainder (%) operator returns the remainder left over when one operand is divided by a second operand. It always takes the sign of the dividend.
34
+
In this case it will give the remainder of 8748 % 60 */
35
+
36
+
// d) It simply wants to get the length of the movie in minutes. subtract the remaining seconds from the movie length and convert to minutes.
37
+
38
+
// e) It represents the movie durations in hours, minutes and seconds. (movie duration).
39
+
40
+
/*f) I have tried three values and it worked. It will work perfectly for larger and smaller numbers.
41
+
However, with negative values it gives negative figures.*/
0 commit comments