Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Implement a hypothetical file system (using a program level data structure) in C++ that would create a directory of files based on user input. Since

Implement a hypothetical file system (using a program level data structure) in C++ that would create a directory of files based on user input. Since you've already worked with binary search trees, you may modify it to implement the hypothetical file system. Than way your file system will also be in some sorted order. Use string.compare() for comparing file names. Your program should be menu driven with the following options:

1. Create new folder- Create the folder based on the specified name input by the user and inserted in the correct position in the binary search tree.

2. View file system -Print all folder names currently in the binary search tree in increasing order with each folder name on a separate line. Subfolders should be displayed using indentation.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

MySQL Crash Course A Hands On Introduction To Database Development

Authors: Rick Silva

1st Edition

1718503008, 978-1718503007

More Books

Students also viewed these Databases questions

Question

=+3 In what ways can an MNE improve or change its approach to IHRM?

Answered: 1 week ago