Week7,Students,Copy(2).cpp -(Globall Scope) 13 15 17 // ·use the -remove \", add
ID: 3590089 • Letter: W
Question
Week7,Students,Copy(2).cpp -(Globall Scope) 13 15 17 // ·use the -remove ", add. , and Q counter #include #include #include "stdafx.h" using namespace std; Eint main) 23 const int EMPTY_VALUE ; I/ This value designates nothing in an array posn. const int MAX SIZE 6; int i, q[MAX SIZE] int removePosn e; int addPosn·0; int num!tens1nQ·0; int menuoption1; int currNum; /I Size of the array /I the integer array // Holds the index of next posn to remove an item from. // Holds the index of next posn to add an item // Keeps count of number of items in the array (queue) 25 26 for (i 0; i menuoption if (nenuOption1) 47 printf Add" to Queue is under construction. In"); 11- - Hake sure queue is not full, before adding 11- Add item to the array (queue) // print out the array, to show the item was added 56 57 else if (menuOption -2) printf(""Renove" fro·Queue is under construction.in.); I-- Make sure there is an item to remove 11 - Remove the 1st item from the array // print out the array, to see the item was removed 65 100%Explanation / Answer
The code that has to be added in your above code is:
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.