Majken is turning 18 years old soon and wants to calculate how many seconds she will have been alive.
Her code looks like this:
numYears ← 18
secondsInDay ← 60 * 60 * 24
Which code successfully calculates and stores the total number of seconds?
️Note that there may be multiple answers to this question.
Choose all answers that apply:
Choose all answers that apply:
(Choice A)
A
totalSeconds ← secondsInDay * 365 * numYears
(Choice B)
B
totalSeconds ← numYears * 365 * secondsInDay
(Choice C)
C
totalSeconds ← secondsInDay * 365 % numYears
(Choice D)
D
totalSeconds ← secondsInDay / 365 / numYears
(Choice E)
E
totalSeconds ← secondsInDay * 365 + numYears
(Choice F)
F
totalSeconds ← (numYears * 365) * secondsInDay