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:
Date Event ID Description
Log in
Delete File
Open File
List a directory
Delete File
Open File
Log Out
Delete File
Open File
List a directory
By: Print Your Name
Display Activities by Student ID
Display Activities by Event ID
Display All Activities
Enter Option to Exit:
Enter Event ID:
Sorry Event ID: not found
Administrator selects option But
entered an invalid Event ID You must
show an error message and go back to
the menu
Administrator selects option 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 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
Student ID Date Event ID Description
Log in
Log in
Log in
Log in
Log in
Log in
Log in
Log
Log in
Log in
Event Vilewer
Dy: Print Your Mane
Display Activities by Student ID Display Activities by Fvent ID
Display Activities by Cue Display All Activities Enter Option e to Exit
Enter Option e to Exit:
All Student Activities sorted by Student ID
Student ID Date Event ID Description
Delete File
eee Open
Heb Access
tablelog inlog in
Log
Web Access
Leb acces
Log
Log out.
Web Access
Web Access
tableeWeb Access
Log Out
Web Access
Web Access
Web Access
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:
Actual log file studentActivitylog is given to you.
eventIds are defined as shown in Figure
The data types of each of the above are as follows:
studentld int, eventDate String, evenld int
Event ID Descriptions
Log in
Log Out
Change Directory
Delete File
Open File
List a directory
Access Shared Directory
Web Access
Figure
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 eventsactivities 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 to Exit:
Administrator Selects Option : if the administrator enters ask for the student number like this:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
