Reference no: EM132167193
Using the classes from Lab 1, app and student, create a solution for implementing some kind of random behavior for your student. Suppose the student can be reading, surfing the web, or interacting with other students.
You will need to check now and then to see what the student is doing. You will be asking the instance of the student class what it is doing at certain time intervals.
You will need to:
create a method in the class student that returns what the student is doing
have this method generate the behavior randomly. It can't return the same thing every time.
implement a for loop in the application to call for the student behavior 20 times
in a 20 minute period you are going to check once a minute = 20 times
give a total for each activity
No need to work with TIME functions in Java. We are making a simulation as if every count of the for loop is one minute.
Generate a report in the end summarizing what the student did in class.