diff options
| author | tafaar <[email protected]> | 2022-09-29 15:54:49 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-09-29 15:54:49 -0700 |
| commit | 74bcf3b0451620f42359890479a86aefa559c07c (patch) | |
| tree | b115efee2161dd084985b94a116ea70087e1d148 | |
| parent | Finished (diff) | |
| download | cst116-lab0-debugging-hill-main.tar.xz cst116-lab0-debugging-hill-main.zip | |
| -rw-r--r-- | Ch 5 Debugging Project/Ch 5 Debugging Project - Hill | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Ch 5 Debugging Project/Ch 5 Debugging Project - Hill b/Ch 5 Debugging Project/Ch 5 Debugging Project - Hill new file mode 100644 index 0000000..ee15dea --- /dev/null +++ b/Ch 5 Debugging Project/Ch 5 Debugging Project - Hill @@ -0,0 +1,15 @@ +You have $123.45 +Enter percent raise: .1 +After your raise you have $135.795 + +Pseudo Code: + +1. money = 123.45F; +2. raise; +3. print "You have $"; +4. print money \endline; +5. print "Enter a percent raise"; +6. input raise; +7. money = money * (1 + raise); +8. print "After your raise you have $" +9. print money \endline; |