participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 141,3,384847548.859971,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 &vec) { for (int i = 0; i < vec.size()) o },3,12795.18621665845,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 141,3,384910395.079907,Implement a function secondGreatest that accepts a vector of integers and returns the second greatest element in the vector,int secGreat(vector vec){ int max, sec; max = vec[0] },7,2818.8907798427085,60000 141,3,384977510.349415,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,bool recall(int modelYear, string modelNam) if (modelYear ),0,7080.704851376767,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 141,3,385044461.886985,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 num ) return num > 0; ,2,6932.461391061132,60000 141,3,385108868.78913,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; n > 0; n--) cout << "n" << " "; ,8,4387.428883068467,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 141,3,385171661.366102,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",void shift(string &s) for (i = 0; i < s.size(); i++),4,2771.6579257946646,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 141,3,385237943.553989,Implement a function containsDuplicate that accepts a vector of integers and returns true if it contains a duplicate element, and false otherwise,bool containDuplicate(vector vec) for (int i = 0; i < vec.size; i++) for ( int j = i + 1; j < vec.),6,6249.036742361548,60000 141,3,385304904.163735,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.,vpid onOffSwitch(bool &n) n = !n; },1,6920.740231721656,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 141,3,385369965.276498,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 (total <= 100) cin >> amount; total += amount; },5,5043.892978114607,60000