participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 112,3,168713191.300106,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 == true onOffswitch = false; else onOffswitch = true;,1,16293.383902689548,60000 112,3,168775643.026905,Implement a function secondGreatest that accepts a vector of integers and returns the second greatest element in the vector,int secondGreatest (vectoroM 0 return true; return false; ),2,3962.204128654165,60000 112,3,168903277.044536,Implement a function containsDuplicate that accepts a vector of integers and returns true if it contains a duplicate element, and false otherwise,bool containsDuplication(vectorm,int nums)) for(int i = 0; i < nums.size(); i__)P ,6,3607.2674742371505,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 112,3,168968286.415568,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",char temp; for(int i = 0; i < s.length()),4,4983.031626513147,60000 112,3,169033199.589471,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(vectorMint> nums){ for()int i =0; i < nums.size() - 1; i++){ if()nums() } },3,4886.511743471286,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 112,3,169099715.155193,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 contdown(int n)P while()n >= 0){ cout << n << "\n"; n--'' },8,6496.347168797936,60000 112,3,169166765.982479,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 ^^ modealYear <= 2012),0,7021.4328998992705,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 112,3,169232108.328508,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 >> amound && total <= 100){ total +- amount; },5,5318.841140571505,60000