ZOOTON a care facility for animals they call each animal as PET and keeps a records...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
ZOOTON a care facility for animals they call each animal as PET and keeps a records of them in a file. The File has r = 30,000 of those on habitats and it's a fixed length. Each record has the following fields: PET Name (30 bytes), PET ID (9 bytes), Speciesname (40 bytes), country (10 bytes), Birth_date (8 bytes), Gender (1 byte), noofoffsprings(8 bytes), medical condtion(100 bytes). An additional byte is used as a deletion marker. The file is stored on the disk whose parameters are given [ie.block size B = 512 bytes; interblock gap size G = 128 bytes; number of blocks per track = 20; number of tracks per surface = 400; a disk pack consists of 15 double- sided disks, seek time is 30msec, rotational delay=12.5] (a) Calculate the average record length R in bytes. (b) Calculate the number of blocks needed for the file. (c) Assume that the file is ordered by PETID; by doing a binary search, calculate the time it takes to search for a record given its PETID value. ZOOTON a care facility for animals they call each animal as PET and keeps a records of them in a file. The File has r = 30,000 of those on habitats and it's a fixed length. Each record has the following fields: PET Name (30 bytes), PET ID (9 bytes), Speciesname (40 bytes), country (10 bytes), Birth_date (8 bytes), Gender (1 byte), noofoffsprings(8 bytes), medical condtion(100 bytes). An additional byte is used as a deletion marker. The file is stored on the disk whose parameters are given [ie.block size B = 512 bytes; interblock gap size G = 128 bytes; number of blocks per track = 20; number of tracks per surface = 400; a disk pack consists of 15 double- sided disks, seek time is 30msec, rotational delay=12.5] (a) Calculate the average record length R in bytes. (b) Calculate the number of blocks needed for the file. (c) Assume that the file is ordered by PETID; by doing a binary search, calculate the time it takes to search for a record given its PETID value.
Expert Answer:
Answer rating: 100% (QA)
Solution a To calculate the average record length R in bytes we sum up the lengths of all the fields in a record and divide by the number of fields Record length 30 bytes PET Name 9 bytes PET ID 40 by... View the full answer
Related Book For
A Concise Introduction to Logic
ISBN: 978-1305958098
13th edition
Authors: Patrick J. Hurley, Lori Watson
Posted Date:
Students also viewed these computer network questions
-
Suppose you have a plate, with length of 1 mm. One end of the plate is exposed source of diffusing atoms with a concentration of atomic fraction equal to 1. The diffusivity is 0.01 mm2 /s. You wonder...
-
A file has r=20,000 STUDENT records of fixed-length. Each record has the following fields: NAME (30 bytes), SSN (9 bytes), ADDRESS (40 bytes), PHONE (9 bytes), BIRTHDATE (8 bytes), SEX (1 byte),...
-
A file has r = 20,000 STUDENT records of fixed length. Each record has the following fields: Name (30 bytes), Ssn (9 bytes), Address (40 bytes), PHONE (10 bytes), Birth_date (8 bytes), Sex (1 byte),...
-
Students will present a draft IMC strategy for a start-up company and be asked to analyze its potential effectiveness, identifying gaps and making recommendations for improvement of the strategy....
-
Selected ratios for Pitka Corporation are as follows: Instructions (a) Identify if the change in each value or ratio is an improvement or deterioration between (1) 2013 and 2014, and (2) 2014 and...
-
Preparing performance reports that contain data only about items that a specific organizational unit controls is an example of which of the following? a. flexible budget system c. closing the books...
-
Simpson Manufacturing Company has four operating divisions. During the first quarter of 2002, the company reported aggregate income from operations of $120,000 and the following divisional results....
-
Determine the investment portfolio composition for Kents eastern branch that would maximize the expected effective yield while satisfying the restriction imposed by the parent.
-
Sean Lee purchases $ 20,000 worth of supplies for his restaurant by making a $ 3, 000 down payment and amortizing the remaining cost with quarterly payments over the next 4 years. The interest rate...
-
Illustrate how fine-line inventory classification can be used with product and market segments. What are the benefits and considerations when classifying inventory by product, market, and...
-
In multicellular organisms, cells have to be able to communicate with other cells so they can work together to coordinate their activities for the benefit of the entire organism. One type of...
-
Why can't a visible limit order be pegged to or more aggressively than the same-side quote? (Consider, for example, a buy order pegged to the bid plus a penny).
-
$5,000 dollars was deposited for you in a savings account 50 years ago. The interest rate has been 4% APR compounded quarterly since he opened the account. How much is in the account today
-
Hello! Can you help me to solve these questions, please! I'd appreciated it! Thanks for your help! Question 1:Francis deposited $12,200 into an investment account earning 6% compounded monthly (j12)....
-
Should any single risk be excluded from the risk registry or risk evaluation system? Explain.
-
You have the following information about Acterna Corp; Cash Coverage Ratio=25; Days sales in receivables=19 and Interval Measure=32. Interpret each ratio ny explaining what it tells us about the...
-
choose ONE of the tests suggested by the professor and write a reflective essay based on the results you receive. Here are some of the aspects you might address in your essay: W...
-
Evaluate each logarithm to four decimal places. log 0.257
-
Create the following sound and cogent arguments: 1. A sound argument about musicians 2. A valid unsound argument about painters 3. An invalid argument about writers 4. A cogent argument relating to...
-
Use the quantifier negation rule together with the eighteen rules of inference to derive the conclusions of the following symbolized arguments. Do not use either conditional proof or indirect proof.
-
Alex, I heard your testimony in court earlier today. Tell me, why did you lie on the witness stand? Identify the fallacies of presumption, ambiguity, and illicit transference committed by the...
-
Prepare the operating budget, the financial budget, and the supporting schedules.
-
Distinguish between operating and financial budgets.
-
Follow the principal steps in preparing a master budget.
Study smarter with the SolutionInn App