participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 143,3,94175796.991534,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.,if onOffSwitch == false{ onOffSwitch == true } else{ } ,1,17172.95461180705,60000 143,3,94241575.433858,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 arr){ for(int i = 0; i < arr.si) if(arr) },3,5746.592205210439,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 143,3,94307623.198288,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 < string.size(); i++){ s[i] },4,6021.337454130279,60000 143,3,94371740.953296,Implement a function secondGreatest that accepts a vector of integers and returns the second greatest element in the vector,int secondGreatest(vector arr){ for(int i = 0;) },7,4096.906504900849,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 143,3,94435311.054011,Write the definition of a function isPositive, that receives an integer parameter and returns true if the parameter is positive, and false otherwise.,bool isPositibe(int nu)P{ if nu > 0{ return true } else{ return false } },2,3539.43097189443,60000 143,3,94498632.02139,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,3286.5346800538687,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 143,3,94561777.271052,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 = 0; i < n; i++ cout MM },8,3115.880088549631,60000 143,3,94629075.256864,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 > 1998 and modelYear < 2003 if m,0,7271.131444947762,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 143,3,94693846.997249,Implement a function containsDuplicate that accepts a vector of integers and returns true if it contains a duplicate element, and false otherwise,bool containsDulicate{ for i = 0 i < },6,4749.232038505691,60000