SlideShare una empresa de Scribd logo
1 de 21
Descargar para leer sin conexión
Computer Problem Solving
Concepts
Problem solving with computers
Computers use algorithmic solutions
• Program – set of instructions that make up solution to a problem
• Results – outcome of running the program
• Testing – Are the outcomes what you expected and correct
• Documentation – two types
– manual documentation – instructions telling users how to use the
program
Problem solving with computers involves several steps
Clearly define the problem.
• Analyse the problem and formulate a method to solve it (see also
.validation.).
• Describe the solution in the form of an algorithm.
• Draw a flowchart of the algorithm.
• Write the computer program.
• Compile and run the program (debugging).
• Test the program (debugging) (see also verification.).
• Interpretation of results.
Problem solving concepts for computers
• Constants
• Variables
• Operators
• Hierarchy of operations
• Data types
• Equations
• Functions
• Expressions
Variable: a named location in memory for
storing data.
• Variables are values that can change as
much as needed during the execution of a
program. Ex:city=“Mayaguez”
Constant:
• A variable whose value is determined when a program
description is written and doesn’t change from that value
during program execution.
• A constant is a value in a program, that stays the same
throughout the program's execution-numeric, alphabetical,
special symbols. Ex:PI=3.142857
Rules:
Constant cannot be changed after it is initially given a value
Names... Example
CANNOT start with a number 2i
CAN contain a number elsewhere h2o
CANNOT contain any arithmetic operators... r*s+t
CANNOT contain any other punctuation
marks...
#@x%£!!a
CAN contain or begin with an underscore _height_
CANNOT be a languaje keyword else
CANNOT contain a space im smart
CAN be of mixed cases XSquared
Rules:
O
U
T
P
U
T
InformationData
P
R
O
C
E
S
S
Data vs. Information
I
N
P
U
T
Unorganized facts Processed
meaningful
report
Data types and their data sets
Data type Dataset Examples
Numeric:integer All whole numbers 8765,-98
Numeric:Real All real
numbers(whole +
decimal)
3786.98,0.0087
Character(surrounded
by quotation marks)
All letters, numerals
and special symbols
“a”, ”A”, “=“,”5”, “$”
String(Surr. By quote
marks)
Combinations of more
than one character
“art”,”5678”,”01-345-
456778”
Logical True/false True, False
Operators
• Operators are symbols that indicate some kind of action is to be
performed.
• Data connectors within expressions and equations
• Tell the computer how to process the data
• What type of processing needs to be done
• OPERANDS- data that the operator connects and processes
• RESULTANT-answer of the operation.
• - Subtraction
• + Addition
• * Multiplication
• / Division
•  (returns the integer quotient of a division)
• Mod (Divides two numbers and returns only the remainder)
• ^ Power
3 – 2 =1
3 + 2 =5
6 / 3 =2
3 * 2 =6
14  4=3
2 ^ 2 =4
& The concatenate operator (eg. "A" &
"B" gives the result "AB")
Arithmetic Operators
String Operators
14/4=2
Relational Operators
• > Greater than
• < Less than
• >= Greater than or equal
• <= Less than or equal
• = Equal
• <>= Not Equal
Logical Operators
• AND
A && B: result is true iff A and B are true, false otherwise
• OR
A || B: result is false iff A and B are False, true otherwise
• NOT
NOT A: True if A is False
Hierarchy of operations
1. Functions
2. Power
3. Mod
4. *,/
5. +,-
6. =,<,>,<=,>=.<>
7. NOT
8. AND
9. OR
EXPRESSION:
• An expression is a code segment that can be evaluated to
produce a single value.
• Processes the data, the operands through the use of operators.
ex:A + B
EQUATIONS:
• stores the result of an expression in a memory location in the
computer through the = sign. Ex:C=A + B
EXPRESSIONS
Algebraic Computer program
Evaluating Expressions
Calculate the area of the
following figure
x
x
b
x/2
Evaluating Expressions
Area = x2 + x/2 * b
1
2
3
4
4 1: 42 = 16
16
4
3
2
2: 4/2 = 2
3: 2*3 = 6
4: 16 + 6 = 22
6
22
x = 4 and b = 3
Evaluating Expressions

Más contenido relacionado

La actualidad más candente

