Tuesday, 8 January 2013

Problem Solving, Variables vs Constants & Data Types

What is Problem Solving?

Problem solving is the act of generating a solution to any given problem using logic, reasoning and analytical skills.

Stages in problem solving.
  1. Define the problem
  2. Analyze the problem
  3. Propose and evaluate possible solutions
  4. Select and justify the optimal solution
  5. Implementation and review

Identifier, Constant vs Variable vs Literals

Identifier
The name used for identifying variables and/or constants. The names can be comprised of letters and numbers but not spaces. These name usually denotes/abbreviates the item of data being stored. There are two types of identifiers:
  1. Constant
  2. Variable

Constants vs Variables vs Literals

Constants
Location in memory where a fixed item of data is stored.
Variables
Location in memory where a item of data can be stored and can be changed.
Literals
These are constants that the item of data is written literally as itself (in worded form) rather that a value.

Data & Data Types

What is Data?
Data is facts and figures that can be mainly categorized as:
  • Text
  • Numerical
  • Alpha-numerical
What is Data Type
A classification/categorization of data in specific groups (string, character, integer,etc..)