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?
22
22
//The expression assigned to totalMinutes means that the remaining seconds are subtracted from the movieLength and then divided by 60 to get the total number of minutes in the movie length.
23
23
24
24
// e) What do you think the variable result represents? Can you think of a better name for this variable?
25
-
//The variable result represents the total time of the movie, in hours minutes and seconds.
25
+
//The variable result represents the total time of the movie, in hours minutes and seconds. Abetter name for this variable could be totaltime
26
26
// f) Try experimenting with different values of movieLength. Will this code work for all values of movieLength? Explain your answer
27
-
27
+
//Yes it would work, we have accommodated for all length
0 commit comments