Q1) Study the search program in chapter one (25 points) Q1a)Identify input and output construct. Input is line 7 which is "cin". Output is lines 6, 11, & 15 which is "cout" on page 13 bottom.
Q1b) Identify decision making portion of the program. Line 13 is a decision making part of the program where it says "end of if"
Q1c) Identify the loop (repetition) portion of the program. The searching part of the process is line 10 where it says if(strcmp(searchname, name) == 0).
Q1d) What is mysterious about this program? Some mysterious things are line 11 with the symbol (==) and the double slashes (//) and double arrows (<<).
Q1e) What is magical about this program? What is magical about programming is that one program can be used to perform many different tasks, like a search engine being able to be used for banking purposes. This search program was used for a different purpose.