Assignment No. 01
Semester: Fall 2016CS604: Operating Systems
Total Marks: 15
Please read the following instructions carefully before submitting assignment. It should be clear that your assignment will not get any credit if:
The assignment is submitted after due date.
The submitted assignment does not open or file is corrupt.
Assignment is copied(partial or full) from any source (websites, forums, students, etc)
Note: You have to upload only .doc file. Assignment in any other format (extension) will not be accepted and will be awarded with zero marks.
The objective of this assignment is to provide hands on experience of:
Getting started with C programming in Linux
For any query about the assignment, contact at CS604@vu.edu.pk
Question No. 1: (marks 15)
You are required to write a simple program in C language, compile and run it on Ubuntu Linux.(You can use any version of Linux, Ubuntu is not must) This program will display your VU id and your name on console.
You will submit three Snapshots in word file.
1) First Snap Shot: You will write C code using any editor in Linux and take snap shot. Of complete code 2) Second Snap Shot: You will take 2nd snapshot of compiling command that you will issue.
3) Third Snap Shot: Then you will run your executable and take its snapshot.
Note: No need to submit the code you will only submit snapshots in word file
Solution File :
Step to Solve this Assignment
Step 1: Download and install Vmware player or workstation
Step 2: Download & install Ubuntu on Vmware Virtual Machine
Step 3 : After installation of ubuntu open text Editor type C program and give filename your Student Id and save with .C extension for more Watch Below Tutorial
C program that Display your Student ID and Name on Console Window
Save this code with your StudentID
Commands used : gcc - filename.c -o finame // Press Enter
then ./filename // Press Enter