A. Introduction
Sequential execution is the default control structure. But if we have only sequential flow, programs will not be as powerful. The other two flow control structures give a program the capability of making decisions and automation.
B. Watch (slides)
C. Try
Think of an example of each of the three fundamental control structures, and draw a flow chart to illustrate the program flow.
int Years = 0;
double money = 2000;
while (true) {
if (Years < 20)
{money = money + money*0.05;
Years++;
}else{
System.out.println(money);
//i just used something simple with if statements