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
// d) Interpret line 4, what does the expression assigned to totalMinutes mean?
21
+
// d) Interpret line 4, what does the expression assigned to totalMinutes mean? it gives us the total whole minutes we have left after removing the remaining seconds from movieLength and dividing by 60.
22
22
23
-
// e) What do you think the variable result represents? Can you think of a better name for this variable?
23
+
// e) What do you think the variable result represents? it represents the total time of the movie in hours, minutes and seconds.
24
+
// Can you think of a better name for this variable? movieLengthFormat
24
25
25
-
// f) Try experimenting with different values of movieLength. Will this code work for all values of movieLength? Explain your answer
26
+
// f) Try experimenting with different values of movieLength. Will this code work for all values of movieLength? I think it will work for all positive value of movieLength.
27
+
// Explain your answer this is because the code is calculating the time format based on seconds, minutes and hours which are all positive values.
0 commit comments