2016 ms excel_bm
2016 ms excel_bm2016 ms excel_bm
2016 ms excel_bmRajesh Math
 
using excel 2013 as a power user
using excel 2013 as a power userusing excel 2013 as a power user
using excel 2013 as a power userali abdolahi
 
Working smart with excel v2.0
Working smart with excel v2.0Working smart with excel v2.0
Working smart with excel v2.0Romy Cagampan
 
Basic Formulas - Excel 2013 Tutorial
Basic Formulas - Excel 2013 TutorialBasic Formulas - Excel 2013 Tutorial
Basic Formulas - Excel 2013 TutorialSpreadsheetTrainer
 
Excel 2010 training presentation figure out dates by using formulas in exce...
Excel 2010 training presentation   figure out dates by using formulas in exce...Excel 2010 training presentation   figure out dates by using formulas in exce...
Excel 2010 training presentation figure out dates by using formulas in exce...MFMinickiello
 
Data Analytics Using MS Excel
Data Analytics Using MS ExcelData Analytics Using MS Excel
Data Analytics Using MS ExcelRajesh Math
 
MS-EXCEL Assignment Help
MS-EXCEL Assignment HelpMS-EXCEL Assignment Help
MS-EXCEL Assignment HelpRahul Kataria
 
20 Unique Uses of Excel Spreadsheets
20 Unique Uses of Excel Spreadsheets20 Unique Uses of Excel Spreadsheets
20 Unique Uses of Excel SpreadsheetsNick Weisenberger
 
Module 5 entering data in worksheet
Module 5 entering data in worksheetModule 5 entering data in worksheet
Module 5 entering data in worksheetDr. Shalini Pandey
 
presentationMs excel
presentationMs excelpresentationMs excel
presentationMs excelTanveer Ahmed
 
Ms Excel Basic to Advance Tutorial
Ms Excel Basic to Advance TutorialMs Excel Basic to Advance Tutorial
Ms Excel Basic to Advance TutorialBikal Shrestha
 
Guia 1 periodo ii informatica grado 9
Guia 1 periodo ii informatica grado 9Guia 1 periodo ii informatica grado 9
Guia 1 periodo ii informatica grado 9cata1811
 
Skillshare - Creating Excel Dashboards
Skillshare - Creating Excel DashboardsSkillshare - Creating Excel Dashboards
Skillshare - Creating Excel DashboardsSchool of Data
 
Simple formulas excel
Simple formulas excelSimple formulas excel
Simple formulas excelMalika khalil
 
Cash flow using excel
Cash flow using excelCash flow using excel
Cash flow using excelMalika khalil
 

La actualidad más candente (20)

2016 ms excel_bm
2016 ms excel_bm2016 ms excel_bm
2016 ms excel_bm
 
using excel 2013 as a power user
using excel 2013 as a power userusing excel 2013 as a power user
using excel 2013 as a power user
 
Working smart with excel v2.0
Working smart with excel v2.0Working smart with excel v2.0
Working smart with excel v2.0
 
Ms excel
Ms excelMs excel
Ms excel
 
Basic Formulas - Excel 2013 Tutorial
Basic Formulas - Excel 2013 TutorialBasic Formulas - Excel 2013 Tutorial
Basic Formulas - Excel 2013 Tutorial
 
Excel 2010 training presentation figure out dates by using formulas in exce...
Excel 2010 training presentation   figure out dates by using formulas in exce...Excel 2010 training presentation   figure out dates by using formulas in exce...
Excel 2010 training presentation figure out dates by using formulas in exce...
 
Exel
ExelExel
Exel
 
Chapter.05
Chapter.05Chapter.05
Chapter.05
 
Data Analytics Using MS Excel
Data Analytics Using MS ExcelData Analytics Using MS Excel
Data Analytics Using MS Excel
 
Ms excel 2016_function
Ms excel 2016_functionMs excel 2016_function
Ms excel 2016_function
 
MS-EXCEL Assignment Help
MS-EXCEL Assignment HelpMS-EXCEL Assignment Help
MS-EXCEL Assignment Help
 
20 Unique Uses of Excel Spreadsheets
20 Unique Uses of Excel Spreadsheets20 Unique Uses of Excel Spreadsheets
20 Unique Uses of Excel Spreadsheets
 
Advanced Excel Demo
Advanced Excel DemoAdvanced Excel Demo
Advanced Excel Demo
 
