clc
clear
disp('Marks Calculation in Examination')
disp('********************************')
disp('50% Marks Before Mid Term Examination')
disp('-----------------------------------')
m=input('Mid Term in 30% Marks=');
if m<=30 & m>=0
disp('Right Input')
else disp('Wrong Input!!!')
end
ct1=input('Class Test 1 in 10% Marks=');
if ct1<=10 & ct1>=0
disp('Right Input')
else disp('Wrong Input!!!')
end
ct2=input('Class Test 2 in 10% Marks=');
if ct2<=10 & ct2>=0
disp('Right Input')
else disp('Wrong Input!!!')
end
if ct1>ct2
ctm=ct1
else ctm=ct2
end
a1=input('Assignment 1 in 5% Marks=');
if a1<=5 & a1>=0
disp('Right Input')
else disp('Wrong Input!!!')
end
DM=input('Attendance Before Mid[in 10 Days]=');
if DM<=10 & DM>=0
disp('Right Input')
else disp('Wrong Input!!!')
end
if DM>=8
amm=5
elseif DM>=7 & DM<8
amm=4
elseif DM>=6 & DM<7
amm=3
elseif DM>=5 & DM<6
amm=2
else amm=0
end
MT=m+ctm+a1+amm;
disp('++++++++++++++++++++++++++++++++++++')
disp('50% Marks After Mid Term Examination')
f=input('Final Exam in 30% Marks=');
if f<=30 & f>=0
disp('Right Input')
else disp('Wrong Input!!!')
end
ct3=input('Class Test 3 in 10% Marks=');
if ct3<=10 & ct3>=0
disp('Right Input')
else disp('Wrong Input!!!')
end
ct4=input('Class Test 4 in 10% Marks=');
if ct4<=10 & ct4>=0
disp('Right Input')
else disp('Wrong Input!!!')
end
if ct3>ct4
ctf=ct3
else ctf=ct4
end
a2=input('Assignment 2 in 5% Marks=');
if a2<=5 & a2>=0
disp('Right Input')
else disp('Wrong Input!!!')
end
DF=input('Attendance After Mid[in 10 Days]=');
if DF<=10 & DF>=0
disp('Right Input')
else disp('Wrong Input!!!')
end
if DF>=8
amf=5
elseif DF>=7 & DF<8
amf=4
elseif DF>=6 & DF<7
amf=3
elseif DF>=5 & DF<6
amf=2
else amf=0
end
FT=f+ctf+a2+amf;
disp('Total 100% Marks')
disp('****************')
T=MT+FT
if T>100
disp('Wrong Calculation')
end
disp('Grading & Point System')
disp('**********************')
if T>100
disp('Wrong Calculation')
elseif T>=80
disp ('Outstanding 4.00(A+)')
elseif T>=75 & T<80
disp('Excellent 3.75(A)')
elseif T>=70 & T<75
disp('Very Good 3.50(A-)')
elseif T>=65 & T<70
disp('Good 3.25(B+)')
elseif T>=60 & T<65
disp('Above Average 3.00(B)')
elseif T>=55 & T<60
disp('Average 2.75(B-)')
elseif T>=50 & T<55
disp('Bellow Average 2.50(C+)')
elseif T>=45 & T<50
disp('Poor 2.25(C)')
elseif T>=40 & T<45
disp('Pass 2.00(D)')
elseif T>0 & T<39
disp('Fail 0.00(F)')
else disp('Incomplete 0.00(I)')
end
(try it)
Comments
Post a Comment