Background The university that you attend uses a priority points system for determining the rank of students wanting to purchase season tickets for home basketball games. This system determines the point value that a student is awarded to purchase season tickets, based on GPA, class year, and whether he/she bought season tickets the previous year. The following rules are applied in order given to award points for this priority point system: 1. If your GPA is less than or equal to 2.0 and your class rank is: Senior, then points=135 All others, then points - 90 2. If your GPA is less than or equal to 3.0 and you did not purchase season tickets last year and your class rankis: Freshman, then points - 95 Sophomore, then points - 115 All others, then points = 130 3. If your GPA is less than or equal to 3.0, you did purchase season tickets last year, and your class rank is: Freshman, then points - 110 Sophomore, then points-130 All others, then points - 150 4. If your GPA is greater than 3.0, you didn't purchase season tickets last year, and your class rank is: 5. If your GPA is class rankis: Freshman, then points - 120 Senior, then points-175 All others, then points - 160 greater than 3.0, you did purchase season tickets last year, and your Freshman, then points-135 Senior, then points-195 All others, then points-170 Assignment Description Write a program that prompts the user to enter their class standing Freshman (F). Sophomore (O), Junior (J), Senior (S), whether they purchased season tickets last year, and their GPA. Once the information has been entered, the program uses the given rules to determine and report the priority points awarded to the student. Your program will not have to handle exceptions to data entry, but does need to be case insensitive. Indent expected:13 Indent expected:35 Statement expected, found Py:ELIF_KEYWORD:49 An illegal target for a variable annotation :49 Expression expected :49 Indent expected :54 Statement expected, found Py:ELIF_KEYWORD:74 Statement expected, found Py:ELIF_KEYWORD:96 End of statement expected :96 Statement expected, found Py:COLON:96 Indent expected:102 Statement expected, found Py:ELIF_KEYWORD:122 Run 1 Test Case Output Priority Point System Freshman (F), Sophomore (0), Junior (3), Senior (S): o Had tickets last year? Yes (Y) or No (N)? n Please enter your GPA as a value between 0 and 4: 3.8 Your available points are 160 Run 2 Test Case Output Priority Point System Freshman (F), Sophomore (0), Junior (3), Senior (S): 3 Had tickets last year? Yes (Y) or No (N)? Y Please enter your GPA as a value between 0 and 4: 2.7 Your available points are 150 Run 3 Test Case Output Priority Point System Freshman (F), Sophomore (0), Junior (3), Senior (S): s Had tickets last year? Yes (Y) or No (N)? N Please enter your GPA as a value between 0 and 4: 1.9 Your available points are 135 Run 4 Test Case Output Priority Point System Freshman (F), Sophomore (0), Junior (3), Senior (S): S Had tickets last year? Yes (Y) or No (N)? Y Please enter your GPA as a value between 0 and 4: 3.1 Your available points are 195

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

I need a little extra support on completeing a program. I have already started on the program, but I keep receiving errors that I seem I can not fix and I don't know if I am missing something. I use only pycharm to create the programs, since its what as to be used. I included the types of errors I am geting, also included the work that I have started on in pycharm, and the despriction of the work assigned aswell.

