All the problems you have solved so far have been problems with a \textit{straight-line} logic pattern \ie\ you followed a sequence of steps (defining variables, performing calculations, displaying ...