0% found this document useful (0 votes)
5 views1 page

Java Student Report Card Program

Java script 9

Uploaded by

siva
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views1 page

Java Student Report Card Program

Java script 9

Uploaded by

siva
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Program

16:
class
Student
{ args)(
main(Stringl]
void 100,89, 79,99):
statiC
public (91,95,
marks=
int/]
inttotal
=0
true;
result= report card");
boolean ("student
println(
[Link]. marks:"+marks[il)
i<[Link];i++)f
i-0; "+(i+1)) +"
"'subject
[Link],println(
for(int
marks[il:
total+
total= <35)
ifimarksli]
result=false;

marks: "+total):
[Link].,printin("total
total/[Link];
= "+avg):
intavg ("'average:
[Link]

ifresult) {
[Link]("Grade
iffavg>= 75) { : Distinction");

else ifavg>= 60){


[Link]("Grade: First Class");

else iflavg >= 50) {


[Link]("Grade : Second Class");

else (
[Link]("Grade: Third Class");

else {
[Link]("Welcome Again");

32

You might also like