You are on page 1of 3

NUR SYAZLEENA HASNI BINTI ZILANI

IM2453ST1
2021453804
IMS505
EXERCISE 1

Create the ALGORITHM for the following scenario.


You need to develop a marks system for user. User need to enter
their name, their surname, marks for test 1 (full mark is 100), test 2
(full mark is 100), assignment 1 (full mark is 50), assignment 2 (full
mark is 50), and project (full mark is 100). The weightage of each
assessment is as follows:

TEST 1 25%
TEST 2 25%
ASSIGNMENT 1 15%
ASSIGNMENT 2 15%
PROJECT 20%

Calculate the marks according to the weightage, and display the


name, surname, each marks entered, and overall marks based on
weightage. Refer to the following EXAMPLE of OUTPUT for better
understanding.
START

ENTER name, surname, test1,


test2, assignment1, assignment2,
project

marks1= (test1/100)*25
marks2= (test2/100)*25
marks3= (assignment1/50)*15
marks4= (assignment2/50)*15
marks5= (project/100)*20
TOTAL= marks1+marks2+marks3+marks4+marks5

PRINT name, surname, test1,


test2, assignment1, assignment2,
project, marks1, marks2, marks3,
marks4, marks5, TOTAL

END
Output Example

Name : Puteri
Surname: Abdul Rahman
Student ID: 2017201234
Test 1: 80/100
Test 2: 100/100
Assignment 1: 35/50
Assigment 2: 45/50
Project: 90/100

Overall marks:
Test 1: 20/25
Test 2: 25/25
Assignment 1: 10.5/15
Assignment 2: 13.5/15
Project: 18/20

TOTAL: 87%

You might also like