0% found this document useful (0 votes)
41 views103 pages

Trace Table Testing Pseucode

The document contains data about customers including their IDs, names, vehicle types and makes. It defines variables and performs calculations on the data.

Uploaded by

Matthew Manning
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views103 pages

Trace Table Testing Pseucode

The document contains data about customers including their IDs, names, vehicle types and makes. It defines variables and performs calculations on the data.

Uploaded by

Matthew Manning
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 103

Lines i_d[y]

38 MM3443
39
40
61
63
65
68
53
77
42
68
69
71
87
92
93
114

Lines i_d[y]
38 AS2222
39
40
61
51
77
42
61
69
71
87
92
93
114

Lines i_d[y]
38 CJ4444
39
40
61
63
65
49
77
42
65
69
71
93
92

114

Lines i_d[y]
38 TW2345
39
40
61
63
65
49
77
42
65
69
71
93
92

114

Lines i_d[y]
38 MT0001
39
40
61
63
65
68
53
77
42
68
69
71
87
92
93
114

Lines i_d[y]
38 MN5467
39
40
61
63
52
77
42
63
69
71
87
92
93
114

Lines i_d[y]
38 KF6789
39
40
61
63
52
82
42
63
69
71
87
92
96
100
104
108
109
114

Lines i_d[y]
38 DS2089
39
40
61
63
52
82
42
63
69
71
87
92
96
100
104
108
109
114

Lines i_d[y]
38 AL1456
39
40
61
63
52
82
42
63
69
71
87
92
96
100
104
108
109
114

Lines i_d[y]
38 KH2309
39
40
61
63
52
82
42
63
69
71
87
92
96
100
104
108
109
114
Lines y

152 1
153 1
160 1
163 1
166 1
169 1
170 1
172 1
173 1
174 1
191 1
197 1
198 1
199 1
200 1
201 1

Lines Option
220 1
222 1
224 1
248 1
250 1
252 1
255 1
240 1
275 1
280 1
265 1
227 1
255 1
257 1
259 1
281 1
302 1

Lines Option
220 2
222 2
224 2
248 2
250 2
252 2
255 2
240 2
275 2
280 2
265 2
227 2
255 2
257 2
259 2
281 2
302 2
Lines Option
220 3
222 3
224 3
248 3
250 3
252 3
255 3
240 3
275 3
280 3
265 3
227 3
255 3
257 3
259 3
281 3
302 3
frst_name[y]

Matthew

frst_name[y]

Arnold

frst_name[y]
Cammy

frst_name[y]

Tommy

frst_name[y]

Marie
frst_name[y]

Mitchell

frst_name[y]

Kerry
frst_name[y]

Deloris

frst_name[y]

Andy
frst_name[y]

Kim
num_cus

10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10

i_d[y]
MM3443
i_d[y]
MM3443

Lines
337
339
341
345
347
350
352
355
357

i_d[y]
MM3443
lst_name[y]

Manning

lst_name[y]

Smith

lst_name[y]
Jackson

lst_name[y]

Wingly

lst_name[y]

Thomas
lst_name[y]

Nelson

lst_name[y]

Fingly
lst_name[y]

Shakespeare

lst_name[y]

Longly
lst_name[y]

Hines
OUTPUT INFOR
y<=num_cus

1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1

frst_name[y]

Matthew
frst_name[y]

Matthew

Option
2
2
2
2
2
2
2
2
2

OUTPUT INFORMATION SAMPLE FOR THE FIRST


Lines
367
368
369
370
371
372
373
374

frst_name[y]

Matthew
Condition

(t_ype[y] = 'sed1') is False


(t_ype[y] = 'Conver1') is False
(t_ype[y]='suv1') is False
(t_ype[y]='Hatch1') is True

(m_ake[y] = "Nissan") is False


(m_ake[y]= "Audi") is True

Condition

(t_ype[y] = 'sed1') is True

(m_ake[y] = "n2")
(m_ake[y]= "a1")

Condition
(t_ype[y] = 'sed1') is False
(t_ype[y] = 'Conver1') is False
(t_ype[y]='suv1') is True

(m_ake[y] = "n2")
(m_ake[y]= "a1")

Condition

(t_ype[y] = 'sed1') is False


(t_ype[y] = 'Conver1') is False
(t_ype[y]='suv1') is True

(m_ake[y] = "n2")
(m_ake[y]= "a1")

Condition

(t_ype[y] = 'sed1') is False


(t_ype[y] = 'Conver1') is False
(t_ype[y]='suv1') is False
(t_ype[y]='Hatch1') is True

(m_ake[y] = "Nissan") is False


(m_ake[y]= "Audi") is True

Condition

(t_ype[y] = 'sed1') is False


(t_ype[y] = 'Conver1') is True

(m_ake[y] = "n2") is False


(m_ake[y]= "a1") is True

Condition

(t_ype[y] = 'sed1') is False


