186k views
2 votes
Given two variables , isempty of type boolean , indicating whether a class roster is empty or not, and numberofcredits of type int , containing the number of credits for a class , write an expression that evaluates to true if the class roster is empty or the class is exactly three credits.

1 Answer

4 votes
( isempty || ( numberofcredits == 3 ) )
User TEHEK
by
6.0k points