diff options
5 files changed, 40 insertions, 0 deletions
diff --git a/Ch 5 Debugging Project/CST116-Lab0Debugging Project-Preston-Psuedocode.txt b/Ch 5 Debugging Project/CST116-Lab0Debugging Project-Preston-Psuedocode.txt new file mode 100644 index 0000000..079301e --- /dev/null +++ b/Ch 5 Debugging Project/CST116-Lab0Debugging Project-Preston-Psuedocode.txt @@ -0,0 +1,20 @@ +start main function + +initialize variable money +initialize empty variable raise + +print amount of money + +print enter raise amount +input raise amount in percentage above 1 + +while raise is below 1 + print raise amount must be above 1 + print enter raise amount + input raise amount above 1 + +calculate money * raise + +print money after raise + +end main function diff --git a/Ch 5 Debugging Project/CST116-Lab0DebuggingProject-Preston-Output.txt b/Ch 5 Debugging Project/CST116-Lab0DebuggingProject-Preston-Output.txt new file mode 100644 index 0000000..a6fac5a --- /dev/null +++ b/Ch 5 Debugging Project/CST116-Lab0DebuggingProject-Preston-Output.txt @@ -0,0 +1,9 @@ +You have $123.45 +Enter percent raise above 1.0%: .5 +You must enter a number greater than 1.0 +Enter percent raise above 1.0%: .9 +You must enter a number greater than 1.0 +Enter percent raise above 1.0%: 1.0 +You must enter a number greater than 1.0 +Enter percent raise above 1.0%: 2.5 +After your raise you have $308.625
\ No newline at end of file diff --git a/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp b/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp index db8ce35..4f9cbed 100644 --- a/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp +++ b/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp @@ -63,6 +63,9 @@ //Breakpoints were added at the breakpoint 1 comment, and at the cout << Enter percent raise line.
//After reading through some of the questions again I realize that me adding a while loop wasn't what was asked of me. I was asked to go back after enter a value of .1 and fix the numbers within the calculation. Although what I did definitely eliminated the possibility for a 'lowering raise'
+//added psuedocode file on 10/5/22.
+//added output file on 10/5/22.
+
#include <iostream>
#include <iomanip>
diff --git a/Ch 5 Debugging Project/Ch 5 Debugging Project.vcxproj b/Ch 5 Debugging Project/Ch 5 Debugging Project.vcxproj index 97611d8..b979d64 100644 --- a/Ch 5 Debugging Project/Ch 5 Debugging Project.vcxproj +++ b/Ch 5 Debugging Project/Ch 5 Debugging Project.vcxproj @@ -141,6 +141,10 @@ <ItemGroup>
<ClCompile Include="Ch 5 Debugging Project.cpp" />
</ItemGroup>
+ <ItemGroup>
+ <Text Include="CST116-Lab0Debugging Project-Preston-Psuedocode.txt" />
+ <Text Include="CST116-Lab0DebuggingProject-Preston-Output.txt" />
+ </ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
diff --git a/Ch 5 Debugging Project/Ch 5 Debugging Project.vcxproj.filters b/Ch 5 Debugging Project/Ch 5 Debugging Project.vcxproj.filters index f330efc..c84756a 100644 --- a/Ch 5 Debugging Project/Ch 5 Debugging Project.vcxproj.filters +++ b/Ch 5 Debugging Project/Ch 5 Debugging Project.vcxproj.filters @@ -19,4 +19,8 @@ <Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
+ <ItemGroup>
+ <Text Include="CST116-Lab0Debugging Project-Preston-Psuedocode.txt" />
+ <Text Include="CST116-Lab0DebuggingProject-Preston-Output.txt" />
+ </ItemGroup>
</Project>
\ No newline at end of file |