write the program to accept details and to print report card for three students
Answers
Answered by
1
Answer:
import java.io.*
import java.util.Scanner
class report
void main()
double m1,m2,m3;
String n1
Scanner sc = new Scanner();
for (int i = 1 ;i<4 ; i++)
{
S.o.pln ( "Name of Student : ");
n1 = String.parse();
S.o.pln ( "Enter marks 1 : ");
m1 = double.parseDouble();
S.o.pln ( "Enter marks 2 : ");
m2 = double.parseDouble();
S.o.pln ( "Enter marks 3 : ");
m3= double.parseDouble();
S.o.pln( " Name of Student : " + n1)
S.o.pln("percentage:" + (m1+m2+m3)/3);
}
}
}
Similar questions
Math,
1 month ago
Math,
1 month ago
Computer Science,
2 months ago
Environmental Sciences,
2 months ago
Geography,
8 months ago
Science,
8 months ago