Question #144857

Write an if-else statement that if userTickets is less than 5, executes awardPoints = 15. Else, execute awardPoints = userTickets. Ex: If userTickets is 3, then awardPoints = 15.

Expert's answer

if (userTickets < 5) {
    awardPoints = 15;
}
else {
    awardPoints = userTickets;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS