' 'Calculate the worth of the $5,000 5% bond after one year. LET FIRSTBOND = 5000 + 5000 * 0.05 'Calculate the worth of the $10,000 7% bond after one year. LET SECONDBOND = 10000 + 10000 * 0.07 'Add the two values together to calculate the total worth. LET TOTALWORTH = FIRSTBOND + SECONDBOND 'Print the answer. PRINT "Your bonds are worth:", TOTALWORTH END
Let us discuss a problem that is larger than the previous examples:
Design a program that will draw a house with a grass lawn and a tree.
Just consider the over-all plan for the program; don't worry about the details just now.
Make a plan for the program by listing the tasks that the program will perform.