- Athena Doc.docx
- 3BDD012504R0101.pdf
- 20061202 New Data Flow Testing
- crime/investigation/juvenile/delinquency/
- Introduction to C and Tokens of C
- New Microsoft Office Word Document
- subtitles about
- ROBT308Lecture22Spring16.pdf
- PLC Designer PLC Designer (R2-x) v3-2 En
- Unit4_Assignment (1).docx
- static methods.doc
- Transformer DAY 2
- Dates n Times
- Slide 04 - Variables and Constants
- MA1019
- Systems Approach to Problem Solving
- elementary teaching learning newsletter v 34 may 12
- In Search of Teaching Excellence - Tricks of the Trade
- math curriculum
- math18curr
- EdTech2 Notes - Prelims
- 1-s2.0-S1877042814053749-main
- 3BSE029193R101 - En Control Module - When and Why - Article
- Work Conference
- Why Brown
- Math 18 Curr
- math18curr
- ST Math and the Learning Path
- mathematics 1-8
- Matlab Basics Program
- Data Stucture Mcq
- 19-NumberSystems
- Vajiram & Ravi CSAT GS Test Series 2014 Test 1
- OOP_NOTES
- Computer Science Formulas
- Computer Science Formulas
- Cache Memory A
- 19-NumberSystems
- C and Data Structures - Balaguruswamy
- Chapter 1
- Stunning Success
- Unit v Question Bank
- Database by NODIA
- Emotional Freedom Techniques Powerpoint2 Nov 11
- Information Technology 27-5-13
- Fess 111
- A
- 10_MultiwayTrees
- Great Depression Arthat
- datastructurenotes-100627004340-phpapp01
- 02.ADT
- Array and Structures
- SYFile82
- Friend Functions
- Fess 109
- E
- Gess 105
- ADTs and Lists
- C
- B

Beginning Problem-Solving Concepts for the Computer

1

Contents • • • • • Constant and variables Data types Functions Operators Expressions and equations McManus COP1006 2 .

3 .3 Types of Problems that can be solved on computers : • Computational – problems involving some kind of mathematical processing • Logical – Problems involving relational or logical processing • Repetitive – Problems involving repeating a set of mathematical and/or logical instructions.

Fundamental Concepts • The building blocks of equations and expressions – Constants – Variables – Operators – Functions – Expressions – equations 4 .

constants can be named – Cannot be changed once given initial value • Example – SalesTaxRate = 6 5 .Constants • A value – a specific alphabetical and/or numeric value – Does not change during the processing of all the instructions in a solution • Can be of any data type • In some programming languages.

Variables • May change during processing • The variable name should be consistent with what the value of the variable represents • The name references the memory area where the value is stored. PayRate 6 .Age. • May be of any data type • Examples :. • The computer uses the name as a reference to help it find that value in its memory . Address. LastName.

7 .

it uses the value found at the memory location to do the processing. • The computer uses the variable name to find the location. . • The value is the contents of the location.Difference between name of a variable and value of a variable 8 • There will be no character.length limitations for variable . • The name of a variable is the label the computer uses to find the correct memory location.

McManus COP1006 9 .

The naming convention is uppercase for the first character in each of the words in the name. • • • • • • Do not use spaces Start a variable name with a letter. but one that clearly represents the variable. Be consistent when using upper-and lower case characters. Exact variable name must be used in all places where the data item is used . Do not use a dash ( or any other symbol that is used as mathematical operator). 10 . Use the naming convention specified by the company where you work. with no spaces between words in the name.Rules for Naming Variables • • Name variable according to what it represents Create as short a name as possible.

– Is printed in the form of reports. • Information – The output of processing of input .Data type • Data – unorganized facts. 11 . – They go into the computer as input .

McManus COP1006 12 .

Data Types • Data can come with different type :(Most common types) – Numeric – Character – Logical • Computer must be told the data type of each variable or constant . • Most languages include other data types – Date – User-defined 13 .

