This repository contains code snippets for small applications required for school projects.
- computeSalaryCompoents.cpp The program defines a function which receives the salary and scheme as its parameters and calculates the EPF amount using the given rate table as below.
Scheme EPF Rate (%) SOCSO Rate (%)
A 11 5
B 10 4.5
C 9 4
D 8 4
-
studentGradesDisplay.c This program implements a function that gets the class grades array as a parameter and prints the list of people who passed the course (a student passes a course if he/she passes the final as well as the total) and their total mark.