participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 133,3,549157808.038676,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; } return s,4,14684.286844896244,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 133,3,549221167.882689,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){ if (x > 0){ return true; } return false; },2,3327.5203727395588,60000 133,3,549285893.745242,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(int i = n; n > 0; --n){ cout << n << " "; --n; } cout << "lift" },8,4699.274715705549,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 133,3,549352282.162086,Implement a function secondGreatest that accepts a vector of integers and returns the second greatest element in the vector,void secondGreatest(vector x ){ int index1; int index2; sort(x) },7,6363.17196837597,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 133,3,549416729.320588,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 x ){ sort (x); for (int i = 0; i < x.size()-1; ++i){ if x[i] == x] } },6,4416.967592779289,60000 133,3,549482993.776091,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.,int amount; while(amount <= 100){ int in; cin >> in; amount += in; },5,6237.286747534938,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 133,3,549547081.067555,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,4049.111673752378,60000 133,3,549610882.427909,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 x){ for(int i = 0; i < x.size(); ++x)} if (x[i] < x[i+1])}{ r } },3,3779.3620305467743,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 133,3,549678349.681022,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 > 1999 && modelYear < 2002){ if (modelName == "Extravagant"){ cout << "RECALL"; } },0,7443.018053669298,60000