subject

Suppose we want to make a 10 item queue starting from location x4000. in class, we discussed using a head and a tail pointer to keep track of the beginning and end of the queue. in fact, we suggested that the head pointer could point to the first element that we would remove from the queue and the tail pointer could point the last element that we have added the queue. it turns out that our suggestion does not work. part a) what is wrong with our suggestion? (hint: how do we check if the queue is full? how do we check if it is empty? )part b) what simple change could be made to our queue to resolve this problem? part c) using your correction, write a few instructions that check if the queue is full. use r3 for the head pointer and r4 for the tail pointer. part d) using your correction, write a few instructions that check if the queue is empty. again, using r3 for the head pointer and r4 for the tail pointer.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 07:30
Events and conditions that happen within an organization that are somewhat easier to deal with when responding to change are called
Answers: 1
question
Computers and Technology, 22.06.2019 23:30
Which of the following is not a symptom of chronic fatigue syndrome
Answers: 2
question
Computers and Technology, 23.06.2019 00:00
Which is the correct sequence of steps to set up a document in landscape orientation? a. select page setup from the file menu. then click the margins tab and select landscape. b. select page setup from the edit menu. then click the margins tab and select landscape. c. select page setup from the insert menu. then click the margins tab and select landscape. d. select page setup from the format menu. then click the margins tab and select landscape
Answers: 1
question
Computers and Technology, 23.06.2019 09:00
Design a class tictactoe that: holds the following information about the game: two-dimensional array (3 by 3), and winner. add additional variables as needed. includes the functions to perform the various operations on objects. for example, function to print the board, getting the move, checking if move is valid, determining if there is a winner after each move. add additional operations as needed. includes constructor(s). write the functions of the class, and write a program that uses the class. the program should declare an object of type tictactoe. the program will create the board and store it in the array. the program will allow two players to play the tic-tac-toe game. after every valid move update the array, check if there is a winner. if there is no winner and no tie, then print the board again to continue.
Answers: 2
You know the right answer?
Suppose we want to make a 10 item queue starting from location x4000. in class, we discussed using a...
Questions
question
Mathematics, 22.07.2019 00:00
Questions on the website: 13722361