CSCI 103 - Spring 2024 Introduction to Programming

CS102 Fall 2020 Final - Function ID

Complete the main() function in the skeleton code by ONLY making (possibly multiple) calls to sr, sp (from the previous part) and the pr function below. main() should produce the output shown below.

Desired output:

 0  1  2  3  4 |  5  6  7  8  9 | 19 18 17 16 15 | 14 13 12 11 10 | 
 0  1  2  3  4  5  6  7  8  9 # 18 19 16 17 14 15 12 13 10 11 #

You may only add function calls to main(). You may NOT add loops, if, else if or else statements. You may NOT declare other variables, add other couts, or even add other assignment statements. Add function calls only!

The skeleton file can be downloaded with the link: funcid.cpp

(You may need to right-click and choose Save As or Save Target As to download the .cpp file or open it in your browser and save the file.).