Calculate the Engineering One average and promotability of a student, given their Engineering One grades.

Background

According to §7.2 of the Faculty’s regulations, a student’s Engineering One Promotion Average is calculated based on nine courses:

Subject Courses

CHEM

1050

ENGI

1010, 1020, 1030, 1040

ENGL

1090

MATH

1001, 2050

PHYS

1051

In order to be eligible for promotion to Term 3, an Engineering One student must:

  • have an average across these nine courses of at least 65 and

  • pass all nine courses with a mark of at least 55 in each course.

Problem

Write a Python script that will:

  • input nine grades from a user (using the input() function),

  • store the resulting course average in a variable called average and

  • store the student’s Boolean promotability in a variable promotable.

  • print a message: either "Congratulations!" or "Not promotable."

Submission

Submit your Python script (which must be named exercise3.py) to Gradescope.