MHB Calculating Total Marks Weightage for Exams, Sports and Activities

  • Thread starter Thread starter shivajikobardan
  • Start date Start date
  • Tags Tags
    Exams Marks Sports
AI Thread Summary
The discussion centers on understanding the calculation of total scores for exams, activities, and sports based on their respective weightages. The code provided uses specific weightages: 50% for exams, 30% for activities, and 20% for sports. The total possible scores are defined as 200 for exams (two exams with a maximum of 100 each), 60 for activities (three activities with a maximum of 20 each), and 50 for sports. Participants express confusion about how these totals were derived and the logic behind the weightage system. It is clarified that the weightages represent the importance of each component in the final score, not the actual points. The final percentage is calculated by taking the weighted contributions of each component based on the scores achieved. The explanation emphasizes that the weight of each category is independent of the grading scale used for individual assessments, focusing instead on how these scores contribute to the overall grade.
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?
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...

Similar threads

Replies
1
Views
2K
Replies
1
Views
3K
Replies
5
Views
3K
Replies
6
Views
4K
Replies
1
Views
7K
Replies
1
Views
10K
Replies
4
Views
8K
Back
Top