149k views
13 votes
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)

User Ivan Alek
by
5.4k points

1 Answer

10 votes

Answer:

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

Step-by-step 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:


XXX = score>90

Also, we understand that

YYY represents stands for string "Great job"

This means:


YYY =

Lastly,

ZZZ represents string "Nice try"

So, we have:


ZZZ =

User Andriy Kharchuk
by
5.5k points