aboutsummaryrefslogtreecommitdiff
path: root/Ch 5 Debugging Project
diff options
context:
space:
mode:
Diffstat (limited to 'Ch 5 Debugging Project')
-rw-r--r--Ch 5 Debugging Project/cst116-lab0-Pearse.txt21
1 files changed, 20 insertions, 1 deletions
diff --git a/Ch 5 Debugging Project/cst116-lab0-Pearse.txt b/Ch 5 Debugging Project/cst116-lab0-Pearse.txt
index daae384..0c5fc78 100644
--- a/Ch 5 Debugging Project/cst116-lab0-Pearse.txt
+++ b/Ch 5 Debugging Project/cst116-lab0-Pearse.txt
@@ -4,4 +4,23 @@ After your raise you have $22
C:\Users\legok\source\repos\cst116-lab0-debugging-legokid1503\Ch 5 Debugging Project\x64\Debug\Ch 5 Debugging Project.exe (process 19064) exited with code 0.
To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops.
-Press any key to close this window . . . \ No newline at end of file
+Press any key to close this window . . .
+
+PSEUDOCODE
+
+main(){
+ float money
+ float raise
+
+ print("you have $" + money)
+
+ print(enter PRECENT raise)
+
+ input(float raise)
+
+ //We're treating the input like a percent. For example, if 1 is the input, that would be 1% or 0.01
+ money = money * 1 + raise * 0.01
+
+ print("After your raise, you have $")
+ print(money)
+} \ No newline at end of file