aboutsummaryrefslogtreecommitdiff
path: root/CST116-Ch5-Debugging
diff options
context:
space:
mode:
authorAnibal LopezBonilla <[email protected]>2022-10-04 17:57:22 -0700
committerAnibal LopezBonilla <[email protected]>2022-10-04 17:57:22 -0700
commitfc8a8a49228c0466277593ed18d5181fe68cbca9 (patch)
tree69d021c17084a5cb30b6acc101ddec10ecf5f83e /CST116-Ch5-Debugging
parentSmall changes (diff)
downloadcst116-ch5-debugging-buzzerbeaterclutch-main.tar.xz
cst116-ch5-debugging-buzzerbeaterclutch-main.zip
Small changes and I am doneHEADmain
Diffstat (limited to 'CST116-Ch5-Debugging')
-rw-r--r--CST116-Ch5-Debugging/CST-116-Ch 5-Lopez-Bonilla-Output.txt6
-rw-r--r--CST116-Ch5-Debugging/CST116-Ch5-Lopez-Bonilla-Pseudo-Code.txt20
-rw-r--r--CST116-Ch5-Debugging/CST116-Ch5-Lopez-Bonilla.cpp2
3 files changed, 27 insertions, 1 deletions
diff --git a/CST116-Ch5-Debugging/CST-116-Ch 5-Lopez-Bonilla-Output.txt b/CST116-Ch5-Debugging/CST-116-Ch 5-Lopez-Bonilla-Output.txt
new file mode 100644
index 0000000..652f136
--- /dev/null
+++ b/CST116-Ch5-Debugging/CST-116-Ch 5-Lopez-Bonilla-Output.txt
@@ -0,0 +1,6 @@
+You have $123.45
+Enter percent raise: .1
+After your raise you have $135.795
+
+C:\Users\speed\Source\Repos\cst116-ch5-debugging-BuzzerBeaterClutch\CST116-Ch5-Debugging\x64\Debug\CST116-Ch5-Lopez-Bonilla.exe (process 27560) exited with code 0.
+Press any key to close this window . . . \ No newline at end of file
diff --git a/CST116-Ch5-Debugging/CST116-Ch5-Lopez-Bonilla-Pseudo-Code.txt b/CST116-Ch5-Debugging/CST116-Ch5-Lopez-Bonilla-Pseudo-Code.txt
new file mode 100644
index 0000000..3f1e383
--- /dev/null
+++ b/CST116-Ch5-Debugging/CST116-Ch5-Lopez-Bonilla-Pseudo-Code.txt
@@ -0,0 +1,20 @@
+Pseudo Code for Lab0-Debugging
+
+
+Program begins
+
+Create money variable which has a value of 123.45
+
+Create raise variable which is user inputs
+
+Creatw user prompt informing the user how much money they have earned before raise
+
+A user is prompted to input a percentage raise? EX. 10% = 0.10 OR .1
+
+A calculation is made for raise percentage input by user. r = m * r (raise = money * raise) EX. 12.34 = 123.45 * 0.1
+
+A new value for money is made based on output of raise calculation. m= m + r(money = money + raise) EX. 135.79 = 123.45 + 12.34
+
+User Prompt is made informing the user of the raise that they have earned based on the previous two calculation.
+
+Program ends
diff --git a/CST116-Ch5-Debugging/CST116-Ch5-Lopez-Bonilla.cpp b/CST116-Ch5-Debugging/CST116-Ch5-Lopez-Bonilla.cpp
index fd38435..20589a4 100644
--- a/CST116-Ch5-Debugging/CST116-Ch5-Lopez-Bonilla.cpp
+++ b/CST116-Ch5-Debugging/CST116-Ch5-Lopez-Bonilla.cpp
@@ -1,5 +1,5 @@
/********************************************************************
-* File: CST116-Ch5-Debugging.cpp
+* File: CST116-Ch5-Lopez-Bonilla.cpp
*
* General Instructions: Complete each step before proceeding to the
* next.