participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 129,3,5400467.085923,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.,int input = 0; while (cin >> input) cin >> input total += input;,5,17833.968356637477,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 129,3,5467384.218843,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",s = s[0] + x) + s[1],4,6883.6470449924645,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 129,3,5530795.594441,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(){ for(int i = 0; i < arr.size(); i)) rfeturn b; },3,3377.2548942919443,60000 129,3,5594927.033247,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 a){ if(a > 0) return true; return false; },2,4094.3878302782755,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 129,3,5660200.637624,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 == recalName && modelYear == recalYear) print("RECALL"); ,0,5244.62256616315,60000 129,3,5725826.108269,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){ while(n > 0) cout << n << " "; cout << "liftoff!"; },8,5600.25975336054,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 129,3,5789430.710187,Implement a function containsDuplicate that accepts a vector of integers and returns true if it contains a duplicate element, and false otherwise,bool containsDuplicate(int* i){ for(int a = 0; a < i.size(); a++) for() if(i[a] ==) },6,3573.5777702242663,60000 129,3,5853761.357343,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(onOfSwitch == false) onOffSwitch = true; else onOffSwitch = false;,1,4298.532866948858,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 129,3,5917875.482019,Implement a function secondGreatest that accepts a vector of integers and returns the second greatest element in the vector,int secondGreatest(int* in){ int greatest = in[0]; int secGreat = in[0]; for(int i = =) },7,4093.748917103027,60000