Filename:Result.jsp
<!-- 08. Simplified JSP Program to Evaluate the Result of a Student. -->
<html>
<body>
<%!
//Initialize all the values in the beginning.
String stud_name="MANOHAR";
String course="BCA";
String sem="V Sem";
String reg_no="BC112033";
int m1=95;
int m2=95;
int m3=96;
int m4=95;
int m5=65;
int max_marks=500;
int total_marks;
float percent;
String grade;
%>
<%
//evaluate grade in this section.
total_marks=m1+m2+m3+m4+m5;
percent = (float)(total_marks*100) / 500;
if(m1<40 || m2<40 || m3<40 || m4<40 || m5<40)
grade= "FAIL";
else
{
if(percent >=70)
grade = "DISTINCTION";
else if(percent >= 60 && percent < 70)
grade = "FIRST CLASS";
else if(percent >= 50 && percent < 60)
grade = "SECOND CLASS";
else if(percent >= 40 && percent < 50)
grade = "PASS";
}
out.println("<br>");
%>
<h3> KUVEMPU UNIVERSITY</h3>
<h3> MARKS SHEET</h3>
<br>
<b>NAME OF THE STUDENT : <%=stud_name%>
<br>
REGISTER NUMBER : <%=reg_no%>
</b>
<br>
================================================
<br>
SUBJECTS MARKS OBTAINED
<br>
================================================<br>
1. K/U/H/S
<%=m1%>
<br>
2. ENGLISH
<%=m2%>
<br>
3. JAVA PROGRAMMING
<%=m3%>
<BR>
4. OPERATIONS RESEARCH
<%=m4%>
<br>
5. COMPUTER GRAPHICS
<%=m5%>
<br>
================================================<br>
<b>TOTAL MARKS
:
<%=total_marks%>
</b><br>
================================================<br>
<b>PERCENTAGE MARKS : <%=percent%>%</b><br>
<b>GRADE
: <%=grade%></b><br>
================================================<br>
</body>
</html>
<!-- 08. Simplified JSP Program to Evaluate the Result of a Student. -->
<html>
<body>
<%!
//Initialize all the values in the beginning.
String stud_name="MANOHAR";
String course="BCA";
String sem="V Sem";
String reg_no="BC112033";
int m1=95;
int m2=95;
int m3=96;
int m4=95;
int m5=65;
int max_marks=500;
int total_marks;
float percent;
String grade;
%>
<%
//evaluate grade in this section.
total_marks=m1+m2+m3+m4+m5;
percent = (float)(total_marks*100) / 500;
if(m1<40 || m2<40 || m3<40 || m4<40 || m5<40)
grade= "FAIL";
else
{
if(percent >=70)
grade = "DISTINCTION";
else if(percent >= 60 && percent < 70)
grade = "FIRST CLASS";
else if(percent >= 50 && percent < 60)
grade = "SECOND CLASS";
else if(percent >= 40 && percent < 50)
grade = "PASS";
}
out.println("<br>");
%>
<h3> KUVEMPU UNIVERSITY</h3>
<h3> MARKS SHEET</h3>
<br>
<b>NAME OF THE STUDENT : <%=stud_name%>
<br>
REGISTER NUMBER : <%=reg_no%>
</b>
<br>
================================================
<br>
SUBJECTS MARKS OBTAINED
<br>
================================================<br>
1. K/U/H/S
<%=m1%>
<br>
2. ENGLISH
<%=m2%>
<br>
3. JAVA PROGRAMMING
<%=m3%>
<BR>
4. OPERATIONS RESEARCH
<%=m4%>
<br>
5. COMPUTER GRAPHICS
<%=m5%>
<br>
================================================<br>
<b>TOTAL MARKS
:
<%=total_marks%>
</b><br>
================================================<br>
<b>PERCENTAGE MARKS : <%=percent%>%</b><br>
<b>GRADE
: <%=grade%></b><br>
================================================<br>
</body>
</html>
No comments :
Post a Comment