aboutsummaryrefslogtreecommitdiff
path: root/CST116F2021-Lab2/Lab 2 4b 5.9
blob: a3bf334da215f7135fcde4f77c13b990188b2b04 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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; 

}