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
//ANSWER: 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.
21
21
// d) Interpret line 4, what does the expression assigned to totalMinutes mean?
22
-
22
+
//ANSWER: Line 4 with find the remainder whenmovieLength is divided by 60 and assigns the remainder to remainingSeconds (24)
23
23
// e) What do you think the variable result represents? Can you think of a better name for this variable?
24
-
24
+
//ANSWER: The variable result represents the total lenth of the movie which shows the total hours, minutes and seconds remain in string format.
25
+
// A better name will be movieTotalTime.
25
26
// f) Try experimenting with different values of movieLength. Will this code work for all values of movieLength? Explain your answer
27
+
//ANSWER: The code semed to work for all values of movieLength.
0 commit comments