Please write a Python program to analyze both of the two given log files and print to console the following outputs:
• Output A: output a table which consists of the following rows and columns:
◦ The first row has two fields. (a) The total number of “read from a file” events recorded in the first log file; (b) The total number of “read from a file” events recorded in the second log file. ◦ The second row has two fields.
(a) The total number of “read from keyboard” events recorded in the first log file;
(b) The total number of “read from keyboard” events recorded in the second log file. ◦ The third row has two fields. (
a) The total number of “read from pipe” events recorded in the first log file;
(b) The total number of “read from pipe” events recorded in the second log file.
• Output B: output a table which consists of the following rows and columns:
◦ The first row has two fields. (a) The total number of “a program starts running” events recorded in the first log file;
(b) The total number of “a program starts running” events recorded in the second log file.
◦ The second row has two fields.
(a) The total number of write events recorded in the first log file;
(b) The total number of write events recorded in the second log file. ◦ The third row has two fields.
(a) The total number of “get file/directory status” events recorded in the first log file;
(b) The total number of “get file/directory status” events recorded in the second log file. ◦ The fourth row has two fields.
(a) The total number of “file unlinking” events recorded in the first log file;
(b) The total number of “file unlinking” events recorded in the second log file. ◦ The fifth row has two fields. (a) The total number of “a program ends executing” events recorded in the first log file; (b) The total number of “a program ends executing” events recorded in the second log file. • Output C: output a table which consists of the following rows and columns: • The first row has three fields.
(a) The name of one executable program.
(b) If the executable program appears in the first log, print the timestamp of the corresponding “a program starts running” event; otherwise, print “absent”.
(c) If the executable program appears in the second log, print the timestamp of the corresponding “a program starts running” event; otherwise, print “absent”. • The second row has three fields. (a) The name of another executable program.
(b) If the executable program appears in the first log, print the timestamp of the corresponding “a program starts running” event; otherwise, print “absent”.
(c) If the executable program appears in the second log, print the timestamp of the corresponding “a program starts running” event; otherwise, print “absent”. • The third row has three fields. (a) The name of a third executable program, if it exists.
(b) If the executable program appears in the first log, print the timestamp of the corresponding “a program starts running” event; otherwise, print “absent”.
(c) If the executable program appears in the second log, print the timestamp of the corresponding “a program starts running” event; otherwise, print “absent”. • The fourth row has three fields.
(a) The name of a fourth executable program, if it exists.
(b) If the executable program appears in the first log, print the timestamp of the corresponding “a program starts running” event; otherwise, print “absent”.
(c) If the executable program appears in the second log, print the timestamp of the corresponding “a program starts running” event; otherwise, print “absent”.
• Output D: From the first log file, retrieve and output the sequence of user-console interaction events. ◦ The events in the sequence are ordered by the “happened before” relation. ◦ When an event let the user provide keystrokes to the console, output the following items: (a) print “the user provides the following keystrokes to the console:”;
(b) print the keystrokes recorded in the log. ◦ When an event let the console show a message to the user’s eyes, output the following items:
(a) print “the console shows the following message to the user’s eyes:”;
(b) print the message recorded in the log, if any.
• Output E: From the second log file, retrieve and output the sequence of user-console interaction events.
◦ The events in the sequence are ordered by the “happened before” relation. ◦ When an event let the user provide keystrokes to the console, output the following items: (
a) print “the user provides the following keystrokes to the console:”;
(b) print the keystrokes recorded in the log. ◦ When an event let the console show a message to the user’s eyes, output the following items:
(a) print “the console shows the following message to the user’s eyes:”;
(b) print the message recorded in the log, if any. What to submit: • Your Python program(s)
• The outputs you get (in a txt file)
CS 340 Milestone One Guidelines and Rubric Overview: For this assignment, you will implement the fundamental operations of create, read, update,
Retail Transaction Programming Project Project Requirements: Develop a program to emulate a purchase transaction at a retail store. This
7COM1028 Secure Systems Programming Referral Coursework: Secure
Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip
CS 340 Final Project Guidelines and Rubric Overview The final project will encompass developing a web service using a software stack and impleme