- Athena Doc.docxUploaded byGM Cachupin
- 3BDD012504R0101.pdfUploaded byLeal Eduardo
- 20061202 New Data Flow TestingUploaded byUmamageswari Kumaresan
- crime/investigation/juvenile/delinquency/Uploaded byapi-77180179
- Introduction to C and Tokens of CUploaded bySonu Yaduvanshi
- New Microsoft Office Word DocumentUploaded byManoj Kumar
- subtitles aboutUploaded byJay Riddle
- ROBT308Lecture22Spring16.pdfUploaded byrighthearted
- PLC Designer PLC Designer (R2-x) v3-2 EnUploaded byIvan Isaias Barona
- Unit4_Assignment (1).docxUploaded byChris Trimble
- static methods.docUploaded byLokesh Pawar
- Transformer DAY 2Uploaded byBhaskar Reddy
- Dates n TimesUploaded bykrishnareddy83
- Slide 04 - Variables and ConstantsUploaded byEffendyFooad
- MA1019Uploaded byIsrael
- Systems Approach to Problem SolvingUploaded byRick Mathieu
- elementary teaching learning newsletter v 34 may 12Uploaded byapi-320723676
- In Search of Teaching Excellence - Tricks of the TradeUploaded bykrenari
- math curriculumUploaded byapi-301141568
- math18currUploaded byapi-241273987
- EdTech2 Notes - PrelimsUploaded byJeypi Ceron
- 1-s2.0-S1877042814053749-mainUploaded byAbdul Yazid Nafii
- 3BSE029193R101 - En Control Module - When and Why - ArticleUploaded byRaj Chavan
- Work ConferenceUploaded byMae Bruzola
- Why BrownUploaded byJim Homer
- Math 18 CurrUploaded byChet Mehta
- math18currUploaded byMat Lek
- ST Math and the Learning PathUploaded byCeleste Wychopen
- mathematics 1-8Uploaded byapi-285393073
- Matlab Basics ProgramUploaded bytasneem06ft303

- Data Stucture McqUploaded byDilip Matolkar
- 19-NumberSystemsUploaded byDilip Matolkar
- Vajiram & Ravi CSAT GS Test Series 2014 Test 1Uploaded byDilip Matolkar
- OOP_NOTESUploaded byDilip Matolkar
- Computer Science FormulasUploaded byDilip Matolkar
- Computer Science FormulasUploaded byDilip Matolkar
- Cache Memory AUploaded byDilip Matolkar
- 19-NumberSystemsUploaded byDilip Matolkar
- C and Data Structures - BalaguruswamyUploaded byDilip Matolkar
- Chapter 1Uploaded byDilip Matolkar
- Stunning SuccessUploaded byDilip Matolkar
- Unit v Question BankUploaded byDilip Matolkar
- Database by NODIAUploaded byDilip Matolkar
- Emotional Freedom Techniques Powerpoint2 Nov 11Uploaded byDilip Matolkar
- Information Technology 27-5-13Uploaded byDilip Matolkar
- Fess 111Uploaded byDilip Matolkar
- AUploaded byDilip Matolkar
- 10_MultiwayTreesUploaded byDilip Matolkar
- Great Depression ArthatUploaded byDilip Matolkar
- datastructurenotes-100627004340-phpapp01Uploaded byDilip Matolkar
- 02.ADTUploaded byDilip Matolkar
- Array and StructuresUploaded byDilip Matolkar
- SYFile82Uploaded byDilip Matolkar
- Friend FunctionsUploaded byDilip Matolkar
- Fess 109Uploaded byDilip Matolkar
- EUploaded byDilip Matolkar
- Gess 105Uploaded byDilip Matolkar
- ADTs and ListsUploaded byDilip Matolkar
- CUploaded byDilip Matolkar
- BUploaded byDilip Matolkar