From b9146a8934a14963240b1d111e5165a5a53abbd9 Mon Sep 17 00:00:00 2001 From: prestonderek Date: Wed, 5 Oct 2022 14:50:34 -0700 Subject: Commit 10/5/22 for pseduocode and output files --- ...T116-Lab0Debugging Project-Preston-Psuedocode.txt | 20 ++++++++++++++++++++ .../CST116-Lab0DebuggingProject-Preston-Output.txt | 9 +++++++++ Ch 5 Debugging Project/Ch 5 Debugging Project.cpp | 3 +++ .../Ch 5 Debugging Project.vcxproj | 4 ++++ .../Ch 5 Debugging Project.vcxproj.filters | 4 ++++ 5 files changed, 40 insertions(+) create mode 100644 Ch 5 Debugging Project/CST116-Lab0Debugging Project-Preston-Psuedocode.txt create mode 100644 Ch 5 Debugging Project/CST116-Lab0DebuggingProject-Preston-Output.txt (limited to 'Ch 5 Debugging Project') 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 #include 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 @@ + + + + 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 @@ Source Files + + + + \ No newline at end of file -- cgit v1.2.3