In this task you will write a program to calculate a student’s grade for this subject based on the marks they obtained in each assessment task (AT).
At the start of the program, it will prompt the user to enter a mark between 0 and 100 for each of the four assessment task. After all marks are entered, the program will check to see if they are valid.
If any of the entered numbers are not valid (i.e. not between 0 and 100), terminate the program and display a message stating the program was terminated due to incorrect input.
If the entered numbers are valid, your program needs to calculate the final mark, you must use if statement with combined conditions to determine the grade and display it on the screen.
The final mark is calculated by applying each corresponding weighting to each of the assessment task’s mark input by the user, and then, adding them all together. The weightings for each assessment tasks are as follows:
Once you have determined the final mark, your program needs to display the final grade (i.e. F, P, C, D or HD) based on the percentage given below.
AT1= 25%, AT2= 30%, AT3=20%, AT4 = 25%
F = less than 50 not including 50
P = Greater than 50 and less than 65 not including 65
C = Greater than 65 and less than 75 not including 75
D = Greater than 75 and less than 85 not including 85
HD= Greater than 85 and less than 100 including 100