Exam Eligibility
Easyjava
A student may sit the exam only if attendance is above 75 and fees are paid.
Input: two lines — line 1 is the attendance percentage (an integer), line 2 is true or false for fees paid.
Output: one line — true if eligible, otherwise false.
Example 1
Input
80 true
Output
true
- 0 <= attendance <= 100
Hint 1
Combine the two conditions with &&.
Hint 2
attendance > 75 is a boolean; feesPaid is already a boolean.
Both parts must be true: attendance strictly greater than 75, and fees paid. Joining them with && gives the answer. Note 75 itself is not "above 75", so 75 with fees paid is still false.