Computer Science, asked by saanvi2012072, 2 months ago

write the program to accept details and to print report card for three students

Answers

Answered by njb007
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