TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Calculate Simple Mark Sheet Using Java
Senthilvelan Sambamoorthy
Aug 13
2016
Code
1.7
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
ssvadmit.rar
// mark calculation
import
java.io.*;
class
ssvadmit
{
public
static
void
main(String args[])
throws
IOException
{
int
c1=
0
,c2=
0
,c3=
0
,c4=
0
;
int
mark[] =
new
int
[
4
];
BufferedReader ip =
new
BufferedReader(
new
InputStreamReader(System.in));
System.out.print(
"Total Number of Student Marks:"
);
int
tot = Integer.parseInt(ip.readLine());
for
(
int
i=
1
;i<=tot;i++)
{
System.out.println();
System.out.println(
"Enter in order of MATHS(mark1),PHYSICS(mark2) & CHEMISTRY(mark3)"
);
System.out.print(
"Enter marks of student "
+ i +
" below:"
);
for
(
int
j=
1
;j<=
3
;j++)
{
System.out.println();
System.out.print(
"\tMark "
+ j +
" : "
);
int
mark1 = Integer.parseInt(ip.readLine());
if
(mark1 >
100
) { j=j--;
continue
;}
mark[j] = mark1;
}
int
cutof1 = mark[
1
] + mark[
2
] ;
int
cutof2 = mark[
1
] + mark[
2
] + mark[
3
];
if
(cutof1 >=
150
&& cutof2 >=
200
&& mark[
1
] >=
60
&& mark[
2
] >=
50
&& mark[
3
] >=
40
)
System.out.println(
"YOU ARE ELIGIBLE CANDIDATES"
);
else
System.out.println(
"YOU ARE NOT ELIGIBLE CANDIDATES"
);
}
}
}
Java