write a program that takes marks obtained by a student in five different subject find out the aggregate marks and percentage
Answers
View the above images.
Hope it helps
Please make it the brainliest answer
Answer:
import java.io.*;
class O{
public static void main (String args[])throws IOException
{
int a,b,c,d,e,n,f;
DataInputStream in = new DataInputStream(System.in);
System.out.print("Enter the marks of first subject:");
a=Integer.parseInt(in.readLine());
System.out.print("Enter the marks of second subject:");
b=Integer.parseInt(in.readLine());
System.out.print("Enter the marks of third subject:");
c=Integer.parseInt(in.readLine());
System.out.print("Enter the marks of fourth subject:");
d=Integer.parseInt(in.readLine());
System.out.print("Enter the marks of fifth subject:");
e=Integer.parseInt(in.readLine());
n=a+b+c+c+d+e;
f=n/5;
System.out.print("agreegate marks="+n);
System.out.print(" overall percentage="+f);
}}
Explanation: mark me brainliest plzz