participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 142,3,110069485.902012,Implement a function containsDuplicate that accepts a vector of integers and returns true if it contains a duplicate element, and false otherwise,containsDuplicate(cectpr nums) unordered,6,16565.108766584388,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 142,3,110134622.013422,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) onOffSwitch - false; e;se,1,5104.136221017633,60000 142,3,110196995.835908,Write the definition of a function isPositive, that receives an integer parameter and returns true if the parameter is positive, and false otherwise.,bpp; isPositive(int x) if (x > 0 ) retirn true; return falsel,2,2346.318057987876,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 142,3,110262259.31275,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(cextor nums) for int i = 0; i < nums.size(); ,3,5241.116832305067,60000 142,3,110327756.854798,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),8,5468.001060381145,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 142,3,110392689.691973,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,void recall(string modelName, int modelYear) { if (modelName == "Ex") },0,4909.649009597599,60000 142,3,110458489.493229,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 >> amount && total + amoutn <),5,5777.223745568146,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 142,3,110525164.385617,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 =,4,6653.345045245043,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 142,3,110588123.409683,Implement a function secondGreatest that accepts a vector of integers and returns the second greatest element in the vector,int secpmdGreatest(vcptr