IN C++ plecas implement adiak.coo end meinepo frem the below adiakh The firat pert ef thía prejest reguirea thet you implemente slesa that wilbe uacd te aimulate e dak drive. The diak drive wial heve...


IN C++ plecas implement adiak.coo end meinepo frem the below adiakh<br>The firat pert ef thía prejest reguirea thet you implemente slesa that wilbe uacd te aimulate e dak drive.<br>The diak drive wial heve numberatlocks many blecka where cech bleck hea biacksizumeny bytea. The<br>interisse fer the eless Seak aheuld inslude:<br>Cless Sdiak<br>public:<br>Sdiakjatring diakneame, int numberefblecka, int blockaisel:<br>int getblockint blocknumber, atringa buffer;<br>int putblockfint blocknumber, atring buffer);<br>int getnumberofblocka eeser function<br>int getblockaise0 er function<br>privete<br>atring diakname<br>N file name of software-diak<br>int mumberofblocka; mumber of blocka on diak<br>int bleekaisn;<br>N block aize in bytea<br>An enplanatien ef the member funetiena fellewa:<br>Sdiakldakname, numberofblocka, blockaize<br>Thia coratruster incerperates the eation at the diak with the fermatng

Extracted text: IN C++ plecas implement adiak.coo end meinepo frem the below adiakh The firat pert ef thía prejest reguirea thet you implemente slesa that wilbe uacd te aimulate e dak drive. The diak drive wial heve numberatlocks many blecka where cech bleck hea biacksizumeny bytea. The interisse fer the eless Seak aheuld inslude: Cless Sdiak public: Sdiakjatring diakneame, int numberefblecka, int blockaisel: int getblockint blocknumber, atringa buffer; int putblockfint blocknumber, atring buffer); int getnumberofblocka eeser function int getblockaise0 er function privete atring diakname N file name of software-diak int mumberofblocka; mumber of blocka on diak int bleekaisn; N block aize in bytea An enplanatien ef the member funetiena fellewa: Sdiakldakname, numberofblocka, blockaize Thia coratruster incerperates the eation at the diak with the fermatng" of the devie. It seeola the imteser velues numberofbiocks, blocksine, atring diskname erd creates e Sdiaik (asftwere-siak The Sdiak ia a fle oi charstera which we will meniguiste 2se raw hard dak drive. The funstion will eheck ihe Fle diskriame eiata. he file ssiata, tia spensd and brestsd ca e Sdiak with numbinoblocks many blocka sf aizs blocksine. IF the fle desa not exiat, the funstion will ereats e fis seles diskname which sortsina numberoftiocks blocksizimeny cherectera. Thia file ia legiselly divided uo inte nuniberofblocks many blocia where coch bleck hes blocksize many chereciera. The test file wil hove the fellewing atrusture Bytea -leekaise- Bleck 0 Eytea sloskaiss-2"slociaiee Bleek ! Bytea 2sleckais: -3"elociaise- Eleek 2 Bytea 7-7 Bleek nuibenofblocksi getblock(blocknumber,buffer) rsirisiea block blocknumber fram the diak and aterea the date in the atring buffer.treturna an errer sedis ofiifauseeaful ane Oetherwiae. • putblock(blocknumberbufier) writea the atrina buffer te bleck hlockrmber. It eturma on errr code ef 1ifauaaful end O otherwiae IMPLEMENTATION GUIDELINES: It'a aentiel thet yeur sottwere aetiafiea the apecificetiena. Theas wil b= the enly funstiona in your ayakem) which pihyaicely ess the Sdiak. NOTEthet you muat elas write drivera te teat end demenatrate yeurpregrem
Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here