Below are sentences written with special discourse strategies. Identify the most accurate strategy used for each sentence.
Blog
Match the punctuation marks with their most common and prima…
Match the punctuation marks with their most common and primary use.
[Bonus 1 point] What concept, information, or skill from thi…
[Bonus 1 point] What concept, information, or skill from this class has been most helpful to you? And why?
Provide your answers based on the following functions….
Provide your answers based on the following functions. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 void mystery(int &x){ x += 1; } void mystery(int &x, int y){ y += 1; x = y * 2; } int main(){ int number = 1; mystery(number); cout
Consider the following recursive function: int enigma(int a…
Consider the following recursive function: int enigma(int a[], int start, int end) { if (start >= end) { return end;} int index=enigma(a,start+1,end); if (a[index] > a[start]){ return index;} else { return start; } } Given the above function enigma, what will be the output of the following snippet of code? int a[] = {46, 95, 14}; int mystery = enigma(a,0,2); cout
What value does the variable foo have at the end of this seg…
What value does the variable foo have at the end of this segment of code? priority_queue bar;bar.push(19);bar.push(31);bar.push(5);bar.push(22);int foo = bar.top();
What value is returned by the function call jolly(1)? 1…
What value is returned by the function call jolly(1)? 1 2 3 4 5 6 int jolly(int n){ if (n >= 3) return n * 2; else return (jolly(n+1) * n); }
What is the output in line 31 (marked as L31 on comments)?…
What is the output in line 31 (marked as L31 on comments)? [output31]
The following code segment will be used for the next 5 quest…
The following code segment will be used for the next 5 questions . The code in the class Bar is complete, and main () contains only a partially completed main method (in other words there are no additional functions in the class Bar, but there could be more code in the main method) . NOTE: be aware that some of these questions may have more than one correct answer listed – you should mark ALL that apply in these cases: class Bar : public Foo { private: int integer1; list list1; public: Bar() { integer1 = -1; } void enigma(int x) { list1.push_back(x); integer1 = integer1 + 1; } int mystery() { integer1=integer1-1; int val = list1.front(); list1.pop_front(); return val; } bool riddle() { return (integer1
Using the function template below, type a working function. …
Using the function template below, type a working function. Make sure your function conforms to the instructions given in the comments for the function. [Note: Include the function header in you answer, you don’t need to copy the comment section in your response] /*_____________ fooSolver(______________________)This method should take as parameters two Maps that contain the contact information of neighbors and must return a new map with the updated info of both maps.Each map stores a name (string) as a key and an email (string) as a value.Emails must not be duplicated in the resulting map. The information in map1 prevails if the same name exists in both maps (most recent), otherwise copy from map2 (oldest emails) the customer’s email that is missing.For example, if the Map1 (recent emails) contains:{{“John Adams”, “adams@postoffice.usa”}, {“Ben Franklin”, “ben@postoffice.usa”}}and Map2 (older emails ) contains:{{“Thomas Jefferson”, “box2@postoffice.usa”}, {“John Adams”, “box3@postoffice.usa”}, {“Ben Franklin”, ” box1@postoffice.usa”}} would cause the method to return the map:{{“John Adams”, “adams@postoffice.usa”}, {“Ben Franklin”, “ben@postoffice.usa”}, {“Thomas Jefferson”, “box2@postoffice.usa”}}Assume that names are correctly spelled, capitalized and emails are correctly entered without missing characters.The original Maps must NOT be changed by this method. */________________ fooSolver ( ______________________________________){}