diff options
| -rw-r--r-- | BlankConsoleLab/BlankConsoleLab.vcxproj | 8 | ||||
| -rw-r--r-- | BlankConsoleLab/Pseudocode.txt | 112 |
2 files changed, 116 insertions, 4 deletions
diff --git a/BlankConsoleLab/BlankConsoleLab.vcxproj b/BlankConsoleLab/BlankConsoleLab.vcxproj index db2e734..d2e3ee2 100644 --- a/BlankConsoleLab/BlankConsoleLab.vcxproj +++ b/BlankConsoleLab/BlankConsoleLab.vcxproj @@ -29,26 +29,26 @@ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> <ConfigurationType>Application</ConfigurationType> <UseDebugLibraries>true</UseDebugLibraries> - <PlatformToolset>v142</PlatformToolset> + <PlatformToolset>v143</PlatformToolset> <CharacterSet>Unicode</CharacterSet> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> <ConfigurationType>Application</ConfigurationType> <UseDebugLibraries>false</UseDebugLibraries> - <PlatformToolset>v142</PlatformToolset> + <PlatformToolset>v143</PlatformToolset> <WholeProgramOptimization>true</WholeProgramOptimization> <CharacterSet>Unicode</CharacterSet> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> <ConfigurationType>Application</ConfigurationType> <UseDebugLibraries>true</UseDebugLibraries> - <PlatformToolset>v142</PlatformToolset> + <PlatformToolset>v143</PlatformToolset> <CharacterSet>Unicode</CharacterSet> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> <ConfigurationType>Application</ConfigurationType> <UseDebugLibraries>false</UseDebugLibraries> - <PlatformToolset>v142</PlatformToolset> + <PlatformToolset>v143</PlatformToolset> <WholeProgramOptimization>true</WholeProgramOptimization> <CharacterSet>Unicode</CharacterSet> </PropertyGroup> diff --git a/BlankConsoleLab/Pseudocode.txt b/BlankConsoleLab/Pseudocode.txt new file mode 100644 index 0000000..8341907 --- /dev/null +++ b/BlankConsoleLab/Pseudocode.txt @@ -0,0 +1,112 @@ +Directive- + Read input data file and conduct calculations on the data + +Functions- + + ReadData + TotalFare(new array) + CostPerMile(new array) + PeopleTransported + TotalPaid + AvgCostPerPerson + WriteOutputFile + PrintCalculatedData + +Variables- + + MAX (array size definition) + pick array + drop array + psgr array + dist array + fare array + toll array + record_counter + +main- + + open report file to generate write file + open data file @ location + + loop (in file is open) + + - record_counter = ReadData() + infile close - + + nest loop (outfile is open) + + - WriteOutputFile() + PrintCalculatedData() + out file close - + + - Error message - + + - Error message - + +ReadData- + + variables- + pick array + drop array + psgr array + dist array + fare array + toll array + counter + + infile prime read including counter var + + loop (to infile end) + print: + pick [counter] + drop [counter] + psgr [counter] + dist [counter] + fare [counter] + toll [counter] + + counter + 1 + + infile: + pick [counter] + drop [counter] + psgr [counter] + dist [counter] + fare [counter] + toll [counter] + +WriteOutputData- + + variables- + pick array + drop array + psgr array + dist array + fare array + toll array + coutner + i + + print to outfile: + "Here is the output file" + + loop (i = 0; i <= counter -1; i + 1) + + outfile: + pick [counter] + drop [counter] + psgr [counter] + dist [counter] + fare [counter] + toll [counter] + +PrintCalculatedData- + + variables- + total_records + + print: + "Total Records " total_records + + print to report: + "Total Records " total_records
\ No newline at end of file |