PDA

View Full Version : CS604- Operating System assignment no 1 spring 2012 idea solution



Xpert
04-06-2012, 07:49 PM
Question 1: [Marks 20]
Write a program in C language that take two inputs from user.
1) Program takes Student Name as input
2) Program takes Student ID as input.
After taking input from user, program should display two things.
1) Program should display Student Name that it takes from user as input
2) Program should display Student ID that it takes from user as input
Execute this program on Linux Ubuntu. Take screen shots of your program that you write in C, Commands that
you used to run your program in Linux Ubuntu and the out put displayed by your program. After taking screen
shots, send these screen shots to me properly in your assignment.
Note:
1) Do not write your program in other languages like Java, C++ etc. Write your program only in C language.
2) Do not execute your program in other operating systems like Windows, Mac etc. Execute your program
only in Linux Ubuntu flavor.
3) You should provide three screen shots. Required three screen shots that you should provide are given
below.
i) Screen shot of your program that you write in C.
ii) Screen shot of Commands that you used to run your program in Linux Ubuntu.
iii) Screen shot of Final output of your program shown.
4) If the Programís out put of any two students will be same then both of them will get zero marks with no
leniency. Moreover if you will copy your assignment then you will get zero marks with no leniency.