Computer Science, asked by hania8711, 4 months ago

write a program that takes marks obtained by a student in five different subject find out the aggregate marks and percentage

Answers

Answered by kritikagarg2707
1

View the above images.

Hope it helps

Please make it the brainliest answer

Attachments:
Answered by dawnsaptarshi
1

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

Similar questions