participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 134,3,121930517.670518,Implement a function containsDuplicate that accepts a vector of integers and returns true if it contains a duplicate element, and false otherwise, containsDuplicate(vector vec),6,13634.6508312089,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 134,3,121994162.136774,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),8,3610.015611332215,60000 134,3,122057926.932393,Write the definition of a function isPositive, that receives an integer parameter and returns true if the parameter is positive, and false otherwise.,return val > 0;,2,3722.3673194115304,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 134,3,122123834.730603,Implement a function secondGreatest that accepts a vector of integers and returns the second greatest element in the vector,for(int i = 0; i < vec.size(); ),7,5875.645445520626,60000 134,3,122190807.667211,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.,~OffSwitch;,1,6950.784978956546,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 134,3,122254761.698507,Implement a function is_sorted that accepts a vector of integer values and returns true if it is non-decreasing, and false otherwise,for(int i = 0; i < vec.size(); ++),3,3927.0597207856154,60000 134,3,122319220.884535,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 >> val) cin,5,4430.592332750647,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 134,3,122383164.751731,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 (i,),4,3915.347957930917,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 134,3,122452131.094631,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 (model),0,8933.535802103006,60000