blob: 4e036254f8e7396f4f9a892274386e281307df7c (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
1.
Display "Enter old wage: "
Read Old_wage
New_wage = Old_wage * .06
Display Old_wage
Display "+6%="
Display New_wage
fixed
Display "Enter old wage: "
Read Old_wage
New_wage = Old_wage * 1.06 //old version would output 6% of the old wage when you want 106% of the old wage
Display Old_wage
Display "+6%="
Display New_wage
2.
Display "Enter Assignment average: "
Read Assignment_avg
Display "Enter Test 1:"
Read Test1
Display "Enter Test 2:"
Read Test2
Display "Enter Tes1 3:"
Read Test3
Test_avg = Test1 * 0.15 + Test2 * 0.15 + Test3 * 0.15/3
Class_score = Assign_avg * 0.2 + Test_avg * 0.4 + Final * 0.25
Display "Final score: "
Displace Class_score
fixed
Display "Enter Assignment average: "
Read Assignment_avg
Display "Enter Test 1:"
Read Test1
Display "Enter Test 2:"
Read Test2
Display "Enter Tes1 3:"
Read Test3
Test_tot = Test1 * 0.15 + Test2 * 0.15 + Test3 * 0.15 //gives a value between 0 and 0.45 based on how well you did on the tests
Class_score = Assign_avg * 0.25 + Test_tot + Final * 0.25 //tests are already in the 0-1 range needed for this calculation and do not need to be multiplied, assignments are 25% of the grade
Converted_score = Class_score * 100 //convert the score to a 0-100 range for easier readability, peresonal prefrence
Display "Final score: "
Displace Converted-score // print the converted score instead
|