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 17:40
Gabe wants to move text from one document to another document. he should copy the text, paste the text, and open the new document highlight the text, select the cut command, move to the new document, make sure the cursor is in the correct location, and select the paste command select the save as command, navigate to the new document, and click save highlight the text, open the new document, and press ctrl and v
Answers: 1
question
Computers and Technology, 24.06.2019 10:00
What did i do wrong with this const discord = require('discord.js'); var bot = new discord.client(); const token = 'ntm3mjcxmtu1mjg3ote2ntq2.dyogew.dpfiwfpuifzuzvifop-csuxasnm' const prefix = "! " bot.registry.registergroup('simple', 'simple'); bot.registry.registerdefaults(); bot.registry. + '/commands'); bot.on('message', message => { if(message.content == 'hi! ') { message.channel.send ('@everyone sup, how is @everyone day going'); } if(message.content == 'h3lp') { message.channel.send ('dose not have any commands yet'); } bot.on('ready', function() { console.log("ready") }); bot.login(token);
Answers: 1
question
Computers and Technology, 24.06.2019 14:00
Which describes careers that have similar education requirements but different qualifications? product safety engineers and materials engineers industrial safety engineers and industrial health engineers quality control systems managers and inspectors industrial safety and health engineers and hand packers
Answers: 3
question
Computers and Technology, 24.06.2019 16:50
Develop the program incrementally: a) start by reading and displaying each line of the input file to make sure you are reading the data set correctly. b) use the split string method to extract information from each line into a list. print the list to prove that this step is working correctly. d) convert the exam scores to type int and calculate the student’s average. display those items to prove this step is working correctly. e) create a tuple containing the six items for each student (name, exam scores, exam mean). display the tuples to prove this step is working correctly. (optionally, you may want to have the exam scores in a list so your tuple is (name, scores_list, f) append each tuple to a list. display the list to prove this step is working correctly. g) use the sort list method to re-order the tuples in the list. display the list to prove this step is working correctly. h) use a for statement to display the contents of the list as a table (with appropriate formatting). i) use a for statement to calculate the average of all scores on exam #1, then display the results. note that you could have calculated this average within the first loop, but we are explicitly requiring you to do this calculation by looping though your list of tuples. j) add the logic to calculate the average of all scores on exam #2, then display the results.
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.09.2020 08:01
question
History, 22.09.2020 08:01
question
Mathematics, 22.09.2020 08:01
question
Mathematics, 22.09.2020 08:01
question
Social Studies, 22.09.2020 08:01
question
Chemistry, 22.09.2020 08:01