Question Detail

COS 102 concept of problem solving; lecture 1 week 2 Objective Question

Question

What is the main goal of 'PS Step 2: Formulate a Model' in the computer problem-solving process (page 21)?
Options
A To write the program code immediately.
B To define the computational or mathematical approach based on the input data.
Correct Answer
C To test the program with various datasets.
D To reproduce any bugs discovered in Step 1.
Correct Answer

Option B is the correct answer.

Detailed Explanation

Page 21, 'PS Step 2: Formulate a Model', shows an example where input data (integers or real numbers representing grade percentages) leads to a computational model (Average1 = (x₁ + x₂ + x₃ + ... + xₙ) / n). The purpose is to define the mathematical or computational approach.

Hint

Consider what happens in 'Formulate a Model' on page 21, particularly the example given.

Question Info