Examples of Problem Solving


Simple - Calculate the density of a solid cube given the length of one side in centimeters and the mass of the cube in grams.

Solving the problem
  1. Understanding - I am given the length of a side of a cube in centimeters and the mass of the cube in grams. These data will be input by the user.
  2. Density = mass/volume and I am not given the mass and volume only the mass so I can't solve directly.
  3. I haven't solved this problem before.
  4. I haven't solved anything like this.
  5. I must divide the problem into smaller parts. Checking the problem, I find that if I had the volume of the cube, then I could directly solve the problem. Therefore, one part is find the volume and the other part is find the density.
Solving the volume problem
  1. Understand the problem. Find the volume of a cube.
  2. I can get the volume directly since I'm given the length of a side.
Full Design for solving Density of a cube


Complex - Write a non-graphical version of minesweeper.