Question: Modify the Perl program lab10e.pl so that it prints the user id of the person who had the maximum length session. Do not use the

Modify the Perl program lab10e.pl so that it prints the user id of the person who had the maximum length session. Do not use the total time for any user for comparison purposes; instead consider the lengths of individual sessions. For example, if the file shows that user1 had two log in sessions that lasted 2 hours each and user2 had a single log-in session that lasted 3 hours, and every one of the other 7 login sessions lasted 30 minutes each, the program must print user2, not user1. (user1 had a combined total of 4 hours, but the maximum session length was 3 hours and that was by user2.)

$ ./lab10p2.pl signindata

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