Functions PBR



some short videos on vi tips and copying files Vi
file commands
Pass By Reference Lecture Video Pass By Reference Lab Video
move to the proper directory cd ~/assignments/cmps2020/lab/lab02 copy over the files provided for you cp /home/fac/msarr/public_files/cmps2020/lab/lab02/* /home/stu/YOURUSERNAME/assignments/cmps2020/lab/lab02/ or ( note the . instead of the destination folder, it means "this directory") cp /home/fac/msarr/public_files/cmps2020/lab/lab02/* . for this lab you will create some PBR functions LOG THE BEGINNING AND END OF EVERY FUNCTION SmallerInt determine the smaller of two integer values passed in as parameters 1 and 2 store the result into a parameter 3 the return type must be void use pass by reference ONLY where needed parameters that do not need to change for the function to work should be pass by value or pass by const reference LargerInt determine the larger of two integer values passed in as parameters 1 and 2 store the result into a parameter 3 the return type must be void use pass by reference ONLY where needed parameters that do not need to change for the function to work should be pass by value or pass by const reference SwapInt swap the values of two int parameters passed in by reference the return type must be void Just modify the existing main1.cpp provided for you , you will add in your functions and test them. in "main.cpp" you will test call all your functions to make sure they work properly is is 100% your responsibility to make sure that the functions you write work properly your tests should print the test "fail" if the function is not operation properly TEST EACH FUNCTION AT LEAST 4 TIMES for example BAD TripleInt(3) calculates the value of 9 TripleInt(4) calculates the value of 12 TripleInt(-5) calculates the value of 15 GOOD TripleInt(3) PASS TripleInt(4) PASS TripleInt(-5) FAIL make sure your code compiles, you can test with the following make clean make ./runme1 run the example and make sure your logging is similar to the example once you are sure your code compiles, runs as expected and logs as expected you can have your lab graded for credit If you would like full credit Implement logging for the start and end ( at the very LEAST) on all your functions test each of your functions by calling them 4 times each with different values each time.