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: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

Concepts of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

7th edition

978-1111825911, 1111825912, 978-1133684374, 1133684378, 978-111182591

More Books

Students also viewed these Databases questions

Question

5. A review of the key behaviors is included.

Answered: 1 week ago