Problem Solving with the Sequential Logic Structure. Chapter 5. Review. Recall that the: Algorithm: set of instructions telling the computer how to process a module in a solution. A flowchart: visual illustration of an algorithm. In this chapter you will learn how to:
Exit is used to end a subordinate module if there is no return value .
average = sum ( num1 , num2) / 2
module name ( list of parameters)
x x.End,Exit,or Return (variable )
The algorithm and flowchart to enter a name and age into computer and print it on the screen.
Notice that the algorithm instructions are numbered starting with the first instruction after the name of module
Amount = p * (1+I/M)^(N*M)