Starting from:

$30

CSC3320- Systems Programming: Midterm 1 Solved

Create a Google doc for your submission.
Start your responses from page 2 of the document and copy these instructions on page 1.
Fill in your name, campus ID and panther # in the fields provided. If this information is missing
Keep this page 1 intact. If this submissions instructions page is missing in your submission 
Start your responses to each QUESTION on a new page.
If you are being asked to write code copy the code into a separate txt file and submit that as well. The code should be executable. E.g. if asked for a C program then provide myfile.c so that we can execute that script. In your answer to the specific question, provide the steps on how to execute your file (like a ReadMe).
If you are being asked to test code or run specific commands or scripts, provide the evidence of your outputs through a screenshot and/or screen video-recordings and copy the same into the document.
Upon completion, download a .PDF version of the google doc document and submit the same along with all the supplementary files (videos, pictures, scripts etc).
Scripts/Code without proper comments, indentation and titles (must have the name of the program, and name & email of the programmer on top the script).
Full Name:

Campus ID:

Panther #:

Questions 1-5 
 Pick any of your 10 favourite unix commands. For each command run the man command and copy the text that is printed into a mandatabase.txt. Write a shell script sh that will ask the user to type in a command and then print the manual’s text associated with that corresponding command. If the command the
user types is not in the database then the script must print sorry, I cannot help you

 On your computer open your favourite Wikipedia page. Copy the text from that page into a text file txt and then copy that file to a directory named midterm (use mkdir to create the directory if it doesn’t exist) in your snowball server home directory (use any FTP tool such as Putty or Filezilla to copy the file from your computer to the remote snowball server machine: see Lab 6).
Write a shell script that will find the number of statements in the text. A statement is defined as the collection of text between two periods (full-stops).
Update the script to present a tabular list that shows the number of words and number of letters in each statement.
 Design a calculator using a shell script using regular expressions. The calculator, at the minimum, must be able to process addition, subtraction, multiplication, division and modulo operations. It must also have cancel and clear features.
 Build a phone-book utility that allows you to access and modify an alphabetical list of names, addresses and telephone numbers. Use utilities such as awk and sed, to maintain and edit the file of phone-book information. The user (in this case, you) must be able to read, edit, and delete the phone book contents. The permissions for the phone book database must be such that it is inaccessible to anybody other than you (the user).
 Give brief answers with examples, wherever relevant A. What is the use of a shell?Is there any difference between the shell that you see on your PC versus that you see on the snowball server upon login. If yes, what are they? Provide screenshots for examples.
What are the elements in a computer (software and hardware) that enable the understanding and interpretation of a C program?
The “printf()” C command is used for printing anything on the screen. In bash we use the command “echo ”. What is the difference (if any) in terms of how the computer interprets and executes these commands?
What do these shell commands do? “ssh”, “scp” and “wget”. Describe briefly using an example that you have executed using the snowball server.

More products