Enter a word: Good
Enter a word: morning
Good morningAssume that a disk has 256 tracks, with each track having 64 sectors and each sector is of size 4M. The cluster size in this system can be assumed to be 4 sectors. A file having the name MCS012.txt is of size 128 M. Assume that disk has 16 free - continuous clusters of 8sectors each. How can this file be allotted space on the disk? Also show the content of FAT after the space allocation to this file. You may make suitable assumptions.
Write, compile, and run a C++ program that inputs 10 double-precision numbers
in an array named raw. After these numbers are entered in the array, your program should cycle
through raw 10 times. During each pass through the array, your program should select the lowest
value in raw and place it in the next available slot in an array named sorted. When your
program is finished, the sorted array should contain the numbers in raw in sorted order from
lowest to highest. (Hint: Be sure to reset the lowest value selected during each pass to a very
high number so that it’s not selected again. You need a second for loop in the first for loop to
locate the minimum value for each pass.)
(Single Inheritance) Write a program to create a class CIRCLE with one field as radius, used
to calculate the area of a Circle. Create another class RECTANGLE used to calculate the area
of the rectangle which is a subclass of CIRCLE class. Use the concept of single inheritance
such that the radius of circle class can be re-used as length in rectangle class. Take necessary
data members and member functions for both the classes to solve this problem. All the data
members are initialized through the constructors. Show the result by accessing the area
method of both the classes through the objects of rectangle class