Problem Solving Flashcards
What is a variable
A variable name is a name given to a container that stores data.
A Variable refers to a value (numeric or
non-numeric) that can change throughout the
course of a pseudocode depending on the
person, place, animal or thing under
consideration.
What is a constant?
A name given to a container whos value is known beforehand, it is fixed no matter what.
Rules for naming variables
No spaces Should not be pluralized Cant start with a symbol Cant begin with a number should not be too long Use underscore the bridge two short words
Types of Cell Addressing/References
Relative Addressing
Absolute Addressing
Mixed Addressing
What is relative addressing?
Relative addressing refers to when a formula with relative cell references is copied to another cell where the references changes based on a relative position of rows and columns. By default all references in excel or relative
What is absolute addressing/references
Absolute References refers to adding the dollar sign that fixes to a given cell so that it remains unchanged no matter where the formula moves. In other words using the dollar sign in cell references allows you to copy the formula in excel without changes references.
What is Mixed addressing/references
A mixed cell referencing in excel is a reference where either the column letter or row number is fixed for examples $A1, A$1
Examples of constants
Number of days in a week= 7
Number of months in a year= 12
Pi= 3.14
What is the decomposition of a problem?
This means to separate the parts of the problem that is classifies as input, output & processing.
IPO chart
An IPO chart is used to partition/separate a problem into its components.
What does IPO stand for?
Input
Output
Processing
What is algorithm
An algorithm is a set of instructions that if followed in sequence will lead to the solution for the problem
What is a pseudo code?
A pseudo code algorithm consists of sequence of instructions written in the authors language set out to solve a specific problem.
What is the purpose of the COUNTIF function?
The purpose of the of the COUNTIF function is to count the number of cells that meet a criterion
What are the two arguments?
Constant and Variable