Question: 4. Use a flowchart to specify an algorithm to read two integer values into variables val1 and val2 (5pts) a. respectively, and to do the
4. Use a flowchart to specify an algorithm to read two integer values into variables val1 and val2 (5pts) a. respectively, and to do the following: if the first value is greater than the second, add 5 to val1 and 10 to val2; otherwise, subtract 3 from vall and add 5 to val2. Regardless of the values read, multiply the new value of val1 by the new value of val2 and print the result. b. Write the C++ code segment that corresponds to the algorithm in question 5.a
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
