Question: Student Number: 1 7 7 3 7 7 Date Event ID Description 0 7 / 1 1 / 2 0 2 3 8 1 7

Student Number: 177377
Date Event ID Description
07/11/2023817721, Log in
07/11/2023900015 Delete File
07/11/2023900017 Open File
07/11/2023900021 List a directory
07/11/2023900015, Delete File
07/11/2023900017 Open File
07/11/2023817727, Log Out
03/11/2024900015, Delete File
03/11/2024900017 Open File
03/11/2024900021 List a directory
By: Print Your Name
Display Activities by Student ID
Display Activities by Event ID
Display All Activities
Enter Option (0 to Exit): 2
Enter Event ID: 33533
Sorry Event ID: 33533 not found
Administrator selects option 2. But
entered an invalid Event ID. You must
show an error message and go back to
the menu
Administrator selects option 1 and
enters an existing student number.
Display all activities of that student.
Note that the Event ID's description
must be printed in the last column
along with Date and Event I ID. Administrator selects option 2 and
enters an existing event Id. Display all
activities of that Event Id. Note that
the Event ID's description must be
printed in the last column along with
Student ID and Date.
=============== Event Viewer All Events by Event ID 817721
Student ID Date Event ID Description
177377,0711?2023,817721, Log in
455151,0412?2024817721, Log in
455151,0416?2024817721, Log in
455151,0912?2023,817721, Log in
455151,1111?2023817721, Log in
588181,0404?2024817721 Log in
588181,1004?2023,817721, Log in
717711,0811?2023,817721 Log in
71771111/01/2023817721 Log in
828811,1010?2023,817721 Log in
Event Vilewer
Dy: Print Your Mane
Display Activities by Student ID 2. Display Activities by Fvent ID
Display Activities by Cue 3. Display All Activities Enter Option (e to Exit)
Enter Option (e to Exit): 3
All Student Activities sorted by Student ID
Student ID Date Event ID Description
177377e711?2e23906e15 Delete File
177377e711?2e239eee17 Open F11e
e911?2e23773273
e412?2e24 Heb Access
\table[[04/12/2024,817721,log in],[64/16/2024,817721,log in]]
455151e416?2024817721 Log in
455151e912?2023773273 Web Access
455151,e912?2e23,873273 Leb acces
455151,e912?2e23,817721 Log in
455727 Log out.
455151,1111?2e23,773273
455151,1111?2e23,773273 Web Access
Web Access
\table[[455151,11/11/2023,773273,],[455151,11/11/2e23,817721,Web Access]]
455151,1111?2023,817727
5 Log Out
58B181,0464?2024,773273
598181,0424?2024,773273 Web Access
583181,0404?2024,773273
538181,0464?2024,773273
588191,0404?2024,773273 Web Access
588181,0404?2024,773273 Web Access
538181,0494?2024,773 A systems administrator keeps track of student activities logged into a system log file via a tracking application. The
tracking application logs information to the studentActivity.log file in the following format.
studentId | eventDate leventId
-Each row's tokens are separated using the '??' character.
A couple of sample rows of actual data will look like this:
455151|0912?2023|817721
435633|0911?2023|773273
.......
Actual log file (studentActivity.log) is given to you.
eventIds are defined as shown in Figure 1.
The data types of each of the above are as follows:
studentld = int, eventDate = String, evenld = int
Event ID Descriptions
817721= Log in
817727= Log Out
900011= Change Directory
900015= Delete File
900017= Open File
900021= List a directory
999934= Access Shared Directory
773273= Web Access
Figure 1
Write a Python script to create a primitive Event Viewer where the system administrator can look at the events
by the Student Id
by the Event Id
all events/activities at once
When displaying, the events must print their descriptions in addition to the eventld. (See next page for a full scenario)
Menu must have a title and your name.
By: Print Your Name
Display Activities by Student ID
Display Activities by Event ID
Display All Activities
Enter Option (0 to Exit): |
Administrator Selects Option 1: if the administrator enters 1, ask for the student number like this:
Student Number: 1 7 7 3 7 7 Date Event ID

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!