(t_ype[y] = 'Conver1') is True
(m_ake[y] = "n2") is False
(m_ake[y]= "a1") is False
(m_ake[y] = "m4") is False
(m_ake[y]= "s8") is False
(m_ake[y]= "t6") is False
(m_ake[y]= "bm10") is True

Condition

(t_ype[y] = 'sed1') is False


(t_ype[y] = 'Conver1') is True

(m_ake[y] = "n2") is False


(m_ake[y]= "a1") is False
(m_ake[y] = "m4") is False
(m_ake[y]= "s8") is False
(m_ake[y]= "t6") is False
(m_ake[y]= "bm10") is True

Condition

(t_ype[y] = 'sed1') is False


(t_ype[y] = 'Conver1') is True
(m_ake[y] = "n2") is False
(m_ake[y]= "a1") is False
(m_ake[y] = "m4") is False
(m_ake[y]= "s8") is False
(m_ake[y]= "t6") is False
(m_ake[y]= "bm10") is True

Condition

(t_ype[y] = 'sed1') is False


(t_ype[y] = 'Conver1') is True

(m_ake[y] = "n2") is False


(m_ake[y]= "a1") is False
(m_ake[y] = "m4") is False
(m_ake[y]= "s8") is False
(m_ake[y]= "t6") is False
(m_ake[y]= "bm10") is True
OUTPUT INFORMATION FOR THE FIRST CUS
Condition

(t_ype[y]='suv1') is False
(t_ype[y] ='sed1') is False
(t_ype[y] ='Conver1') is False
(t_ype[y] ='Hatch1') is True

(m_ake[y] ='a1') is True

lst_name[y]

Manning
lst_name[y]

Manning

Condition

searchnaaame= lst_name[searchcnt]

searchnaaame= frst_name[searchcnt]

searchnaaame= i_d[searchcnt]
OUTPUT INFORMATION SAMPLE FOR THE FIRST CUSTOMER SHOWING THE CLIENT I
Option
2
2
2
2
2
2
2
2

lst_name[y]

Manning
VARIABLES
Action

sub_total[y]:= n_days[y] * 5500

(s_ecru_ity[y])= 30000 (grand_total[y]) = (s_ecru_ity[y])+(ctws[y])

Action

sub_total[y]:= n_days[y] * 4500

(s_ecru_ity[y])= 30000 (grand_total[y]) = (s_ecru_ity[y])+(ctws[y])

Action
sub_total[y]:= n_days[y] * 7000

(s_ecru_ity[y])= 30000 (grand_total[y]) = (s_ecru_ity[y])+(ctws[y])

Action

sub_total[y]:= n_days[y] * 7000

(s_ecru_ity[y])= 30000 (grand_total[y]) = (s_ecru_ity[y])+(ctws[y])

Action
sub_total[y]:= n_days[y] * 5500

(s_ecru_ity[y])= 30000 (grand_total[y]) = (s_ecru_ity[y])+(ctws[y])

Action

sub_total[y]:= n_days[y] * 15000

(s_ecru_ity[y])= 30000 (grand_total[y]) = (s_ecru_ity[y])+(ctws[y])

Action

sub_total[y]:= n_days[y] * 15000


(s_ecru_ity[y])= 35000 (grand_total[y]) = (s_ecru_ity[y])+(ctws[y])

Action

sub_total[y]:= n_days[y] * 15000

(s_ecru_ity[y])= 35000 (grand_total[y]) = (s_ecru_ity[y])+(ctws[y])

Action
sub_total[y]:= n_days[y] * 15000

(s_ecru_ity[y])= 35000 (grand_total[y]) = (s_ecru_ity[y])+(ctws[y])

Action

sub_total[y]:= n_days[y] * 15000

(s_ecru_ity[y])= 35000 (grand_total[y]) = (s_ecru_ity[y])+(ctws[y])


UT INFORMATION FOR THE FIRST CUSTOMER
Action

tipa = 'Hatchback'

mika = 'Audi'

Condition

(t_ype[y] = 'Sedan') is False


(t_ype[y] = 'Convertible') is False
(t_ype[y]='SUV') is False
(t_ype[y]='Hatchback') is True

(m_ake[y] = 'Nissan') is False


(m_ake[y]= 'Audi') is True

Condition

(t_ype[y] = 'Sedan') is False


(t_ype[y] = 'Convertible') is False
(t_ype[y]='SUV') is False
(t_ype[y]='Hatchback') is True

(m_ake[y] = 'Nissan') is False


(m_ake[y]= 'Audi') is True

Action

The Customer last name you were searching for has been found along with other information

The customer first name you were searching for has been found along with other information
The customer identification you were searching for has been found along with other information

R THE FIRST CUSTOMER SHOWING THE CLIENT INFORMATION THAT WAS BEING SEARCH
establish <> 0
1
1
1
1
1
1
1
1

DISP
Condition

(t_ype[y] = 'Sedan') is False


(t_ype[y] = 'Convertible') is False
(t_ype[y]='SUV') is False
(t_ype[y]='Hatchback') is True

(m_ake[y] = 'Nissan') is False


