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


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.  


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


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


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 & x=b

How do you access the values within an array? - Arrays comprise a number of elements, which depends on the size you assigned it during variable declaration. - Every element

The program will ask the user to enter: '1' to List the cities(and their state abbrev)  from largest to smallest (by their population) with their population '2'  to List the

Define the Multi Dimensional Arrays? Consequently far we have considered arrays with only one dimension. It is as well possible to define an array which is having a 2-dimension

Change the matrix program (program 3) slightly. Overload == operator to compare two matrices to be added or subtracted. i.e., whether the column of first and the row of second

What is Namespace and Explicit container Namespace - Namespaces are used to group entities such as objects, classes and functions under a name. Explicit container.

Write a program that reads a line of characters from the user and displays that entire line after converting any uppercase characters to lowercase also change any lowercase charact

how are metric numer change the number of metric

Define the Double Data Type of c Language? The double is used to define BIG floating point numbers and it reserves twice the storage for the number. When the accuracy provided