Send the link below via email or IMCopy
Present to your audienceStart remote presentation
- Invited audience members will follow you as you navigate and present
- People invited to a presentation do not need a Prezi account
- This link expires 10 minutes after you close the presentation
- A maximum of 30 users can follow your presentation
- Learn more about this feature in our knowledge base article
Do you really want to delete this prezi?
Neither you, nor the coeditors you shared it with will be able to recover it again.
Make your likes visible on Facebook?
Connect your Facebook account to Prezi and let your likes appear on your timeline.
You can change this under Settings & Account at any time.
Data in the Algorithms
Transcript of Data in the Algorithms
constants.Only use letters (A-Z),
numbers (0-9) and the underscore (-) Example: area, age, cost_1, cost_2, name Variables A named unit of storage that can be changed to any specified value during the execution of a program. Constants is an identifier whose value never changes during the execution of the program Example: pi=3.1416 Numeric Logic String This type of variable stores numerical values, positive or negative. Example: Temperature = -8, Cost_1=15655 This type of variables can contain only a value True or False as a result of a comparison This type of variable stores alphanumeric characters (letters, numbers, and special characters) Examples:
LastName = ’Hernandez’
Adress = ‘H. Colegio Militar 2108, Col. Roma’
City = ‘Chihuahua’ Internal use Variables Work Variables Counters Cumulatives store the result of a mathematical operation
Sum = a + b /c Add a cumulative sum of a set of values given progressively.
Sum = Sum + Grade To count the number of times a process will be performed, usually the increment goes 1 by 1 Times = Times + 1 Operators Arithmetic Comparison Logical Statements Conditional
Statements Are the elements that allow us manipulate the values in a expression or between variables and constants. Used to write mathematical operations using variables and constants They compare two values and return a True or False value They establish relationships between logical values. Not = Negation
And = Both
Or = Either one Example: (20<50) and (60>15) Evaluates a given condition, if the condition is true then performs a specific action, otherwise do something else Example:if (temp <= 15) then
weather = 'Cold'
weather = 'warm' Algorithm