Question: Done in Java. Any help is greatly appreciated!! Note: No arrays or any other data structure (arraylist, hashmap, sets, linkedlist, stacks, queue) is allowed Both

Done in Java. Any help is greatly appreciated!!

Note:

No arrays or any other data structure (arraylist, hashmap, sets, linkedlist, stacks, queue) is allowed

Both the conditions must be satisfied. The student should not have more than one Absent and more than two consecutives Late at the same time to be rewarded.

Problem:

Write a java program (with appropriate method name, return type and argument list/s) and accompanying JUnit 4 test to check whether a student can be rewarded based on their attendance or not. The student can only be rewarded if their attendance record does not contain more than one A (Absent) and more than two consecutive L (Late)

Sample Example:

Student Attendance Record = PAPPLLP

Output: True

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