participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 105,3,18168831.300778,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 to+tal += ampo+unt if to+tal > 100 go+to+ end end: ,5,15363.74830733008,60000 105,3,18231878.148773,Implement a function is_sorted that accepts a vector of integer values and returns true if it is non-decreasing, and false otherwise, fo+r (io+nt i = }},3,3014.664428899721,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 105,3,18295697.93445,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 (mo+delyear == 1999 or mo+del year==2000 o+r mo+del year == 2001) co+ut recal l ,0,3785.090955477842,60000 105,3,18361173.387045,Implement a function secondGreatest that accepts a vector of integers and returns the second greatest element in the vector,int greatest_idx = 0 int secodgreatest_idx = 0 fo+r (int i = 0l ),7,5441.781254710447,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 105,3,18427701.079547,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 auto i:s i++ i++,4,6508.894471386382,60000 105,3,18493827.611385,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.,o+nio+ffswio+tch = (io+nnio+ffswtio+ch)? fakl se: true; ,1,6101.234960908414,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 105,3,18559378.986023,Implement a function containsDuplicate that accepts a vector of integers and returns true if it contains a duplicate element, and false otherwise,fio+r(int i = 0; i < vec.size();++i) fpr same thing in j check ig theres a,6,5518.873478907686,60000 105,3,18624941.816671,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!",vo+id co+untdo+wn(n) fo+r i =n; i >0; i-- co+ut i " ",8,5539.208770992242,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 105,3,18688699.062157,Write the definition of a function isPositive, that receives an integer parameter and returns true if the parameter is positive, and false otherwise.,bo+o+kl ispo+sitive(n){ return (n>0) ,2,3726.503371387194,60000