Program that will recursively prompt for input from the user, C/C++ Programming

BACKGROUND: FILE SYSTEMS 

In a computer, a file system (sometimes written filesystem) is the way in which files are named and where they are placed logically for storage and retrieval. The DOS, Windows, OS/2, Macintosh, and UNIX-based operating systems all have file systems in  which files are placed somewhere in a hierarchical (tree) structure. A file is placed in a directory (folder in Windows) or subdirectory at the desired place in the tree structure.   

 The purpose of this assignment is to familiarize students with the linux file system and start writing programs which interact with the kernel using system calls. You are strongly urged to spend some time exploring the linux file system so you properly understand the hierarchical structure.  

ASSIGNMENT STATEMENT 

Create a linux shell (in other words, write a C/C++ program) that will recursively prompt for input from the user. The shell should prompt as

yourRollNumber-currentDirectoryName>   

For instance if the current directory is /home/OS, the shell should prompt as: 

B-12345-OS>   

For example purpose, consider the following file structure, the current working directory is named as OS and it contains a file hogwarts.txt and two sub-directories called teachers (which has two files called dumbeldore.txt and snape.pdf) and students (which has a subdirectory called gryffindor which has a file called harry.vlc)

Posted Date: 3/9/2013 5:25:18 AM | Location : United States







Related Discussions:- Program that will recursively prompt for input from the user, Assignment Help, Ask Question on Program that will recursively prompt for input from the user, Get Answer, Expert's Help, Program that will recursively prompt for input from the user Discussions

Write discussion on Program that will recursively prompt for input from the user
Your posts are moderated
Related Questions
What if one forget the [] when deleteing array allocated through new T[n]? A: All life comes to a disastrous end. It is the programmer's responsibility not the compiler's to

how to use and what is implicit and explicit constructor

Part 1 Assignment:  develop a calculator in MASM. Text chapters covered:  1 through 4, 5.4, 5.5, 6.3, 7.4 You will develop a "calculator" algorithm in MASM using reverse-

B-tree: A B-tree is an also called balanced m-way tree. A node of the tree may have many records or key and pointers to children. It is also called as the balanced sort tree. It s

Program to design list in c: Write a program in c to insert the values in list void main() { int i=0; char a[20]; clrscr(); printf("Enter the line\n");

Please use C or C++ to write your programs. Our homework will focus on SUN sparc machines because to exploit x86 stack-overflow is too easy. This is not just a programming assignme

Algorithm for railway ticket booking process

Can any constructor throw an exception? How to handle error while the constructor fails?

Read numbers form user and place them in array: Program is to read a group numbers of numbers form user and place them in array type of float and sort them void sort(floa

C Program for FUNCTION OF FIND THE FACTORIAL float factorial(float); void main() {           float i=0,c=0;           clrscr();           printf("ENTER THE DIGI