Question: Write code for the following If userTickets is greater than 8, assign awardPoints with 10. Else, assign awardPoints with userTickets. Ex: If userTickets is 15,

Write code for the following If userTickets is greater than 8, assign awardPoints with 10. Else, assign awardPoints with userTickets. Ex: If userTickets is 15, then output is: awardPoints: 10 Variables Not shown when editing Code Flowchart 1 2 3 4 5 An if-else statement can be used to determine if userNum is greater than 8. If userTickets is greater than 8, the true branch should assign awardPoints with 10. Otherwise, the else branch should assign awardPoints with userTickets. Output differs. See highlights below. Input 7 Your output awardPoints: 10 Expected output awardPoints: 7 Input 8 Your output awardPoints: 8 Output differs. See highlights below. Input 9 Your output awardPoints: 9 Expected output awardPoints: 10 Output differs. See highlights below. Input 15 Your output aw ardPoints: 15 Expected output awardPoints: 10

Help answers are not working and I am not sure how to fix in Coral only

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!