Calculating Total Marks Weightage for Exams, Sports and Activities

  • Context: MHB 
  • Thread starter Thread starter shivajikobardan
  • Start date Start date
  • Tags Tags
    Exams Marks Sports
Click For Summary
SUMMARY

The discussion focuses on calculating total marks weightage for exams, sports, and activities using a specific formula. The weightages are defined as EXAMS_WEIGHTAGE=50.0, SPORTS_WEIGHTAGE=20.0, and ACTIVITIES_WEIGHTAGE=30.0. The total scores for exams, activities, and sports are derived from their respective maximum scores: EXAMS_TOTAL=200.0, ACTIVITIES_TOTAL=60.0, and SPORTS_TOTAL=50.0. The final percentage is calculated by combining the weighted contributions of each component based on the scores obtained.

PREREQUISITES
  • Understanding of Python programming for implementing the solution.
  • Knowledge of basic arithmetic operations and percentages.
  • Familiarity with input handling in Python.
  • Concept of weighted averages in grading systems.
NEXT STEPS
  • Learn how to implement weighted averages in Python using functions.
  • Explore Python's input validation techniques to handle user input errors.
  • Investigate alternative grading systems and their implementations in programming.
  • Study the use of data structures in Python to manage scores and weightages effectively.
USEFUL FOR

Students, educators, and software developers interested in implementing grading systems, as well as anyone looking to understand the logic behind weighted scoring in academic evaluations.

shivajikobardan
Messages
637
Reaction score
54
The solution code is like this-:

Python:
   ACTIVITIES_WEIGHTAGE=30.0
    SPORTS_WEIGHTAGE=20.0
    EXAMS_WEIGHTAGE=50.0
    
    
    EXAMS_TOTAL=200.0
    ACTIVITIES_TOTAL=60.0
    SPORTS_TOTAL=50.0
    
    exam_score1=int(input("Enter marks in first examinations out of 100"))
    exam_score2=int(input("Enter marks in second examinations out of 100"))
    
    
    sports_score=int(input("Enter marks in sports out of 50"))
    
    activities_score1=int(input("Enter marks in first activity out of 20"))
    activities_score2=int(input("Enter marks in second activity out of 20"))
    activities_score3=int(input("Enter marks in third activity out of 20"))
    
    
    exam_total=exam_score1+exam_score2
    
    activities_total=activities_score1+activities_score2+activities_score3
    
    
    exam_percent=float(exam_total*EXAMS_WEIGHTAGE/EXAMS_TOTAL)
    
    sports_percent=float(sports_score*SPORTS_WEIGHTAGE/SPORTS_TOTAL)
    
    activities_percent=float(activities_total*ACTIVITIES_WEIGHTAGE/ACTIVITIES_TOTAL)
    
    total_percent=exam_percent+sports_percent+activities_percent
    
    print("Total percentage=",total_percent)

I don't understand how we calculated exams_total, activities_total and sports_total here? What was the logic used for that? Do we have any other ways of solving this problem? I know this is too basic question. But I got really confused.

this is the logic that i want to be able to use and that i think is right, but i am not sure how i apply this in program...this looks too confusing for me..
total marks=50% of marks in 2 exams+20% of marks in 1 sports event+30% of marks in 3 activities?
 
Technology news on Phys.org
shivajikobardan said:
I don't understand how we calculated exams_total, activities_total and sports_total here?
Suppose a person got 60 points on exam 1 and 80 points on exam 2. Are you seriously saying you don't understand why the total exam score is 60 + 80 = 140?
 
Code:
ACTIVITIES_WEIGHTAGE=30.0
    SPORTS_WEIGHTAGE=20.0
    EXAMS_WEIGHTAGE=50.0
    
    
    EXAMS_TOTAL=200.0
    ACTIVITIES_TOTAL=60.0
    SPORTS_TOTAL=50.0

Exams weightage is 50 and there are 2 exams, how is total 200?
 
Exam weight is given in percent, not in points. The maximum exam score may be 200, but in counts for 50% = 0.5 of the final score.

Suppose each of the two exams has a maximum score of 100 points, so the total for both is 200. Then there is a question how to include exam score in the final grade. If the exams are more important compared to sports and activities, the instructor may decide that exams account for 80% = 0.8 of the final score. If the exams carry less weight than the activities, the instructor may assign them 30% = 0.3 of the final score. So the weight of the exams is determined by their importance for the final result and is independent of how exams themselves are graded. If the weight of the exam is $w_e$ where $0<w_e<1$ (in your problem $w_e=0.5$), the maximum exam score is $m_e$ (in your problem $m_e=200$) and a student's exam score is $s_e$ (let's assume that $s_e=60+80=140$), then $$\frac{s_e}{m_e}$$ shows how well the student performed on the exams, and $$\frac{s_e}{m_e} w_e$$ is the share of the final score the student earned by passing the exams.

Does this help?
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 1 ·
Replies
1
Views
7K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
10K
  • · Replies 4 ·
Replies
4
Views
9K