Final answer:
The student’s project entails writing a simulation in C++ or Java to represent disk allocation methods, where the user interface allows interactions with a simulated disk adhering to certain specifications, such as size, file allocation, and methods for disk operations. The correct answer is option 3) Display the free space bitmap
Step-by-step explanation:
The student’s project involves creating a simulation for disk allocation methods using either C++ or Java. In this simulated environment, a disk consisting of 256 blocks of 512 bytes, honors the basic structure of real computer storage — with dedicated blocks for a file allocation table and a bitmap for free space management. The emphasis of the project is to write a user interface that interacts with a disk object, which handles fundamental storage operations. Additionally, this simulation must implement three disk allocation methods (chained, indexed, and contiguous) and entertain multiple user operations such as displaying files, showing the file table, depicting the free space bitmap, and copying files from the simulation to the actual file system.
For the architectural design, the disk will be modeled as an object with public methods for reading and writing data by block number. The project restricts filenames to 8 characters, with a maximum file size of 10 blocks, and assumes a single root-level directory without support for subdirectories. The user interface will provide a menu for users to engage with the simulation, displaying information and manipulating stored files. Care for the allocation of space must be taken — chained and indexed methods will select random free blocks, while the contiguous method will look for the first available set of contiguous blocks large enough to store the file.