repl.it
@JakeBusse/

Grading Scale

Python

No description

fork
loading
Files
  • main.py
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
print("\033[H\033[J")

def restart():
  # print("")
  # uInput = input("Please press enter...")

  # if uInput == "":
  print("\n\n")
  begin()


def begin():
  # print("\033[H\033[J")

  gradePercent = int(input("Please enter grade percent: "))

  if gradePercent < 60:
    print("Sorry, you have an F")
    restart()

  elif gradePercent < 63:
    print("Sorry, you have a D-")
    restart()

  elif gradePercent < 67:
    print("Sorry, you have a D")
    restart()

  elif gradePercent < 70:
    print("Sorry, you have a D+")
    restart()

  elif gradePercent < 73:
    print("You have a C-")
    restart()

  elif gradePercent < 77:
    print("You have a C")
    restart()

  elif gradePercent < 80:
    print("You have a C+")
    restart()

  elif gradePercent < 83:
    print("You have a B-")
    restart()

  elif gradePercent < 87:
    print("You have a B")
    restart()

  elif gradePercent < 90:
    print("You have a B+")
    restart()

  elif gradePercent < 94:
    print("Congrats! You have an A-")
    restart()

  elif gradePercent > 93:
    print("Congrats! You have an A")
    restart()

  else:
    print("Please enter a number only")
    restart()

begin()