Fill This Form To Receive Instant Help

Help in Homework
trustpilot ratings
google ratings


Homework answers / question archive / 2022 W AML 1204 3 Python Programming In Canada We want to write an application that takes a student number and his or her grades in the AML 1204 course and calculates the final grade and assigns a mark to the grade (for example, if the final grade is 95, it will assign A+ as the mark)

2022 W AML 1204 3 Python Programming In Canada We want to write an application that takes a student number and his or her grades in the AML 1204 course and calculates the final grade and assigns a mark to the grade (for example, if the final grade is 95, it will assign A+ as the mark)

Computer Science

2022 W AML 1204 3 Python Programming In Canada We want to write an application that takes a student number and his or her grades in the AML 1204 course and calculates the final grade and assigns a mark to the grade (for example, if the final grade is 95, it will assign A+ as the mark). With this scenario in mind, proceed with the following deliverables. Part-1 (4 marks) Write a function and call it final_grade_calculator. Your function accepts the following variables: . studentNumber . assignmentGrade . midtermGrade . finaltermGrade . projectGrade Now, add logic to your function to calculate the value for the finalGrade variable by using the following weighting: . assignmentGrade with a weight of (30%) . midtermGrade with a weight of (20%) . finaltermGrade with a weight of (20%) . projectGrade with a weight of (30%) Write a print statement to print the studentNumber and the calculated finalGrade . Part-2(4 marks) Define a function and call it mark_assigner. The function takes a studentNumber and also the finalGrade and uses the following table to assign a mark (A+, A, A-.B+,...) based on the finalGrade that is passed to the function. The function returns the assigned mark. (Hint you will need to use the if condition to assign the mark to the grade and use the return statement to return the assigned mark back to the caller of the function) ES Part-3(2 marks) After the print statement in your final_grade_calculator function (the first function you wrote), add business logic to call the second function (the mark_assigner function), and pass to it the stundetNumber and the calculated finalGrade and parse the result with a print statement. Test your program by passing your student number and fictional (imaginary) grades for your assignmentGrade, midtermGrade, finaltermGrade, and projectGrade (Assume you have got different grades on each assessment) and adjust your initial print statement to deliver the following desired output: Student number C071234567 has achieved the final grade of 96 which is equivalent to A+

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE

Related Questions