participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 102,3,170450424.563439,Implement a function containsDuplicate that accepts a vector of integers and returns true if it contains a duplicate element, and false otherwise,bool containsDuplicate(vector v) { unordered_map m; for (int i : v) { if (m[i] == true) return true; else } },6,13949.698674781812,60000 102,3,170513855.366306,Write the definition of a function isPositive, that receives an integer parameter and returns true if the parameter is positive, and false otherwise.,bool isPositive(int x) { return x > 0; },2,3402.954093804229,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 102,3,170580511.99448,Implement a function is_sorted that accepts a vector of integer values and returns true if it is non-decreasing, and false otherwise,bool is_sorted(vector v) { for (int i = 1; i < v.size(); i++) if (v[i] -) },3,6636.910420180032,60000 102,3,170646317.546075,Implement a function countdown() that accepts an integer n as a parameter and counts down from n, printing each number to standard output, separated by a space. After reaching n, print "liftoff!",void countdown(int n) { for (; n >= 0; m) },8,5770.193738720885,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 102,3,170711160.250431,Write a statement that toggles the value of the bool variable onOffSwitch. That is, if onOffSwitch is false, itsvalue is changed to true; if onOffSwitch is true, its value is changed to false.,onOffSwitch = !onOffSwitch;,1,4815.513269899614,60000 102,3,170778738.173219,Implement a function secondGreatest that accepts a vector of integers and returns the second greatest element in the vector,int secondGreatest(vector v) { sort(v.begin(), v.end()); return v[v.size()-2] },7,7558.802681395305,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 102,3,170844053.516588,Given integer variables amount and total both initialized to 0, write a loop that reads in values for amount from standard in and adds them to total until total is greater than 100.,while (cin >> amount && total <= 100) total += amount;,5,5283.109459800008,60000 102,3,170908370.32362,Clunker Motors Inc. is recalling all vehicles in its Extravagant line from model years 1999-2002. Given an int variable modelYear and a string modelName, print "RECALL" if modelYear and modelName match the recal details,if (modelYear < 2003 && modelYear > 1998 && modelName == "Extravagent") cout << "Re",0,4284.691248391762,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 102,3,170971689.863781,Given a string, s, and an integer, x, update s such that its characters are shifted by x. Ex. s = "cd", x = 1. Loop results in s = "de",for (int i = 0; i < s.size(); i++) { s[i] += x; },4,3298.1264130263567,60000