Answer to Question #350076 in C++ for Cosme

Question #350076

Write an if-else statement for the following:

If userTickets is not equal to 6, execute awardPoints = 10. Else, execute awardPoints = userTickets.

Ex: If userTickets is 14, then awardPoints = 10.


1
Expert's answer
2022-06-13T08:26:38-0400
    if (userTickets != 6) {
        awardPoints = 10;
    } 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
APPROVED BY CLIENTS