(m_ake[y]= 'Audi') is True
Line
324
326
416
VARIABLES
t_ype[y]

Hatch1

t_ype[y]

sed1

t_ype[y]
suv1

t_ype[y]

suv1

t_ype[y]
Hatch1

t_ype[y]

Conver1

t_ype[y]

Conver1
t_ype[y]

Conver1

t_ype[y]

Conver1
t_ype[y]

Conver1
tipa

Hatchback

Audi

ADD CLIENT OPTION 1


Action
sub_total[y]:= n_days[y] * 5500

(s_ecru_ity[y]):= 30000 (grand_total[y]) := (s_ecru_ity[y])+(ctws[y])

SEARCHING FOR CLIENT OPTION 2


Action

sub_total[y]:= n_days[y] * 5500

(s_ecru_ity[y]):= 30000 (grand_total[y]) := (s_ecru_ity[y])+(ctws[y])

lst_name[y]

Manning
information

AT WAS BEING SEARCHED FOR


Output
Matthew Manning
MM3443
Audi
Hatchback
$110,000.00
$18,150.00
$128,150.00
$158,150.00

DISPLAYING THE TOTAL FOR EACH MAKE OF VECHILE O


Action

sub_total[y]:= n_days[y] * 5500

(s_ecru_ity[y]):= 30000 (grand_total[y]) := (s_ecru_ity[y])+(ctws[y])


OUTPUT INFORMATION FOR FIRST CUSTOMER IN O
Option
3
3
3
m_ake[y]

a1

m_ake[y]

a1

m_ake[y]
a1

m_ake[y]

a1

m_ake[y]
a1

m_ake[y]

a1

m_ake[y]

bm10
m_ake[y]

bm10

m_ake[y]

bm10
m_ake[y]

bm10
mika

ION 1
t_ype[y]

Hatchback
T OPTION 2
t_ype[y]

Hatch1

i_d[y]

MM3443
EACH MAKE OF VECHILE OPTION 3
t_ype[y]

Hatch1
ION FOR FIRST CUSTOMER IN OPTION 3
Condition
m_ake[y]= 'Audi'
n_days[y]

20

n_days[y]

15

n_days[y]
15

n_days[y]

15

n_days[y]
15

n_days[y]

15

n_days[y]

15
n_days[y]

15

n_days[y]

15
n_days[y]

11
Output

MM3443
Matthew Manning

Hatchback

Audi
20
$110,000.00
$18,150.00
$128,150.00
$158,150.00

m_ake[y]
Audi

m_ake[y]

a1

frst_name[y]
Matthew
m_ake[y]

a1
Action

audigrane:=audigrane+grand_total[y]
sub_total[y] t_x1[y]

$110,000.00
$18,150.00

sub_total[y] t_x1[y]

$67,500.00
$11,137.50

sub_total[y] t_x1[y]
$105,000.00
$17,325.00

sub_total[y] t_x1[y]

$105,000.00
$17,325.00

sub_total[y] t_x1[y]
$82,500.00
$13,612.50

sub_total[y] t_x1[y]

$225,000.00
$37,125.00

sub_total[y] t_x1[y]

$225,000.00
$37,125.00

sub_total[y] t_x1[y]

$225,000.00
$37,125.00

sub_total[y] t_x1[y]
$225,000.00
$37,125.00

sub_total[y] t_x1[y]

$165,000.00
$27,225.00
n_days[y] sub_total[y]
20
$110,000.00

n_days[y] sub_total[y]

20
$110,000.00
n_days[y] sub_total[y]

20
$110,000.00
Output

$158,150.00
CTWS[y] grand_total[y]

$128,150.00

$158,150.00

CTWS[y] grand_total[y]

$78,637.50

$108,637.50

CTWS[y] grand_total[y]
$122,325.00

$152,325.00

CTWS[y] grand_total[y]

$122,325.00

$152,325.00

CTWS[y] grand_total[y]
$96,112.50

$126,112.50

CTWS[y] grand_total[y]

$262,125.00

$292,125.00

CTWS[y] grand_total[y]
$262,125.00

$297,125.00

CTWS[y] grand_total[y]

$262,125.00

$297,125.00

CTWS[y] grand_total[y]
$262,125.00

$297,125.00

CTWS[y] grand_total[y]

$192,225.00

$227,225.00
t_x1[y] CTWS[y]
$18,150.00
$128,150.00

t_x1[y] CTWS[y]

$18,150.00
$128,150.00
t_x1[y] CTWS[y]

$18,150.00
$128,150.00
Output

$158,150.00

Output

$108,637.50

Output
$152,325.00

Output

$152,325.00

Output
$126,112.00

Output

$292,125.00

Output
$297,125.00

Output

$297,125.00

Output
$297,125.00

Output

$227,225.00
grand_total[y]
$158,150.00

grand_total[y]

$158,150.00
grand_total[y]

$158,150.00
Output
$158,150.00

Output

$158,150.00
Output

$158,150.00

You might also like