diff options
| author | JerichoBingham <[email protected]> | 2021-10-13 14:14:42 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-10-13 14:14:42 -0700 |
| commit | 2c1f1caef57688fc409faef35cded839a3f36c10 (patch) | |
| tree | a18e9c8b37c166333140fb9b40716f553c2925b1 | |
| parent | Create Lab 2 4a. 1 (diff) | |
| download | cst116-lab2-jerichobingham-2c1f1caef57688fc409faef35cded839a3f36c10.tar.xz cst116-lab2-jerichobingham-2c1f1caef57688fc409faef35cded839a3f36c10.zip | |
Create Lab 2 4b 5.9
| -rw-r--r-- | CST116F2021-Lab2/Lab 2 4b 5.9 | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/CST116F2021-Lab2/Lab 2 4b 5.9 b/CST116F2021-Lab2/Lab 2 4b 5.9 new file mode 100644 index 0000000..a3bf334 --- /dev/null +++ b/CST116F2021-Lab2/Lab 2 4b 5.9 @@ -0,0 +1,39 @@ +#include <iostream> + +#include <iomanip> + +using std::cout; + +using std::cin; + +using std::endl; + +int main() + +{ + + float money = 123.45; + + float raise; + + cout << "You have $"; + + cout << money << endl; + + // Breakpoint 1 + + // Put a breakpoint on the following line + + cout << "Enter percent raise: "; + + cin >> raise; + + money = money * raise; + + cout << "After your raise you have $"; + + cout << money << endl; + + return 0; + +} |