aboutsummaryrefslogtreecommitdiff
path: root/CST116-Lab0-Debugging-Lopez-Bonilla/CST116-Lab0-Debugging-Lopez-Bonilla-Pseudo-Code.txt
blob: 3f1e3838fc4f0d2f3d54175bac9dba0851d11f05 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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