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
Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b

I want Skype Recorder Application + Setup + Sourcecode + NICE UI Project Description: i want an application built which will allow user to record skype audio or video calls

What is MIME? MIME - Multi-purpose Internet Mail Extensions. MIME types signifies a standard way of classifying file types over Internet. Browsers and Web servers have

getting a palindrome using minimum replacement

Question 1 Explain the following Object Oriented Concepts with suitable examples for each Question 2 Explain the following Object Oriented Methodologies Question 3 Descr

Define a structure in C++: Write a program a structure in c++ program. void main() {                 struct player                 {                 char name[2


Requirements Create a "makefile" that will manage the construction of a program The name of the makefile must be: makefile The make file must produce an executable

Programming Assignment # 1 C and UNIX   The purpose of this assignment is to get you more familiar with Unix/Linux and those constructs of C that are not part of C++. Write a C