Question

Can i please get help with this question. I have attached my answers but whould like...

Can i please get help with this question. I have attached my answers but whould like to know it they are correct.
Assume that an integer requires 2 bytes of space and a reference requires 4 bytes of space. Also assume the maximum queue size is 200.
How much overhead space (in bytes) is needed, assuming a queue that holds ints, for:
The text's bounded array-based queue holding 20 elements? 
My Answer 840
The text's bounded array-based queue holding 100 elements?
 My Answer 1000
The text's bounded array-based queue holding 200 elements? 
My Answer 1200
The text's reference-based queue holding 20 elements? 
My Answer 80
The text's reference-based queue holding 100 elements? 
My Answer 400
The text's reference-based queue holding 200 elements? 
My Answer 800

For what size queue do the array-based and reference-based approaches use approximately the same amount of overhead space? 
My answer Queue of 200 elements

Thanks you so much.

0 0
Add a comment Improve this question Transcribed image text
Request Professional Answer

Request Answer!

We need at least 10 more requests to produce the answer.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the answer will be notified once they are available.
Know the answer?
Add Answer to:
Can i please get help with this question. I have attached my answers but whould like...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Similar Homework Help Questions
  • Hello! I have a problem in my code please I need help, I don't know How I can wright precondition, so I need help about assertion of pre_condition of peek. Java OOP Task is! Improve the circular a...

    Hello! I have a problem in my code please I need help, I don't know How I can wright precondition, so I need help about assertion of pre_condition of peek. Java OOP Task is! Improve the circular array implementation of the bounded queue by growing the elements array when the queue is full. Add assertions to check all preconditions of the methods of the bounded queue implementation. My code is! public class MessageQueue{ public MessageQueue(int capacity){ elements = new Message[capacity];...

  • check my answers for Networking I came up with these answers, can check my answers Question...

    check my answers for Networking I came up with these answers, can check my answers Question 1: General What data rate is needed to transmit an uncompressed 4" x 6" photograph every second with a resolution of 1200 dots per inch and 24 bits per dot (pixel)? 691,200 kb/s 28.8 kb/s 8.29 Mb/s 829 Mb/s Question 2: Layering "Layering" is commonly used in computer networks because (check all that apply): -It forces all network software to be written in ‘C’....

  • I need help with the following question. I can not get my answers to match for...

    I need help with the following question. I can not get my answers to match for the cost of goods sold on the question below Laker Company reported the following January purchases and sales data for its only product. Date Activities Units Acquired at Cost Units Sold at Retail Jan. 1 Beginning inventory 290 units @ $9.80 = $ 2,842 Jan. 10 Sales 160 units @$17.80 Jan. 20 Purchase 360 units @ $8.80 = 3,168 Jan. 25 Sales 285 units...

  • Please help! And please explain how to get answers so I can learn how to do...

    Please help! And please explain how to get answers so I can learn how to do it on future problems. Thanks in advance! I'll be sure to give a thumbs up. The following information applies to the questions displayed below.) Delph Company uses a job-order costing system and has two manufacturing departments-Molding and Fabrication. The company provided the following estimates at the beginning of the year: Molding Machine-hours 27,000 Fixed manufacturing overhead costs $ 700,000 Variable manufacturing overhead per machine-hour...

  • Can someone please help me with this one? i have no idea my answer is incorrect.thank...

    Can someone please help me with this one? i have no idea my answer is incorrect.thank you so much plaintiff is able to return to work. The jury has already decided in favor of the plaintiff. You are the foreperson of the jury and propose that the jury give the plaintiff an award to cover the following: (a) The present value of two years' back pay. The plaintiff's annual salary for the last two years would have been $35,000 and...

  • I really need help with my Confidence Intervals for the Mean homework, can someone please help?...

    I really need help with my Confidence Intervals for the Mean homework, can someone please help? 1. You measure 34 dogs' weights, and find they have a mean weight of 52 ounces. Assume the population standard deviation is 10.2 ounces. Based on this, construct a 99% confidence interval for the true population mean dog weight. Give your answers as decimals, to two places ________________ ± ______________ ounces 2. Assume that a sample is used to estimate a population mean μμ....

  • Can you please help me with the general entries for the listed accounts? I have attached...

    Can you please help me with the general entries for the listed accounts? I have attached Background information, and the questions for listed journal entries. 63% of the invoice reflects factory use and the other 37% reflects administrative activities. 20 The company declares and pays a cash dividend of $.65 per share. 22 The first note payment of $1,909 is made to the First Bank of Huntsville, which includes $750 in interest. (Interest = (180,000*.05)/12)) Employees are paid monthly on...

  • Can you help show how you get the answers for this? Check my work mode :...

    Can you help show how you get the answers for this? Check my work mode : This shows whet is correct or incorrect for the work you have completed so far. It does not indicate completion. Return to question 3 Kitchen Kings toledo plant mamutacturethree Procct nsel mot-tu product models are the Regufar (REG), the Advanced AD), and the Gourmet (GMT). Until recently, the plant used a ob-order product-costing system. with manufacturing overhead all mult-butnec cerarnc cookto plant's three applied...

  • I have updated my previously posted C++ question to ensure that I have included all of...

    I have updated my previously posted C++ question to ensure that I have included all of the necessary documentation in order to complete Part 2 - Bank Account of the assigned lab in its entirety. Please note that the lab below is somewhat lengthy, and I do not expect you to answer each question! If coding the full lab is too much to ask, please focus soley on Part 2 of the lab, titled Bank Account and the subsections that...

  • Please help with my car traffic simulator! Code that I already have below, I do not know how to...

    Please help with my car traffic simulator! Code that I already have below, I do not know how to start it off! public class IntersectionSimulation { private final static int EAST_WEST_GREEN_TIME = 30 ; private final static int[] NORTH_SOUTH_GREEN_TIMES = { 20, 24, 30, 42 } ; private final static int[] CAR_INTERSECTION_RATES = { 3, 5, 10 } ; private final static int[] CAR_QUEUEING_RATES = { 5, 10, 30 } ; private final static int[] EXPERIMENT_DURATIONS = { 3*60, 5*60,...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT