Hello, CS 201! I will write some updates later on before Saturday
Review of Quiz
What does this psudocode print?
num = 10
while num > 1
if num is even
num = num / 2
num = 3 * num + 1
Note: I made a mistake about the question!
Evaluate the given pseudocode to calculate the payment (pmt) with the following test values:
The total number of hours worked (working_hours) = 60
The rate paid for hourly work (rate) = 12
pmt = working_hours * rate
if working_hours > 40 then
extra_hours = working_hours Ã¢ÂÂ 40
extra_pmt = extra_hours * rate
pmt = pmt + extra_pmt
end of if
What is the final output?
A simple java application to lab P1.1 pseudocode