Skip to main content

Defining the problem


  • Before spending time trying to solve a programming problem, it is essential that your first understand the problem to be solved.
    • read, read, read
    • ask questions
    • clarify anything you are not sure of
    • try writing the problem in your own words
    • produce an input processing output chart
  • Designing a solution
    • Once the problem is understood, the next step is to design a solution for the problem
    • This usually involves breaking the problem into smaller pieces and producing an algorithm for each piece.
    • An algorithm is a step by step process that needs to be followed in order to solve a problem.
  • Testing the design
    • Once the solution has been designed, it is important to check that the deigned solution actually solves the problem
    • This involves performing a desk check of each algorithm.
    • A desk check may involve using test input data and working through each algorithm using this test input.
  • Implementing the solution
  • Testing the solution
    • Once the solution has been written the new program needs to be tested
    • A bank of test input should be used to test every conceivable input into the program
    • The test result should be recorded and appropriately documented.
  • Documenting the solution
    • Of extreme importance is the proper documentation of program you produce
    • Program documentation may consist of source code comments user manuals, installation guides etc
    • Proper documentation is important because it assists other people in understanding and using your program.

Comments

Popular posts from this blog

A basic Arduino Solar PV Monitor

I have just recently had solar pv installed, mainly to future proof my energy costs, I do not expect it to be like drilling for oil in my back garden, however the return looks to be encouraging. The install gives you another single unit meter, from this you will see the total amount the panels produce, but that is about it. I wanted to know how much the production was as it was happening, I discovered the light blinks on the front of the meter will flash 1000 times for each kWh of electricity which passes through. The rate of the flashing of the LED tells you how much power is currently passing through the meter. [ ]

Build a Key Operated Gate Locking System Circuit

This simple key-operated gate locking system allows only those persons who know the preset code to open the gate. The code is to be entered from the keypad within the preset time to operate the motor fitted in the gate. If anyone trying to open the gate presses a wrong key in the keypad, the system is disabled and, at the same time, sounds an alarm to alert you of an unauthorized entry. Figs 1 and 2 show the block and circuit diagrams of the key-operated code locking system, respectively. Connect points A, B, C, D, E, F and ground of the circuit to the respective points of the keypad. Keys S7, S16, S14 and S3 are used here for code entry, and the remaining keys are used for disabling the system. It is very important to press the keys in that order to form the code. To start the motor of the gate, press switches S7, S16, S14 and S3 sequentially. If the keys are pressed in a different order from the preset order, the system will lock automatically and the motor will not start. Fig. 1: Bl...

Apple releases TV spot for new iPods

Apple has just released a fun commercial to showcase its new line of iPod players and the various colours they come in. The TV spot titled ‘Bounce’, has a bunch of colourful iPod touch, iPod nano and iPod shuffles er…bouncing to music. With all that colour and dancing and bouncing, you may forget that Apple’s latest gen line of iPods has some other awesome features. For instance, the fifth gen iPod touch comes with Siri, 4-inch retina display and an A5 chipset. Maybe the next ad will showcase some of these features with less bouncing.link