participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 125,3,1112148321.25134,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 = n; i >= 0; ) },8,13281.462595288234,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 125,3,1112211342.342997,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* d = s; for,4,2982.5799078473888,60000 125,3,1112277434.833858,Write the definition of a function isPositive, that receives an integer parameter and returns true if the parameter is positive, and false otherwise.,bool isPositive(int c){ if (c > 0) return true; return false; },2,6067.767717955754,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 125,3,1112344528.956225,Implement a function secondGreatest that accepts a vector of integers and returns the second greatest element in the vector,int secondGreatest(vector ints){ sort(ints.begin(), ints.end()); return ints[ints.lengt] },7,7066.865663951887,60000 125,3,1112409894.557804,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 ){ total += amount },5,5326.3205940130365,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 125,3,1112476846.88713,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; else{ onOffSwitch = true; },1,6928.946714649509,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 125,3,1112543424.393727,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 == "Extravagant" && modelYear >= 1999 && modelYear <= 2002) coud << "RECALL";,0,6552.467459372125,60000 125,3,1112606681.715107,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(vectorints){ for(int i = 1; i < ints.length(); ++i) },3,3228.3414837216565,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 125,3,1112670270.280204,Implement a function containsDuplicate that accepts a vector of integers and returns true if it contains a duplicate element, and false otherwise,bool containsDuplicate(vector ints){ for(int i = 0; i < ints.size(); ++i){ for(int j -) } },6,3565.247863200413,60000