logo Hurry, Grab up to 30% discount on the entire course
Order Now logo
438 Times Downloaded

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
H. GraceSocial sciences
(5/5)

885 Answers

Hire Me
expert
Deborah AustinMathematics
(5/5)

885 Answers

Hire Me
expert
Adarsh Vikram RaiComputer science
(/5)

759 Answers

Hire Me
expert
Jesse RossResume writing
(5/5)

896 Answers

Hire Me
Python Programming
(5/5)

write a Python program to analyze both of the two given log files and print to console

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

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)

 

(5/5)
Attachments:

Expert's Answer

438 Times Downloaded

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

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

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme