1. A professor promised students 2 extra points if they turn in one additional research report and 5.5 extra points if they turn in two additional research reports. Assuming that we are given the variable numberOfReports, write down a piece of code that assigns the corresponding value to the variable extraPoints.
2. Among students who take two classes this semester, some students are excellent and some are failing. A student is considered excellent if this student gets a grade of 90 or more in both classes; a student is considered failing if this student get less than 60 in at least one of the two classes. Write down a piece of code that, given the student's grades grade1 and grade2 in these two classes, assigns the corresponding values to the Boolean variables excellent and failing.
3. So far, we used objects of the class BufferedReader for the computer to read what we type on the keyboard. How else are objects the class BufferedReader used in Java? Hint: it has something to do with files.