Question: Assignment 6 Write the program in MIPS that reads a string representing an attendance record for a student. The record only contains the following three

 Assignment 6 Write the program in MIPS that reads a string

Assignment 6 Write the program in MIPS that reads a string representing an attendance record for a student. The record only contains the following three characters: 1. 'A' Absent. 2. L': Late. 3. P Present. A student could be rewarded if his attendance record doesn't contain more than one 'A' absent) or more than two consecutive L' (late) You need to return (print) whether the student could be rewarded according to his attendance record. Example Input: "PPALLP" Output: True Example 2: Input: "PPALLL" Output: False Assignment 6 Write the program in MIPS that reads a string representing an attendance record for a student. The record only contains the following three characters: 1. 'A' Absent. 2. L': Late. 3. P Present. A student could be rewarded if his attendance record doesn't contain more than one 'A' absent) or more than two consecutive L' (late) You need to return (print) whether the student could be rewarded according to his attendance record. Example Input: "PPALLP" Output: True Example 2: Input: "PPALLL" Output: False

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!