What are the values of queuefront and queuerear

Assignment Help C/C++ Programming
Reference no: EM13938105

1. Suppose that queue is a queueType object and the size of the array implementing queue is 100. Also suppose that the value of queueFront is 99 and the value of queueRear is 25.

a. What are the values of queueFront and queueRear after adding an element to queue?

b. What are the values of queueFront and queueRear after removing an element from queue?

2. Suppose that queue is implemented as an array with the special reserved slot. Also suppose that the value of queueFront is 74 and the value of queueRear is 99.

a. What are the values of queueFront and queueRear after adding an element to queue?

b. What are the value of queueFront and queueRear after removing an element from the queue? Also what was the position of the removal queue element?

Reference no: EM13938105

Questions Cloud

Calculate the fixed costs per month and the variable cost : Calculate the fixed costs per month and the variable cost per occupied room using the high low method.
Convertible bond-calculate your gain or loss : You own a convertible bond that has a 6% yield, 4.5% coupon rate, pays semiannually, and has 3 years to maturity. The conversion rate is 8. The current stock price is 127.3. Calculate your gain or loss if you decide to convert.
What price grinnell lake gift shop charge for carved bear : What price will Grinnell Lake Gift Shop charge for the carved bear candle? What price will Grinnell Lake Gift Shop charge for each scented votive candle?
Strategy and policy commission in our country : For the purposes of this TMA you should imagine that you are the director for strategy and policy commission in your country (Bahrain, Jordan, Lebanon, Oman, Saudi Arabia, Egypt or Sudan)
What are the values of queuefront and queuerear : What are the value of queueFront and queueRear after removing an element from the queue? Also what was the position of the removal queue element?
The types of interactive documentary : social media how it has been used in interactive documentary - give examples of other i-docs.How can social media be used to create an interactive documentary?
Why is no glucose produced if a plant is kept in the dark : Why is no glucose produced if a plant is kept in the dark, even though the sugar producing reactions are called light-independent reactions?
What is the role of the fe-s cluster in photosystem ii : What is the role of the Fe-S cluster in Photosystem II? Which of the following is NOT true about the light reactions of photosynthesis?
What price should you be willing to pay for the bond : Suppose a bond which makes annual coupon payments has a coupon rate of 10 percent and 5 years to maturity. You wish to purchase one of these bonds and you require an 11 percent return on your investment. What price should you be willing to pay for th..

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Describe the process replace a do...while loop with an equiv

Describe the process you would use to replace a do...while loop with an equivalent while loop. What problem occurs when you try to replace a while loop with an equivalent do...while loop? Suppose you have been told that you must remove a while loop a..

  One function shows the user how to use the program

Declare two functions One function shows the user how to use the program. Other function is use to calculate power and square root of variables.

  Conditional statementsquestion 1 write a program that

conditional statementsquestion 1 write a program that computes the cost of a long distance call. the cost of the call

  Perform ticket bookings for various flights

The development team of SoftSols Inc. analyzes the source code of the existing software and notes the following observations: The software contains a private class, named bookTickets, that contains the methods used to perform ticket bookings for va..

  Identify two key oo concepts and explain them as if you

1. discuss the advantages and disadvantages of both the structured and object-oriented oo paradigm in programming. why

  Variable of primitive type

What value is stored in ch by the following statement? ch = str.charAt(0); What value is stored in ch by the following statement? ch = str.charAt(10);

  Perpetual preferred stock

1) Johnson Corporation JUST PAID a dividend of $4.63.  The expected growth rate on dividends is 8 percent.  What is the current price of this stock if the required rate of return is 10 percent?

  Write c++ program to create a bar chart showing the average

Write a c++ program to create a bar chart showing the average monthly mean temperature for College Station from 2004 to 2013.

  Function that returns a token when it is needed.

A major component of your assignment will be to write a procedure (Function) that returns a token when it is needed. Your lexer should return a record, one field for the token and another field the actual "value" of the token (lexeme), i.e. the in..

  Ansi-c program complete assignment as per written in the

complete assignment as per written in the attached

  Write a driver program called testrationalnumber.cpp

Write a driver program called testRationalNumber.cpp to test each of the above functions and overloaded operators in the RationalNumber class.

  Write out the sorted array

Write complete specifications for this problem and design a modular solution. What classes and methods did you identify during the design of your solution?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd