Develop a marksheet of a student based on 80% weightage from Examination marks and 20% from Games and Sports.
<p>Develop a marksheet of a student based on 80% weightage from Examination marks and 20% from Games and Sports. The information of student such as Roll number, Name, Address and Age can be obtained from the Student class. Obtain the 5 subjects Examination Marks of a student from ExamMark class and Sport weightage from Sports class.</p>

<p>The marksheet of a student should consist following:</p>

<p>Roll No.
Name
Address
Age
Individual mark of 5 subjects &amp; 80% equivalent 
Weightage of Sports &amp; 20% equivalent
Result(100%)
Remark: (>=80:A+,  >=70 and &lt;80:A, >=60 and &lt;70:B, >=50 and &lt;60: C, >=40 and &lt;50: D, >=35 and &lt;40:E and &lt;35:F</p>

<p>i have got this far but it is showing error..please advice...i have been trying a lot..</p>

<p>import java.util.*;</p>

<p>import java.lang.*;</p>

<p>import java.io.*;</p>

<p>class Student{</p>

<pre><code>        int age;
        double S1,S2,S3,S4,S5;
        String Name,Roll,Address;

        void displayDetails() {

            Scanner input = new Scanner(System.in);

            System.out.println("Enter your Roll no:");
            Roll=input.nextLine();

            System.out.println("Enter your name:");
            Name=input.nextLine();

            System.out.println("Enter your Address:");
            Address=input.nextLine();

            System.out.println("Enter your age:");
            age=input.nextInt();

        }
</code></pre>

<p>}</p>

<p>class ExamMark extends Student{</p>

<pre><code>int age;
String Name,Roll,Address;
double S1,S2,S3,S4,S5,total,average,ExamMarkWeightage;

void displayMarks(){

    Scanner input= new Scanner(System.in);

    System.out.println("Enter the marks of first subject:");
    S1=input.nextDouble();

    System.out.println("Enter the marks of second subject:");
    S2=input.nextDouble();

    System.out.println("Enter the marks of third subject:");
    S3=input.nextDouble();

    System.out.println("Enter the marks of fourth subject:");
    S4=input.nextDouble();

    System.out.println("Enter the marks of fifth subject:");
    S5=input.nextDouble();

    total=(S1+S2+S3+S4+S5);
    average=(total/5);

    ExamMarkWeightage=(float)(average/100)*80;

    System.out.println("Result.");
    System.out.println("Roll no:"+Roll);
    System.out.println("Name:"+Name);
    System.out.println("Age:"+age);
    System.out.println("The marks of the individual subjects are:");
    System.out.println("The marks of the 1st subject is:"+S1);
    System.out.println("The marks of the 2nd subject is:"+S2);
    System.out.println("The marks of the 3rd subject is:"+S3);
    System.out.println("The marks of the 4th subject is:"+S4);
    System.out.println("The marks of the 5th subject is:"+S5);
    System.out.println("Total:"+total);
    System.out.println("Average:"+average);
}
</code></pre>

<p>}</p>

<p>interface Sport{</p>

<pre><code>int basket,football,ToTal;
double SportWeightage;

Scanner game= new Scanner(System.in);

    System.out.println("Enter the mark of the basketball:");
    basket=game.nextInt();

    System.out.println("Enter the mark of football:");
    football=game.nextInt();

    ToTal=basket+football;

    SportWeightage=(double)(ToTal/20)*20;

    System.out.println("The SportWeightage of the student: " +SportWeightage);
</code></pre>

<p>}</p>

<p>class Result extends ExamMark implements Sport{</p>

<pre><code>double Result,Remark;
void displayResults(){

    Result=(float)(ExamMarkWeightage+SportWeightage);

    System.out.println("Roll number of the student: "+Roll );
    System.out.println("Name of the student: "+Name);
    System.out.println("Address of the student:"+Address);
    System.out.println("Age of the student:"+age );

    System.out.println("the mark of the sub1:"+S1);
    System.out.println("the mark of the sub2:"+S2);
    System.out.println("the mark of the sub3:"+S3);
    System.out.println("the mark of the sub4:"+S4);
    System.out.println("the mark of the sub5:"+S5);

    System.out.println("The ExamMarkWeightage of the student: " + ExamMarkWeightage);
    System.out.println("The SportWeightage of the student: " + SportWeightage);
    System.out.println("The Result of the student: " + Result);

    System.out.println("Remark:");

        Remark=(float)Result;

                if(Result&gt;=80){
                System.out.println("A+");
                }
                else if(Result&gt;=70 &amp;&amp; Result&lt;80){

                System.out.println("A");
                }

                else if(Result&gt;=60 &amp;&amp; Result&lt;70){
                System.out.println("B");
                }

                else if(Result&gt;=50 &amp;&amp; Result&lt;60){
                System.out.println("C");
                }

                else if(Result&gt;=40 &amp;&amp; Result&lt;50){
                System.out.println("D");
                }

                else if(Result&gt;=35 &amp;&amp; Result&lt;40){
                System.out.println("E");
                }
                else if (Result&lt;35){
                System.out.println("F");
                }

}
</code></pre>

<p>}</p>

<p>public class Lab05{
    public static void main(String [] args){</p>

<pre><code>        Result r=new Result();
        r.displayDetails();
        r.displayMarks();
        r.displaySports();
        r.displayResults();
}
</code></pre>

<p>}</p>
