From 4ee5f1f5bbddc0af101b601af7dd88ca63668184 Mon Sep 17 00:00:00 2001 From: Wyatt Date: Tue, 8 Nov 2022 19:48:46 -0800 Subject: psuedocode --- Chapter11_psuedocode.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Chapter11_psuedocode.txt diff --git a/Chapter11_psuedocode.txt b/Chapter11_psuedocode.txt new file mode 100644 index 0000000..322aa48 --- /dev/null +++ b/Chapter11_psuedocode.txt @@ -0,0 +1,21 @@ +character array name[20][21] +integery age[20] +record counter integer. + +input stream inFile + +output file stream outFile + +open input and output sreams with correct filenames +if the file opens, continue, otherwise error and return. + +read the data from the file, save the inputs to name and age, counter++ for each line read +close inFile + +if outFile is open, continue, otherwise error and return. + +Write to the output file, output file will be a table of names and ages +Print totals and summaries to the console. +close outFile. + +return0 \ No newline at end of file -- cgit v1.2.3