ENGINEERING TOOLSNAME:_______________________TEST 2Spring 2008Complete all questions. Partial credit may be given. You should put your answers to questions 1-21 on this paper. Attach the required information for questions 22 and 23 to this test paper. Most questions carry equal weight.1.a. What is our definition of an algorithm?An algorithm is just a set of step by step instructions to accomplish a task.b. What tool do we use to document our algorithm (it’s a series of arrows and geometric shapes)? The tools that you use to document the algorithm is called a flow chart.2. We have 5 steps in our programming process. In which step do we finally begin work on the computer using C++ - it’s the step where we actually start typing in our code.Step number 3. 3. What three things do we do in the first step of the programming process (this step is called defining the problem – what I’m asking here is: what are the three things we must write down in this step)?The first thing we must do is understand what we are supposed to be accomplishing. You need to develop a written problem statement, a list of data input, and output. 4. List the two types of errors we can have in our programs and give a brief description of each error type.Syntax errors are thins in code that compiler cannot understand. Runtime errors are errors we find when we execute the program.5. What is our definition of a C++ variable.A variable is defined as a named memory location.

This
preview
has intentionally blurred sections.
Sign up to view the full version.