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
{{ message }}
Repository navigation
Commit 4be47f2
Browse filesBrowse the repository at this point in the historyBrowse files
// The modulo operator divides the movieLength in seconds by 60 and give the remainder
21
21
// d) Interpret line 4, what does the expression assigned to totalMinutes mean?
22
-
22
+
// It calculates the total number of whole minutes in the movie by subtracting the remainingSeconds from the total movie then divides the answer by 60 to covert seconds to minutes.
23
23
// e) What do you think the variable result represents? Can you think of a better name for this variable?
24
-
24
+
// This variable represents the movie duration in the form of hours:minutes:seconds. better name id duration.
25
25
// f) Try experimenting with different values of movieLength. Will this code work for all values of movieLength? Explain your answer
26
+
// The code will run for all non negative whole number.
0 commit comments