aboutsummaryrefslogtreecommitdiff
path: root/Ch9-Debugging Psuedocode.txt
blob: 76093defab3d45f6884b50b67dafa8d79cf2e1b1 (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
32
33
34
35
36
37
38
Main Program Begins

integers age and days are introduced.

age is assigned to the function GetAge

days is assigned to the function CalcDays

Function GetAge is introduced

age variable is introduced in the function GetAge

A prompt is printed to indicate the user to type their age
User inputs an age

the new user value of age is returned to the main program

End of Function GetAge

Function CalcDays is introduced

days variable is introduced to the function CalcDays

days variable is assigned to a calculation(years * Day in a year)

Result from the days value return to the main function

Function PrintResulted is introduced

Print the age of the user

Print how old they are in days.

End of Program.