problem_solv

# problem_solv - Programming Problem Solving and Program...

This preview shows pages 1–5. Sign up to view the full content.

Problem Solving and Program Design Programming

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

View Full Document
ndamentals I : Problem Solving and Program Design/Slide 2 Problem Solving Process Define and analyze the problem. Develop a solution. Write down the solution steps in detail. Test the solution and revise if necessary. Document and maintain the solution.
ndamentals I : Problem Solving and Program Design/Slide 3 Programming as a Problem Solving Process Define and analyze the problem. What is the input & output? What other information is necessary? Develop an algorithm. What steps must be done? Implement a program. Compile , test , and debug the program. Document and maintain the program.

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

View Full Document
ndamentals I : Problem Solving and Program Design/Slide 4 Example Problem Statement Given a collection of nickels (US 5-cent coins) and pennies (US 1-cent coins), find the equivalent number of Hong Kong dollars and 10-cent coins. Problem Analysis Input: – nickels (integer) - number of US nickels – pennies (integer) - number of US pennies Output: dollars (integer) - number of HK dollar coins to return houji (integer) - number of HK 10-cent coins to return
This is the end of the preview. Sign up to access the rest of the document.

## This note was uploaded on 09/30/2010 for the course COMP COMP102 taught by Professor Lrr during the Fall '09 term at HKUST.

### Page1 / 13

problem_solv - Programming Problem Solving and Program...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online