Activity : Subroutines
There are two types of subprogram :
  • Subroutines
  • Functions

For each of the subprograms described below, decide if they are subroutines or functions...
Display a company logo at the top of the screen.
Find the first name in a list of job applicants.
Calculate the area of a carpet with a given length and width.
Draw a line of dashes on the screen at a given position.
Display a menu and request the user to make a selection
Move an animated graphic of a man from one screen position to another.
Check whether a user has entered their correct password

   Back