GET EDUCATE

Contents
Basics of C Programming

⯈Basic C Programs

Algorithm and Flowchart for weighted score

In a university, student performance for a course is evaluated based on weighted score, which is computed considering the marks obtained in 3 assignments and 2 exams. The assignment and exams are conducted for a maximum of 100 marks. The weightage of each assignment and each exam is 10% and 35% respectively. Write an algorithm to compute the weighted score.

The input for the above question is,

  1. Marks of 3 assignments, let it be A1, A2 and A3
  2. Marks of 2 examinations, let. it be E1 and E2.

It is given that the weightage of each assignment is 10 % and that of exam is 35 %. Therefore, we multiply the assignment scores with 0.1 and exam scores with 0.35.

Effective marks / 100 = 0.1 * [A1+A2+A3] + 0.35 * [E1 + E2]

The algorithm for weighted score is as follows:

Algorithm:

Name of algorithm: To compute the weighted score.

Step 1: Start

Step 2: Read assignment scores as A1, A2 and A3

Step 3: Read examination scores as E1 and E2

Step 4: total = 0.1 * (A1+A2+A3) + 0.35 * (E1 + E2)

Step 5: Display total

Step 6: Stop

Flowchart:

flowchart to calculate the weighted score

Tracing:

Let A1 = 100, A2 = 80, A3 = 70, E1 = 75, E2 = 80

(Assignment and Exams are conducted for 100 marks each)

total = 0.1 * [100 + 80 + 70] + 0.35 * [75 + 80] 

        = 25 + 54.25

       = 79.25

Scroll to Top