Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Solution Review 2: Calculate the Student's Performance

Sumit Rawal answered on May 17, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • Challenge 2: Calculate the Student's Performance
  • Solution Review: Implement the Complete Student Class

  • Solution Review 2: Calculate the Student's Performance

    0

    Explanation

    In line 3 - 6, we have initialized name, phy, chem, and bio as public properties in the class initializer.

    In line 9, we have then defined the totalObtained() method. In this method, we added individual marks of all the subjects and returned the sum.

    At last in line 12, we defined percentage(). In this method, we called totalObtained() and used its value to calculate the percentage.

    300

    300

    is the total number of marks for a student. 

    Popularity 1/10 Helpfulness 1/10 Language python
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on May 17 2023
    Sumit Rawal
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.