You are on page 1of 7

Course Code: CSE 1102

Course Title: Introduction to programming

Open Ended Lab Report

Submitted to:
[Fatema Khan]
[Lecturer, department of CSE]

Submitted by:
[Farhan Ishrak]
[241014101]
Department of CSE

University of Liberal Arts Bangladesh

[Date: 09-03-2024]
Title: Grading System Implementation in C
Problem Statement: Design and implement a robust grading system in C to cater
to the diverse academic needs of ULAB students. The program should take numerical
grades as input and generate corresponding letter grades, grade points, and
assessments.

Objective: The primary objective is to empower ULAB students with an efficient tool
for comprehending their academic performance through a well-defined grading
system.

Tools Used: Language C

Tool : Codeblocks

Implementation:
#include<stdio.h>
int main()
{
int a;
printf("Enter your grade :");
scanf("%d",&a);

if(a>=95 && a<=100){


printf("Letter grade : A+\n");
printf("Grade Point : 4.00\n");
printf("Assessment : Outstanding\n");

}
else if(a>=85 && a<=94){
printf("Letter grade : A\n");
printf("Grade Point : 4.00\n");
printf("Assessment : Superlative\n");
}
else if(a>=80 && a<=84){
printf("Letter grade : A-\n");
printf("Grade Point : 3.80\n");
printf("Assessment : Excellent\n");
}
else if(a>=75 && a<=79){
printf("Letter grade : B+\n");
printf("Grade Point : 3.30\n");
printf("Assessment : Very good\n");
}
else if(a>=70 && a<=74){
printf("Letter grade : B\n");
printf("Grade Point : 3.00\n");
printf("Assessment : Good\n");
}
else if(a>=65 && a<=69){
printf("Letter grade : B-\n");
printf("Grade Point : 2.80\n");
printf("Assessment : Average\n");
}
else if(a>=60 && a<=64){
printf("Letter grade : C+\n");
printf("Grade Point : 2.50\n");
printf("Assessment : Below Average\n");
}
else if(a>=55 && a<=59){
printf("Letter grade : C\n");
printf("Grade Point : 2.20\n");
printf("Assessment : Passing\n");
}
else if(a>=50 && a<=54){
printf("Letter grade : D\n");
printf("Grade Point : 1.50\n");
printf("Assessment : Probationary\n");
}
else if(a<50 && a>=0){
printf("Letter grade : F\n");
printf("Grade Point : 0.00\n");
printf("Assessment : joss\n");
}
else if(a<0){
printf("input error");
}
else if(a>100){
printf("Input error");
}
return 0;
}

Result and Analysis: Rigorous testing has been conducted to ensure the
program's accuracy in translating numerical grades to letter grades, grade points, and
assessments. The system successfully handles various scenarios, including invalid
inputs.
Conclusion: The implemented grading system program stands as a reliable tool for
ULAB students, offering a clear interpretation of their academic achievements. As we
move forward, the program can be extended to include additional features such as
GPA calculation and integration with student databases, fostering continuous
improvement in academic evaluation processes.

You might also like