Answer to Question #99414 in C++ for Caleb

Question #99414
Write an if-else statement for the following:

If userTickets is greater than 8, execute awardPoints = 10. Else, execute awardPoints = userTickets.

Ex: If userTickets is 14, then awardPoints = 10.
1
Expert's answer
2019-12-10T13:23:40-0500
if (userTickets > 8) {
	awardPoints = userTickets;
} else {
	awardPoints = 10;
}

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
APPROVED BY CLIENTS