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 CSCICISA
Spring Hands on Assignment # Python
For Tuesday OnlineSynchronous class: Due Wednesday May @ or before : pm
For Thursday FaceToFace class: Due Friday May @ or before : pm
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
lastnamefirstnameassignmentzip
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.
studentIdeventDateeventId
Each rows 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:
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
by the Student Id
by the Event Id
all eventsactivities 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 : if the administrator enters ask for the student number like this:
Menu must have a title and your name.
Event ID Descriptions
Log in
Log Out
Change Directory
Delete File
Open File
List a directory
Access Shared Directory
Web Access
Figure
Administrator selects option Invalid
menu options must show an error
message and go back to the menu
Administrator selects option But
entered an invalid Student 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 IDs description
must be printed in the last column
along with Date and Event I ID
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 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
Display all activities. Note that the
Event IDs description must be
printed in the last column along with
Student ID and Date.
Administrator entered 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 PENALTY
COMPLETE THE CODE IN CORRECT FORMANT AS SHOWN IN THE PICTURES. NO PSUEDO CODE.
This is the studentActivity.Log which is placed below.
