aboutsummaryrefslogtreecommitdiff
path: root/CST116-Ch10-Debugging/CST116-Ch10-PsuedoCode-Havaldar.txt
blob: 421b3679af2535c08b5619ad9faef097c1799eb6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Start Program

Initialize functions
Set constant integer variable

Initialize 3 arrays of the constant variable size (varX, varY, varZ)

Run function GetAndDisplayWelcomeInfo
	Intialize array
	Ask user for first name
	store user input in first row of array
	Ask user for last name
	store user input in second row of array
	Tell user welcome

Run function FunctionOne
	for int x = 0, while it is less than 8, set index x of array varX = x and add 1 to x every loop

	for int x = 0, while x is less than constant integer, set index x of array verY = x + 100 and add 1 to x every loop

Run function FunctionTwo
	for int x = 0, while it is less than constant integer, set index x of array varZ equal to index x of varX plus index x of varY and add one to x every loop
	set second element in array varZ equal to 99

Set first element in array varZ equal to -99

Run function PrintFunction
	Print x y and z
	align the elements of varX with x, varY with y, and varZ with z

End Program