blob: 5c562e7bfceb97250f3fc140d0c56b72a868635e (
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
|
Start Program
Intitialize ReadData function which will read the data of the text file in
Initialize WriteOutputFile function which will write the output into a output file
Initialize PrintTotalsAndSummary function which will print out the amount of names which were printed and say the end
Initialize character array
Initialize integer array
initialize integer variable
Set output file
Open input file
If input file is open
Run function ReadData with the input and output file and first element in every line as name and second as age
Close input file
If output file is open
Run function output file with output file, name, age, and the number of sets of names and ages
Else
Output that file cannot be read
Else
Output that file cannot be read
End Program
|