participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 151,3,104156557.195638,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) { },5,15446.964787236619,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 151,3,104222587.414013,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 == false) { itsvalue = true; } else { itsvalu },1,6003.584857051354,60000 151,3,104285624.45029,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 vec) for (int i = 0; i >),6,3013.0333018325928,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 151,3,104350024.171981,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 hi) if (hi quotient button 2 == 0) ,2,4354.887674223053,60000 151,3,104414919.97926,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 ,0,4869.324507136044,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 151,3,104480779.892959,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 (i = n;i > -),8,5831.2136557998365,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 151,3,104545159.113506,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(int a) bool now = false; if (a[]),3,4355.364336465814,60000 151,3,104610866.317134,Implement a function secondGreatest that accepts a vector of integers and returns the second greatest element in the vector,int secondGreatest(int a) a.sort(); return (a[a.length()]),7,5681.545659171098,60000 participant-id,category,timestamp,prompt,answer,stimulus-id,previous-delay,stimulus_time 151,3,104676339.137908,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 = 0; i < s.length; iplusplus_,4,5444.081221083585,60000