Question: ) Assume that a player s score is held in an integer variable score. Write an if / else if / else sequence that prints

) Assume that a players score is held in an integer variable score. Write an if/else if/else sequence that prints a message based on the players score. If the score is 125 or higher, print Expert Level!. If the score is 50 or higher (but less than 125), print Average Level!. Finally, if the score is 0 or higher (but less than 50), print Keep Working!!!.
b) The statement results in an error because the + operation cannot be performed on string literals
c) The string s has the following value: "You had me at hello"
d) The statement results in an error because the + operator can be used only with numbers

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 Programming Questions!