Module 5 entering data in worksheet
Module 5 entering data in worksheetModule 5 entering data in worksheet
Module 5 entering data in worksheet
 
presentationMs excel
presentationMs excelpresentationMs excel
presentationMs excel
 
Ms Excel Basic to Advance Tutorial
Ms Excel Basic to Advance TutorialMs Excel Basic to Advance Tutorial
Ms Excel Basic to Advance Tutorial
 
Guia 1 periodo ii informatica grado 9
Guia 1 periodo ii informatica grado 9Guia 1 periodo ii informatica grado 9
Guia 1 periodo ii informatica grado 9
 
Skillshare - Creating Excel Dashboards
Skillshare - Creating Excel DashboardsSkillshare - Creating Excel Dashboards
Skillshare - Creating Excel Dashboards
 
Simple formulas excel
Simple formulas excelSimple formulas excel
Simple formulas excel
 
Cash flow using excel
Cash flow using excelCash flow using excel
Cash flow using excel
 

Destacado

Destacado (15)

Asignacion 1 para el 9 de febrero
Asignacion 1 para el 9 de febreroAsignacion 1 para el 9 de febrero
Asignacion 1 para el 9 de febrero
 
2 Datos-tema2
2 Datos-tema22 Datos-tema2
2 Datos-tema2
 
3 Conceptos progamacion-tema3
3 Conceptos progamacion-tema33 Conceptos progamacion-tema3
3 Conceptos progamacion-tema3
 
Uso basico de Excel 2013
Uso basico de Excel 2013 Uso basico de Excel 2013
Uso basico de Excel 2013
 
Interprete vs compilador
Interprete vs compiladorInterprete vs compilador
Interprete vs compilador
 
8 errores y depuracion-tema 8
8 errores y depuracion-tema 88 errores y depuracion-tema 8
8 errores y depuracion-tema 8
 
Macros y VBA tema 5
Macros y VBA tema 5Macros y VBA tema 5
Macros y VBA tema 5
 
4 Solving problem
4 Solving problem4 Solving problem
4 Solving problem
 
Asignacion 2
Asignacion 2Asignacion 2
Asignacion 2
 
Sistema Binario
Sistema BinarioSistema Binario
Sistema Binario
 
1 Introduccion-tema1
1 Introduccion-tema11 Introduccion-tema1
1 Introduccion-tema1
 
00 Prontuario inge 3016
00 Prontuario inge 301600 Prontuario inge 3016
00 Prontuario inge 3016
 
Diferentes formas input_output
Diferentes formas input_outputDiferentes formas input_output
Diferentes formas input_output
 
Areas por coordenadas
Areas por coordenadasAreas por coordenadas
Areas por coordenadas
 
Asignacion 3 algoritmos secuenciales
Asignacion 3 algoritmos secuencialesAsignacion 3 algoritmos secuenciales
Asignacion 3 algoritmos secuenciales
 

Similar a 5 conceptos progamacion2-tema4

Data structures & problem solving unit 1 ppt
Data structures & problem solving unit 1 pptData structures & problem solving unit 1 ppt
Data structures & problem solving unit 1 pptaviban
 
lec_4_data_structures_and_algorithm_analysis.ppt
lec_4_data_structures_and_algorithm_analysis.pptlec_4_data_structures_and_algorithm_analysis.ppt
lec_4_data_structures_and_algorithm_analysis.pptSourabhPal46
 
lec_4_data_structures_and_algorithm_analysis.ppt
lec_4_data_structures_and_algorithm_analysis.pptlec_4_data_structures_and_algorithm_analysis.ppt
lec_4_data_structures_and_algorithm_analysis.pptMard Geer
 
2 EPT 162 Lecture 2
2 EPT 162 Lecture 22 EPT 162 Lecture 2
2 EPT 162 Lecture 2Don Dooley
 
Basics of c++ Programming Language
Basics of c++ Programming LanguageBasics of c++ Programming Language
Basics of c++ Programming LanguageAhmad Idrees
 
Basic elements of java
Basic elements of java Basic elements of java
Basic elements of java Ahmad Idrees
 
Lec-ProblemSolving.pptx
Lec-ProblemSolving.pptxLec-ProblemSolving.pptx
Lec-ProblemSolving.pptxmiansaad18
 
