Which expressions for XXX, YYY, and ZZZ output "Great job" for scores above 90, and "Nice try otherwise? Choices are in the form YYY / ZZZ int score cin score; if (XXX) cout << YYY; else { cout << ZZZ:
a. score <91/"Great job" / "Nice try"
b. score < 91/"Nice try" / "Great job"
c. score > 90/"Nice try" / "Great job"
d. (Not possible for given code)

Respuesta :

Answer:

c. score > 90/"Nice try" / "Great job"

Explanation:

Given

if (XXX)

cout << YYY;

else

cout << ZZZ;

Required

Replace XXX, YYY, ZZZ with right parameters

From the question, we understand that:

XXX represents scores greater than 90.

This means:

[tex]XXX = score>90[/tex]

Also, we understand that

YYY represents stands for string "Great job"

This means:

[tex]YYY = "Great job"[/tex]

Lastly,

ZZZ represents string "Nice try"

So, we have:

[tex]ZZZ = "Nice try"[/tex]

ACCESS MORE
EDU ACCESS