Background
The university that you attend uses a priority points system for determining the rank of students wanting to purchase season tickets for home basketball games. This system determines the point value that a student is awarded to purchase
season tickets, based on GPA, class year, and whether he/she bought season tickets the previous year. The following rules are applied in order given to award points for this priority point system:
1. If your GPA is less than or equal to 2.0 and your class rank is:
Senior, then points = 135
All others, then points - 90
2. If your GPA is less than or equal to 3.0 and you did not purchase season tickets last
year and your class rank is:
Freshman, then points = 95
Sophomore, then points - 115
All others, then points = 130
3. If your GPA is less than or equal to 3.0, you did purchase season tickets last year, and
your class rank is:
Freshman, then points - 110
Sophomore, then points - 130
All others, then points - 150
4. If your GPA is greater than 3.0, you didn't purchase season tickets last year, and your
class rank is:
Freshman, then points - 120
Senior, then points - 175
All others, then points - 160
5. If your GPA is greater than 3.0, you did purchase season tickets last year, and your
class rank is:
Freshman, then points - 135
Senior, then points - 195
All others, then points - 170
Assignment Description
Write a program that prompts the user to enter their class standing Freshman (F),
Sophomore (O), Junior (J), Senior (S), whether they purchased season tickets last year, and their GPA. Once the information has been entered, the program uses the given rules to determine and report the priority points awarded to the student.
Your program will not have to handle exceptions to data entry, but does need to be case insensitive.
Indent expected:13
Indent expected:35
Ⓒ Statement expected, found Py:ELIF_KEYWORD:49
An illegal target for a variable annotation :49
Expression expected :49
Indent expected :54
Ⓒ Statement expected, found Py:ELIF_KEYWORD:74
Statement expected, found Py:ELIF_KEYWORD:96
End of statement expected:96
Ⓒ Statement expected, found Py:COLON:96
Indent expected:102
Ⓒ Statement expected, found Py:ELIF_KEYWORD:122
Run 1 Test Case Output
Priority Point System
Freshman (F), Sophomore (0), Junior (3), Senior (S): o
Had tickets last year? Yes (Y) or No (N)? n
Please enter your GPA as a value between 0 and 4: 3.8
Your available points are 160
Run 2 Test Case Output
Priority Point System
Freshman (F), Sophomore (0), Junior (3), Senior (S): J
Had tickets last year? Yes (Y) or No (N)? Y
Please enter your GPA as a value between 0 and 4: 2.7
Your available points are 150
Run 3 Test Case Output
Priority Point System
Freshman (F), Sophomore (0), Junior (3), Senior (S): s
Had tickets last year? Yes (Y) or No (N)? N
Please enter your GPA as a value between 0 and 4: 1.9
Your available points are 135
Run 4 Test Case Output
Priority Point System
Freshman (F), Sophomore (0), Junior (3), Senior (S): S
Had tickets last year? Yes (Y) or No (N)? Y
Please enter your GPA as a value between 0 and 4: 3.1
Your available points are 195
Transcribed Image Text:Background The university that you attend uses a priority points system for determining the rank of students wanting to purchase season tickets for home basketball games. This system determines the point value that a student is awarded to purchase season tickets, based on GPA, class year, and whether he/she bought season tickets the previous year. The following rules are applied in order given to award points for this priority point system: 1. If your GPA is less than or equal to 2.0 and your class rank is: Senior, then points = 135 All others, then points - 90 2. If your GPA is less than or equal to 3.0 and you did not purchase season tickets last year and your class rank is: Freshman, then points = 95 Sophomore, then points - 115 All others, then points = 130 3. If your GPA is less than or equal to 3.0, you did purchase season tickets last year, and your class rank is: Freshman, then points - 110 Sophomore, then points - 130 All others, then points - 150 4. If your GPA is greater than 3.0, you didn't purchase season tickets last year, and your class rank is: Freshman, then points - 120 Senior, then points - 175 All others, then points - 160 5. If your GPA is greater than 3.0, you did purchase season tickets last year, and your class rank is: Freshman, then points - 135 Senior, then points - 195 All others, then points - 170 Assignment Description Write a program that prompts the user to enter their class standing Freshman (F), Sophomore (O), Junior (J), Senior (S), whether they purchased season tickets last year, and their GPA. Once the information has been entered, the program uses the given rules to determine and report the priority points awarded to the student. Your program will not have to handle exceptions to data entry, but does need to be case insensitive. Indent expected:13 Indent expected:35 Ⓒ Statement expected, found Py:ELIF_KEYWORD:49 An illegal target for a variable annotation :49 Expression expected :49 Indent expected :54 Ⓒ Statement expected, found Py:ELIF_KEYWORD:74 Statement expected, found Py:ELIF_KEYWORD:96 End of statement expected:96 Ⓒ Statement expected, found Py:COLON:96 Indent expected:102 Ⓒ Statement expected, found Py:ELIF_KEYWORD:122 Run 1 Test Case Output Priority Point System Freshman (F), Sophomore (0), Junior (3), Senior (S): o Had tickets last year? Yes (Y) or No (N)? n Please enter your GPA as a value between 0 and 4: 3.8 Your available points are 160 Run 2 Test Case Output Priority Point System Freshman (F), Sophomore (0), Junior (3), Senior (S): J Had tickets last year? Yes (Y) or No (N)? Y Please enter your GPA as a value between 0 and 4: 2.7 Your available points are 150 Run 3 Test Case Output Priority Point System Freshman (F), Sophomore (0), Junior (3), Senior (S): s Had tickets last year? Yes (Y) or No (N)? N Please enter your GPA as a value between 0 and 4: 1.9 Your available points are 135 Run 4 Test Case Output Priority Point System Freshman (F), Sophomore (0), Junior (3), Senior (S): S Had tickets last year? Yes (Y) or No (N)? Y Please enter your GPA as a value between 0 and 4: 3.1 Your available points are 195
def main():
# get input and store class standing in variable class_rank
class_rank = input("Freshman (F), Sophomore (0), Junior (J), Senior (S):")
# get input for whether tickets were purchased last year, store in ticket
ticket = input("Had tickets last year? Yes (Y) or No (No)? ")
# get input for gpa, store in variable gpa (after casting as float)
gpa = float(input("Please enter your GPA as a value between 0 and 4: "))
# let initial points be 0
points = 8
# use if else ladder to assign points
#when gpa is less than or equal to 2.0
if gpa <= 2.0:
# for Seniors (because program is case-insensitive, so we test fot both capital and small S)
if class_rank == 'S' or class_rank == 's':
points = 135
# for all other class ranks.
else:
points = 90
#when gpa is less than or equal to 3.0
elif 3.0 < gpa :_
# if condition for when tickets were not purchased
if ticket == 'N' or ticket == 'n':
# for freshman class
if class_rank == 'F' or 'f':
points = 95
# for sophomore class
elif class_rank == '0' or class_rank == '0':
points = 115
# for all other class ranks
else:
points = 130
# else condition for when tickets were purchased
elif_" ticket == 'Y' or ticket == 'y':"
# for freshman class
if class_rank == 'F' or class_rank == 'f':
points = 110
# for sophomore class
elif class_rank == '0' or class_rank == '0':
points = 130
# for all other class ranks
else:
points = 150
# last condition for when gpa is greater than 3.0
elif_gpa = 3.0:
# if condition for when tickets were not purchased
if ticket == 'N' or ticket == 'n':
# for freshman class
if class_rank == 'F' or class_rank == 'f':
points = 120
# for senior class.
elif class_rank == 'S' or class_rank == 's':
points = 175
# for all other class ranks.
else:
points = 160
else condition for when tickets were purchased
elif_"ticket == 'Y' or 'ticket' == 'y'
# for freshman class
if class_rank == 'F' or class_rank == 'f':
points = 135
# for senior class
elif class_rank == 'S' or class_rank == 's':
points = 195
# for all other class ranks
else:
points = 170
# finally print the available points
print("\nYour available points are ", points)
if __name__
main()
"__main__":
Transcribed Image Text:def main(): # get input and store class standing in variable class_rank class_rank = input("Freshman (F), Sophomore (0), Junior (J), Senior (S):") # get input for whether tickets were purchased last year, store in ticket ticket = input("Had tickets last year? Yes (Y) or No (No)? ") # get input for gpa, store in variable gpa (after casting as float) gpa = float(input("Please enter your GPA as a value between 0 and 4: ")) # let initial points be 0 points = 8 # use if else ladder to assign points #when gpa is less than or equal to 2.0 if gpa <= 2.0: # for Seniors (because program is case-insensitive, so we test fot both capital and small S) if class_rank == 'S' or class_rank == 's': points = 135 # for all other class ranks. else: points = 90 #when gpa is less than or equal to 3.0 elif 3.0 < gpa :_ # if condition for when tickets were not purchased if ticket == 'N' or ticket == 'n': # for freshman class if class_rank == 'F' or 'f': points = 95 # for sophomore class elif class_rank == '0' or class_rank == '0': points = 115 # for all other class ranks else: points = 130 # else condition for when tickets were purchased elif_" ticket == 'Y' or ticket == 'y':" # for freshman class if class_rank == 'F' or class_rank == 'f': points = 110 # for sophomore class elif class_rank == '0' or class_rank == '0': points = 130 # for all other class ranks else: points = 150 # last condition for when gpa is greater than 3.0 elif_gpa = 3.0: # if condition for when tickets were not purchased if ticket == 'N' or ticket == 'n': # for freshman class if class_rank == 'F' or class_rank == 'f': points = 120 # for senior class. elif class_rank == 'S' or class_rank == 's': points = 175 # for all other class ranks. else: points = 160 else condition for when tickets were purchased elif_"ticket == 'Y' or 'ticket' == 'y' # for freshman class if class_rank == 'F' or class_rank == 'f': points = 135 # for senior class elif class_rank == 'S' or class_rank == 's': points = 195 # for all other class ranks else: points = 170 # finally print the available points print("\nYour available points are ", points) if __name__ main() "__main__":
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 5 images

Blurred answer
Knowledge Booster
Payback period
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education