Quick Index
Introduction
Overview
A drill to learn and/or refresh on function and functional programming basics.
Objectives
- Get familiar with pseudocode
- Reinforce basic function know-how
Preparing
Before doing this drill, complete "Function Basics Drill A".
Requirements
The requirements for this drill are:
- This drill is like "Function Basics Drill A" except in this drill you will come up with your own functions
- Download "function-basics-drill-2.txt" (see "Provided Code")
- The provided file is a plain text file
- Complete problems 1 through 7 (problem 1 is done for you)
- Include a code comment with each problem describing what the function does
- At least three of your functions should have an array as input and manipulate it
- At least three of your functions should be multi-line functions
Deliverables
Your deliverables for this drill:
- function-basics-drill-2.txt
Provided Code
In this zip file you will find the starter file "function-basics-drill-2.txt":
Notes on Problems
- The term "write" will imply "write an algorithm in pseudocode"
- Some solutions are provided to help you get started -- see provided TXT file
- Pseudocode is unlike normal program code -- it does not need to be run -- however if desired (i.e., optionally) you can play and test it in the algorithm lab
- Functions may be generally written in simpler abbreviated (Arrow) function format (unless otherwise noted)
Submitting
- Create a ZIP file
- Be sure to create a ".zip" archive type and not other archive types
- Name your ZIP file in the usual way ("XX -- FirstName LastName.zip" where "XX" is the provided assignment/drill name (typically just two or three letters like "A1", "A99", or "D1", etc) and FirstName and LastName are your corresponding names in the school computer system). E.g., "A99 -- Suni Lee.zip"
- Add your entire assignment working directory (containing all your source files) into the ZIP file
- Do not nest .zip files -- do not put other .zip files into the ZIP archive file
- Your submit should be one ZIP file
- Submit ZIP file into the appropriate "Assignment" drop box
Chapter 801 FP
Function Basics Drill B