aboutsummaryrefslogtreecommitdiff
path: root/Ch 5 Debugging Project/cst116-lab0-Pearse.txt
blob: 0c5fc7884296ca2fbb47f3c2fc16329242201a4a (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
You have $20
Enter PERCENT raise: 10
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 . . .

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)
}