open in
main.py
```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
```
```#Programmer Name: Eric Evans, M.Ed.
#Program Description: Provides a minimum grade needed to get a C, B, or A in a given course for the semester and for the year.
#
print ("=========================================================")
print ("|  Welcome to the Grade Calculator                      |")
print ("|                                                       |")
print ("|  You will need the following information to proceed:  |")
print ("|  - Fall Semester (S1) Grade                           |")
print ("|  - 3rd Quarter (Q3) Grade                             |")
print ("|                                                       |")
print ("=========================================================")
print("")
minC = 68.5
#Minimum average grade for "C" per Ferris ISD
minB = 79.5
#Minimum average grade for "B" per Ferris ISD
minA = 89.5
#Minimum average grade for "A" per Ferris ISD
#***** REQUEST INPUT FROM USER *****
#Ask for S1 input and cast as float
#Ask for Q3 input and cast as float
#***** CALCULATE SEMESTER MINUMUM GRADES, ROUND, AND CAST *****
semMinC = ( ( ( 5 * minC ) - ( q3 * 2 ) ) / 3 )
#C Algorithm - Developed on 19-March-2018
semMinB = ( ( ( 5 * minB ) - ( q3 * 2 ) ) / 3 )
#B Algorithm - Developed on 19-March-2018
semMinA = ( ( ( 5 * minA ) - ( q3 * 2 ) ) / 3 )
#A Algorithm - Developed on 19-March-2018
semMinCRounded = round (semMinC, 2)
#Value of semMinC rounded to 2 decimal places
semMinBRounded = round (semMinB, 2)
#Value of semMinB rounded to 2 decimal places
semMinARounded = round (semMinA, 2)
#Value of semMinA rounded to 2 decimal places
semMinCString = str (semMinCRounded)
#Value of semMinCRounded cast as a string
semMinBString = str (semMinBRounded)
#Value of semMinBRounded cast as a string
semMinAString = str (semMinARounded)
#Value of semMinARounded cast as a string
#***** OUTPUT SEMESTER MINIMUMS *****
print("")
print("***********Q4 & SE2 MINIMUMS (SEMESTER)***********")
print("Min for C for Semester = " + semMinCString)
#Outputs minimum for "C" for semester
print("Min for B for Semester = " + semMinBString)
#Outputs minimum for "B" for semester
print("Min for A for Semester = " + semMinAString)
#Outputs minimum for "A" for semester```