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
// A) This expression is using the modulo operator that finds the remainder of the movieLength after being divided by 60.
20
23
21
24
// d) Interpret line 4, what does the expression assigned to totalMinutes mean?
25
+
// A) The expression is calculating the total number of minutes in the movie (not including the remaining seconds).
22
26
23
27
// e) What do you think the variable result represents? Can you think of a better name for this variable?
28
+
// A) The variable gives the total length of the movie in hours, minutes, and seconds. A better name for this variable could be "formattedMovieLength".
24
29
25
30
// f) Try experimenting with different values of movieLength. Will this code work for all values of movieLength? Explain your answer
31
+
// A) The code would have an error if the user was to inputs a value with commas, letters or as a string.
0 commit comments