Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_step_2

Step: 3

blur-text-image_step3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

How can predictive analytics improve the speed of hiring?

Answered: 1 week ago

Question

5. A review of the key behaviors is included.

Answered: 1 week ago