Lecture 2 variables
Lecture 2 variablesLecture 2 variables
Lecture 2 variablesTony Apreku
 
Object oriented programming 8 basics of c++ programming
Object oriented programming 8 basics of c++ programmingObject oriented programming 8 basics of c++ programming
Object oriented programming 8 basics of c++ programmingVaibhav Khanna
 
Problem-solving and design 1.pptx
Problem-solving and design 1.pptxProblem-solving and design 1.pptx
Problem-solving and design 1.pptxTadiwaMawere
 
What is algorithm
What is algorithmWhat is algorithm
What is algorithmlilyMalar1
 
Programming in C by SONU KUMAR.pptx
Programming in C by SONU KUMAR.pptxProgramming in C by SONU KUMAR.pptx
Programming in C by SONU KUMAR.pptxSONU KUMAR
 
C programming language
C programming languageC programming language
C programming languageAbin Rimal
 
Unit 1 Introduction Part 3.pptx
Unit 1 Introduction Part 3.pptxUnit 1 Introduction Part 3.pptx
Unit 1 Introduction Part 3.pptxNishaRohit6
 

Similar a 5 conceptos progamacion2-tema4 (20)

Data structures & problem solving unit 1 ppt
Data structures & problem solving unit 1 pptData structures & problem solving unit 1 ppt
Data structures & problem solving unit 1 ppt
 
c-programming
c-programmingc-programming
c-programming
 
C++.pptx
C++.pptxC++.pptx
C++.pptx
 
Programming
ProgrammingProgramming
Programming
 
lec_4_data_structures_and_algorithm_analysis.ppt
lec_4_data_structures_and_algorithm_analysis.pptlec_4_data_structures_and_algorithm_analysis.ppt
lec_4_data_structures_and_algorithm_analysis.ppt
 
lec_4_data_structures_and_algorithm_analysis.ppt
lec_4_data_structures_and_algorithm_analysis.pptlec_4_data_structures_and_algorithm_analysis.ppt
lec_4_data_structures_and_algorithm_analysis.ppt
 
C program
C programC program
C program
 
2 EPT 162 Lecture 2
2 EPT 162 Lecture 22 EPT 162 Lecture 2
2 EPT 162 Lecture 2
 
Basics of c++ Programming Language
Basics of c++ Programming LanguageBasics of c++ Programming Language
Basics of c++ Programming Language
 
Basic elements of java
Basic elements of java Basic elements of java
Basic elements of java
 
8.unit-1-fds-2022-23.pptx
8.unit-1-fds-2022-23.pptx8.unit-1-fds-2022-23.pptx
8.unit-1-fds-2022-23.pptx
 
Lec-ProblemSolving.pptx
Lec-ProblemSolving.pptxLec-ProblemSolving.pptx
Lec-ProblemSolving.pptx
 
Lecture 2 variables
Lecture 2 variablesLecture 2 variables
Lecture 2 variables
 
Object oriented programming 8 basics of c++ programming
Object oriented programming 8 basics of c++ programmingObject oriented programming 8 basics of c++ programming
Object oriented programming 8 basics of c++ programming
 
Problem-solving and design 1.pptx
Problem-solving and design 1.pptxProblem-solving and design 1.pptx
Problem-solving and design 1.pptx
 
What is algorithm
What is algorithmWhat is algorithm
What is algorithm
 
Flowcharting and Algorithm
Flowcharting and Algorithm Flowcharting and Algorithm
Flowcharting and Algorithm
 
Programming in C by SONU KUMAR.pptx
Programming in C by SONU KUMAR.pptxProgramming in C by SONU KUMAR.pptx
Programming in C by SONU KUMAR.pptx
 
C programming language
C programming languageC programming language
C programming language
 
Unit 1 Introduction Part 3.pptx
Unit 1 Introduction Part 3.pptxUnit 1 Introduction Part 3.pptx
Unit 1 Introduction Part 3.pptx
 

Más de Elba Sepúlveda

Consideraciones sobre etica y plagio en tiempos de internet e sepulveda
Consideraciones sobre etica  y plagio en tiempos de internet e sepulvedaConsideraciones sobre etica  y plagio en tiempos de internet e sepulveda
Consideraciones sobre etica y plagio en tiempos de internet e sepulvedaElba Sepúlveda
 
