Question: Scripting Languages CSCI / CISA 3 3 0 9 Spring 2 0 2 4 Hands on Assignment # 1 4 - Python 0 4 For

Scripting Languages CSCI/CISA 3309
Spring 2024 Hands on Assignment #14- Python 04
For Tuesday Online-Synchronous class: Due Wednesday May 01 @ or before 11:59 p.m.
For Thursday Face-To-Face class: Due Friday May 03 @ or before 11:59 p.m.
Submit your solutions on blackboard
Make sure to RUN the script you write and include a screen dump of each execution output
into a word document. Number them correctly. The .py file you write in this assignment
MUST be zipped along with the word document into a zip file named your
lastname_firstname_assignment14.zip
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|eventId
-Each rows tokens are separated using the | character.
A couple of sample rows of actual data will look like this:
455151|09/12/2023|817721
435633|09/11/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:
studentId = int, eventDate = String, evenId = int
Write a Python script to create a primitive Event Viewer where the system administrator can look at the events
1. by the Student Id
2. by the Event Id
3. all events/activities at once
When displaying, the events must print their descriptions in addition to the eventId. (See next page for a full scenario)
Administrator Selects Option 1: if the administrator enters 1, ask for the student number like this:
Menu must have a title and your name.
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
2
Administrator selects option 5. Invalid
menu options must show an error
message and go back to the menu
Administrator selects option 1. But
entered an invalid Student 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 IDs description
must be printed in the last column
along with Date and Event I ID.
Administrator selects option 2. But
entered an invalid Event ID. You must
show an error message and go back to
the menu
3
Administrator selects option 2 and
enters an existing event Id. Display all
activities of that Event Id. Note that
the Event IDs description must be
printed in the last column along with
Student ID and Date.
Administrator selects option 3.
Display all activities. Note that the
Event IDs description must be
printed in the last column along with
Student ID and Date.
Administrator entered 0 at the option, print Good Bye! and
then end the script.
Note: Full credit will be given only for the outputs that match exactly as shown in
these requirements. Neatness, column headers, alignments etc. are essential. PS: DO
NOT HARD CODE THE GIVEN DATA IN THE SCRIPT!!!!. THERE WILL BE A 50% PENALTY
COMPLETE THE CODE IN CORRECT FORMANT AS SHOWN IN THE PICTURES. NO PSUEDO CODE.
This is the studentActivity.Log which is placed below.
455151|09/12/2023|817721
435633|09/11/2023|773273
717711|08/11/2023|817721
177377|07/11/2023|817721
455151|09/12/2023|999934
455151|09/12/2023|773273
177377|07/11/2023|900015
177377|07/11/2023|900017
177377|07/11/2023|900021
455151|09/12/2023|817727
717711|09/11/2023|817727
455151|04/12/2024|817721
828811|10/10/2023|817721
828811|10/10/2023|773273
828811|10/10/2023|900015
828811|10/10/2023|900017
828811|10/10/2023|900021
828811|10/10/2023|999934
828811|10/10/2023|773273
828811|10/10/2023|817727
177377|07/11/2023|900015
177377|07/11/2023|900017
177377|07/11/2023|817727
588181|10/04/2023|817721
588181|10/04/2023|900021
588181|10/04/2023|773273
588181|10/04/2023|900015
588181|10/04/2023|773273
588181|10/04/2023|900017
588181|10/04/2023|999934
588181|10/04/2023|773273
588181|10/04/2023|773273
588181|10/04/2023|773273
588181|10/04/2023|817727
717711|11/01/2023|817721
455151|11/11/2023|817721
717711|11/01/2023|900021
717711|11/01/2023|773273
455151|11/11/2023|773273
455151|11/11/2023|773273
455151|11/11/2023|817727
717711|11/01/2023|773273
717711|11/01/2023|773273
717711|11/01/2023|773273
717711|11/01/2023|817727
177377|03/11/2024|900015
177377|03/11/2024|900017
177377|03/11/2024|900021
588181|04/04/2024|817721
588181|04/04/2024|900021
588181|04/04/

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!