problem_solv

problem_solv - Programming Problem Solving and Program...

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

View Full Document Right Arrow Icon
Problem Solving and Program Design Programming
Background image of page 1

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

View Full DocumentRight Arrow Icon
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.
Background image of page 2
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.
Background image of page 3

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

View Full DocumentRight Arrow Icon
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
Background image of page 4
Image of page 5
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 Right Arrow Icon
Ask a homework question - tutors are online