Invitación a actos de graduación r2 deep clase 2017
Invitación a actos de graduación r2 deep clase 2017Invitación a actos de graduación r2 deep clase 2017
Invitación a actos de graduación r2 deep clase 2017Elba Sepúlveda
 
12 estructuras de repeticion2-tema12
12 estructuras de repeticion2-tema1212 estructuras de repeticion2-tema12
12 estructuras de repeticion2-tema12Elba Sepúlveda
 
11 estructuras de repeticion-tema11
11 estructuras de repeticion-tema1111 estructuras de repeticion-tema11
11 estructuras de repeticion-tema11Elba Sepúlveda
 
10 estructuras de seleccion select case i-tema10
10 estructuras de seleccion select case i-tema1010 estructuras de seleccion select case i-tema10
10 estructuras de seleccion select case i-tema10Elba Sepúlveda
 
9 estructuras de seleccion o de decision i-tema9
9 estructuras de seleccion o de decision i-tema99 estructuras de seleccion o de decision i-tema9
9 estructuras de seleccion o de decision i-tema9Elba Sepúlveda
 
Asignacion 4 algoritmos de seleccion
Asignacion 4 algoritmos de seleccionAsignacion 4 algoritmos de seleccion
Asignacion 4 algoritmos de seleccionElba Sepúlveda
 
Estructuras de seleccion o de decision i-tema9
Estructuras de seleccion o de decision i-tema9Estructuras de seleccion o de decision i-tema9
Estructuras de seleccion o de decision i-tema9Elba Sepúlveda
 
Metodologia de la investigacion
Metodologia de la investigacionMetodologia de la investigacion
Metodologia de la investigacionElba Sepúlveda
 
Procesadores de palabras
Procesadores de palabrasProcesadores de palabras
Procesadores de palabrasElba Sepúlveda
 
Repaso del movimiento de proyectiles
Repaso del movimiento de proyectilesRepaso del movimiento de proyectiles
Repaso del movimiento de proyectilesElba Sepúlveda
 
Discusion laboratorio proyectiles
Discusion laboratorio proyectilesDiscusion laboratorio proyectiles
Discusion laboratorio proyectilesElba Sepúlveda
 

Más de Elba Sepúlveda (16)

Consideraciones sobre etica y plagio en tiempos de internet e sepulveda
Consideraciones sobre etica  y plagio en tiempos de internet e sepulvedaConsideraciones sobre etica  y plagio en tiempos de internet e sepulveda
Consideraciones sobre etica y plagio en tiempos de internet e sepulveda
 
Invitación a actos de graduación r2 deep clase 2017
Invitación a actos de graduación r2 deep clase 2017Invitación a actos de graduación r2 deep clase 2017
Invitación a actos de graduación r2 deep clase 2017
 
12 estructuras de repeticion2-tema12
12 estructuras de repeticion2-tema1212 estructuras de repeticion2-tema12
12 estructuras de repeticion2-tema12
 
13 arreglos -tema13
13 arreglos -tema1313 arreglos -tema13
13 arreglos -tema13
 
11 estructuras de repeticion-tema11
11 estructuras de repeticion-tema1111 estructuras de repeticion-tema11
11 estructuras de repeticion-tema11
 
10 estructuras de seleccion select case i-tema10
10 estructuras de seleccion select case i-tema1010 estructuras de seleccion select case i-tema10
10 estructuras de seleccion select case i-tema10
 
9 estructuras de seleccion o de decision i-tema9
9 estructuras de seleccion o de decision i-tema99 estructuras de seleccion o de decision i-tema9
9 estructuras de seleccion o de decision i-tema9
 
Newsletter
NewsletterNewsletter
Newsletter
 
Asignacion 4 algoritmos de seleccion
Asignacion 4 algoritmos de seleccionAsignacion 4 algoritmos de seleccion
Asignacion 4 algoritmos de seleccion
 
Estructuras de seleccion o de decision i-tema9
Estructuras de seleccion o de decision i-tema9Estructuras de seleccion o de decision i-tema9
Estructuras de seleccion o de decision i-tema9
 
Categorias
CategoriasCategorias
Categorias
 
Metodologia de la investigacion
Metodologia de la investigacionMetodologia de la investigacion
Metodologia de la investigacion
 
Revision de literatura
Revision de literaturaRevision de literatura
Revision de literatura
 
