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....
-
How can you determine when it is appropriate to send an e-mail, a memo, or a letter?
-
A large firm is contemplating construction of a new manufacturing facility. The two leading locations are Toledo and Cincinnati. The new factory would have a supply capacity of 160 units per week....
-
What electronic information is discoverable?
-
Evgenia is a resident of California. She recently purchased two computers from an online retailer that did not charge California sales tax. The retailer happened to be offering a steep discount if...
-
Calculate CIF Port of Vancouver EXW BARCELONA 100 /Unit 144 units 14.400,00 Useful Information: 1 X PALLET 120X80X220 288KG For Vt Weight in Maritime shipping divide by 1000 Cost of shipping...
-
Trish's bookkeeper has provided the book-basis fixed asset roll forward to be used in computing the depreciation (see separate tab). For tax purposes, Trish elected out of bonus depreciation in all...
-
Need answers please Data mining is not used in data analysis. O True False Question 4 Sample and population data can be useful for assessing an organization's performance. O True O False D D Question...
-
Explore the use of high-performance materials such as ultra-high-performance concrete (UHPC) and advanced composites in structural engineering. How do these materials impact the design, construction,...
-
An astronaut with a mass of 84.9kg, finds herself 30.2m from her spaceship. The only way for her to return to the ship is to throw her 0.506kg wrench directly away from the ship. If she throws the...
-
In today's world, a lot of business- and marketing-related events occurs. Business students should follow what is going on out there to stay current and to prepare for the future. So, choose and read...
-
Cullumber Corp. is a calendar-year corporation whose financial statements for 2022 and 2023 included errors as follows: Year Ending Inventory Depreciation Expense 2022 $36300 overstated $29500...
-
At time t = 0 a grinding wheel has an angular velocity of 24.0 rad/s. It has a constant angular acceleration of 34.0 rad/s until a circuit breaker trips at time t = 2.20 s. From then on, the wheel...
-
Find the derivative of given equation Find the derivative of given equation Given Find: The value of derivative. : d [cos (tan (sin (cotx)))] dx.
-
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...
-
A simplified vibration analysis of an airplane considers bounce and pitch motions (Fig. 6.24(a)). For this, a model consisting of a rigid bar (corresponding to the body of the airplane) supported on...
-
Derive the equations of motion, using Newton's second law of motion, for each of the systems shown in Figs. 6.21. Pulley, mass M, mass moment of inertia Jo 3r 3m T x(1) F(t) 2k 000 T x2(1) m T X3(1)...
-
Derive the equations of motion, using Newton's second law of motion, for each of the systems shown in Figs. 6.22. M, cos wt G 15 G3 13 ka 03 4 kn 12 G k3 16 G6 G Number of teeth on gear G, n, (i = 1...
Study smarter with the SolutionInn App