participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 138,3,366641986.316202,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",steing upfate(syting s, j ) { fo },4,15892.280672346193,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 138,3,366709421.047886,Implement a function secondGreatest that accepts a vector of integers and returns the second greatest element in the vector,int secingGreatest(vectyorKinyL) P die (int i = 0k ),7,7404.762154237502,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 138,3,366774279.419124,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.,return !onOffswitch;,1,4831.947160521909,60000 138,3,366837343.938403,Write the definition of a function isPositive, that receives an integer parameter and returns true if the parameter is positive, and false otherwise.,if (input > 0) { retirn true; } ese return false;,2,3014.9814800577215,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 138,3,366902027.949069,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 ,5,4656.891511000399,60000 138,3,366965098.585207,Implement a function containsDuplicate that accepts a vector of integers and returns true if it contains a duplicate element, and false otherwise,fpt (omy o p 0; i < v,soce' ++o) of (w[]),6,3037.6617062827745,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 138,3,367029837.379613,Implement a function is_sorted that accepts a vector of integer values and returns true if it is non-decreasing, and false otherwise,for (i = 1; i K v,spce; ++i) {},3,4709.486557239482,60000 138,3,367096744.80834,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 (modelName == recal.name && modelYear,0,6887.739676182138,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 138,3,367161328.447762,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!",while (n > 0) { cout << n << " "; } ,8,4564.249082131886,60000