Professional Documents
Culture Documents
2 - The Problem-Solving Process
2 - The Problem-Solving Process
(CS110)
BESE-2
2 The Problem-Solving Process
Dr. Kashif Mahmood Rajpoot
Assistant Professor,
DoC, NUST-SEECS.
http://seecs.nust.edu.pk/faculty/kashif.html
kashif.rajpoot@seecs.edu.pk
Problem-solving
o
o
o
o
o
10
11
12
13
14
The name and data type are used to store the input in
computers memory while the program is executed.
15
Internal Memory
o
o
o
Internal Memory
o
o
o
o
o
17
Internal Memory
o
Named constant
19
20
21
Internal Memory
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Having declared the memory locations, let us focus on coding the algorithm
37
39
40
Treyson
Mobley
problem:
calculating
the tip
The program,
written so far,
can read the
input items
Importance of
prompt
41
42
43
45
o
o
47
48
o
o
o
o
static_cast
operator
explicitly
converts data
from one data
type to
another
firstNum: 5
secondNum: 2
50
51
Assignment Statement
o
52
Assignment Statement
53
54
55
56
57
58
o
o
IDE integrated
development
environment,
includes:
o
o
Editor
Compiler
Linker
Debugger
Visual C++
Dev C++
61
62
63
Abbreviates an
assignment
statement that
contains an
arithmetic
operator
Shorthand
notation
64
65
Reference to Book
o
66