With the aid of diagram, explain how File Systems are organised in UNIX.
Describe three factors that would cause a company to continue doing business in traditional ways and avoid electronic commerce. Use practical examples to support your answer.
In your own words identify and discuss all the: • Technologies • Devices • Software • Applications that make the internet work.
Write and run a program that creates a chain of n processes in Linux (n depends on user input). Also display id of each process. Examine the output carefully and draw process tree diagram.
Write a single program for implementation of each function performed on a file in Windows System Programming.
Consider a file “data.txt” which contains several records. Each record contains ID(7chars), 1 space, First name (10 chars),1 space, Second name (8 chars), 1space, marks in physics( 3chars), 1space, marks in chemistry(3 chars), 1space, marks in mathematics(3 chars) and anewline character. Sample file content is as shown below:
71723 Ram Sen 70 72 75
91924 Raghubir Yadav 82 73 80
53425 Ram Chauhan 93 81 86
44917 Ratan Yadav 95 79 91
Write the program using shell script:
iii)If the programis run with non-numeric argument ($./info.sh yadav), it will assume it as either first or second name and output the ID’s of all the students whose first or last name matches with the argument (irrespective of case).
Consider a file “data.txt” which contains several records. Each record contains ID(7chars), 1 space, First name (10 chars),1 space, Second name (8 chars), 1space, marks in physics( 3chars), 1space, marks in chemistry(3 chars), 1space, marks in mathematics(3 chars) and anewline character. Sample file content is as shown below:
71723 Ram Sen 70 72 75
91924 Raghubir Yadav 82 73 80
53425 Ram Chauhan 93 81 86
44917 Ratan Yadav 95 79 91
Write a shell program info.sh to achieve the following
i) If the number of arguments is greater than one, the program should display an error message.
Consider a file “data.txt” which contains several records. Each record contains ID(7chars), 1 space, First name (10 chars),1 space, Second name (8 chars), 1space, marks in physics( 3chars), 1space, marks in chemistry(3 chars), 1space, marks in mathematics(3 chars) and anewline character. Sample file content is as shown below:
71723 Ram Sen 70 72 75
91924 Raghubir Yadav 82 73 80
53425 Ram Chauhan 93 81 86
44917 Ratan Yadav 95 79 91
ii) If the programis run with numeric argument ($./info.sh 44917), it will assume it as ID of student and will output ID, first name, second name and the average score of that student. If ID does not match, the program should display “record not found”.
Consider a file “data.txt” which contains several records. Each record contains ID(7chars), 1 space, First name (10 chars),1 space, Second name (8 chars), 1space, marks in physics( 3chars), 1space, marks in chemistry(3 chars), 1space, marks in mathematics(3 chars) and anewline character. Sample file content is as shown below:
71723 Ram Sen 70 72 75
91924 Raghubir Yadav 82 73 80
53425 Ram Chauhan 93 81 86
44917 Ratan Yadav 95 79 91
Write a shell program info.sh to achieve the following
i) If the programis run without any argument ($./info.sh), it has to display the first name, second name and average score of each student in the file.
A user starts program typing program name & first his/her first name & then ID number as two parameters .Program shall ask the secret key to run the program;a user should program this secret key in advance.If user enters correct secret key it should move to next step(3), else it should prompt to enter correct key for four times & then exit.Then welcomes user somehow mentioning his/her ID number first, then name & displays date and the time of execution.Then displays five codes and names of five countries team that has played Football (one code & name per line) .The codes for Brazil,Argentina,Nepal,China & England are BRZ,ARG,NEP,CHI & ENG respectively.After typing country code, if option is correct, program informs about it & gives one two sentences explaining about some of the descriptions/characteristics of chosen team,otherwise program warns about a mistake,& user will guess until correct option is chosen it displays Five players of football team.