Procesadores de palabras
Procesadores de palabrasProcesadores de palabras
Procesadores de palabras
 
Repaso del movimiento de proyectiles
Repaso del movimiento de proyectilesRepaso del movimiento de proyectiles
Repaso del movimiento de proyectiles
 
Discusion laboratorio proyectiles
Discusion laboratorio proyectilesDiscusion laboratorio proyectiles
Discusion laboratorio proyectiles
 

Último

Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 

Último (20)

Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 

5 conceptos progamacion2-tema4

  • 2. Problem solving with computers Computers use algorithmic solutions • Program – set of instructions that make up solution to a problem • Results – outcome of running the program • Testing – Are the outcomes what you expected and correct • Documentation – two types – manual documentation – instructions telling users how to use the program
  • 3. Problem solving with computers involves several steps Clearly define the problem. • Analyse the problem and formulate a method to solve it (see also .validation.). • Describe the solution in the form of an algorithm. • Draw a flowchart of the algorithm. • Write the computer program. • Compile and run the program (debugging). • Test the program (debugging) (see also verification.). • Interpretation of results.
  • 4. Problem solving concepts for computers • Constants • Variables • Operators • Hierarchy of operations • Data types • Equations • Functions • Expressions
  • 5. Variable: a named location in memory for storing data. • Variables are values that can change as much as needed during the execution of a program. Ex:city=“Mayaguez”
  • 6. Constant: • A variable whose value is determined when a program description is written and doesn’t change from that value during program execution. • A constant is a value in a program, that stays the same throughout the program's execution-numeric, alphabetical, special symbols. Ex:PI=3.142857 Rules: Constant cannot be changed after it is initially given a value
  • 7. Names... Example CANNOT start with a number 2i CAN contain a number elsewhere h2o CANNOT contain any arithmetic operators... r*s+t CANNOT contain any other punctuation marks... #@x%£!!a CAN contain or begin with an underscore _height_ CANNOT be a languaje keyword else CANNOT contain a space im smart CAN be of mixed cases XSquared Rules:
  • 9. Data types and their data sets Data type Dataset Examples Numeric:integer All whole numbers 8765,-98 Numeric:Real All real numbers(whole + decimal) 3786.98,0.0087 Character(surrounded by quotation marks) All letters, numerals and special symbols “a”, ”A”, “=“,”5”, “$” String(Surr. By quote marks) Combinations of more than one character “art”,”5678”,”01-345- 456778” Logical True/false True, False
  • 10. Operators • Operators are symbols that indicate some kind of action is to be performed. • Data connectors within expressions and equations • Tell the computer how to process the data • What type of processing needs to be done • OPERANDS- data that the operator connects and processes • RESULTANT-answer of the operation.
  • 11. • - Subtraction • + Addition • * Multiplication • / Division • (returns the integer quotient of a division) • Mod (Divides two numbers and returns only the remainder) • ^ Power 3 – 2 =1 3 + 2 =5 6 / 3 =2 3 * 2 =6 14 4=3 2 ^ 2 =4 & The concatenate operator (eg. "A" & "B" gives the result "AB") Arithmetic Operators String Operators 14/4=2
  • 12. Relational Operators • > Greater than • < Less than • >= Greater than or equal • <= Less than or equal • = Equal • <>= Not Equal
  • 13. Logical Operators • AND A && B: result is true iff A and B are true, false otherwise
  • 14. • OR A || B: result is false iff A and B are False, true otherwise
  • 15. • NOT NOT A: True if A is False
  • 16. Hierarchy of operations 1. Functions 2. Power 3. Mod 4. *,/ 5. +,- 6. =,<,>,<=,>=.<> 7. NOT 8. AND 9. OR
  • 17. EXPRESSION: • An expression is a code segment that can be evaluated to produce a single value. • Processes the data, the operands through the use of operators. ex:A + B EQUATIONS: • stores the result of an expression in a memory location in the computer through the = sign. Ex:C=A + B
  • 19. Evaluating Expressions Calculate the area of the following figure x x b x/2
  • 20. Evaluating Expressions Area = x2 + x/2 * b 1 2 3 4 4 1: 42 = 16 16 4 3 2 2: 4/2 = 2 3: 2*3 = 6 4: 16 + 6 = 22 6 22 x = 4 and b = 3