Jump to content

Fundamentals of C Programming/Problem Analysis

From Wikibooks, open books for an open world

Back to Contents
Back to Introduction to C Programming



Problem Analysis

[edit | edit source]

If we are to use the computer as a problem-solving tool, then we must have a good analysis of the problem given. Here are some suggested steps on how to go about analyzing a certain problem for computer application:

1. Review the problem carefully and understand what you are asked to do.

2. Determine what information is given(input) and what result must be produced(output).

3. Assign names to each input and output items.

4. Determine the manner of processing that must be done on the input data to come up with the desired output(i.e., determine what formulas are needed to manipulate the given data).


Example

Given the scores for the two departmental quizzes, two machine projects, final exam, and teacher's evaluation, write a program that will compute for the final grade based on the following computation:


 50% Average of two departmental quizzes
+15% average of 2 machine projects 
+30% Final exam
+5%  Teacher's evaluation