Answer to Question #144857 in C++ for Jaya

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.
1
Expert's answer
2020-11-16T23:35:56-0500
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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog