Write a python program that will take the number of goals and the number of assists by a footballer in a season as inputs. Then the program should calculate the total number of goals and assists and print the information according to the provided chart below. Total Goal Contribution = number of goals + number of assists Total number of goals and assists Message between 0 and 9 (inclusive) "Career might be in danger" between 10 and 20 (inclusive) "Average performance." between 21 and 30 (inclusive) "You were impressive." between 31 and 40 (inclusive) "Simply astounding." greater than 40 "Candidate for Footballer of the Season!" all other inputs "Invalid Input" Sample Input: Goals = 10 Assists = 2 Sample Output: Total Goal Contribution: 12 Average performance
Write a python program that will take the number of goals and the number of assists by a footballer in a season as inputs. Then the program should calculate the total number of goals and assists and print the information according to the provided chart below.
Total Goal Contribution = number of goals + number of assists
Total number of goals and assists Message
between 0 and 9 (inclusive) "Career might be in danger"
between 10 and 20 (inclusive) "Average performance."
between 21 and 30 (inclusive) "You were impressive."
between 31 and 40 (inclusive) "Simply astounding."
greater than 40 "Candidate for Footballer of the Season!"
all other inputs "Invalid Input"
Sample Input:
Goals = 10
Assists = 2
Sample Output:
Total Goal Contribution: 12
Average performance
Step by step
Solved in 2 steps