if the marks of robert in three subjects are 78,45 and 62 respectively (each out of 100 ), write a program to calculate his total marks and percentage marks.
Answers
Answered by
2
total marks = 78 + 45 + 62 = 185
Percentage of total marks = 185/300 X 100 = 61.67% (300 = 100 x 3subjects)
Answered by
0
Answer:
Step-by-step explanation:
import java.util.*;
public class Scanner
{
public static void main(String[ ] args) {
Scanner in= new Scanner(System.in);
System.out.println("Enter the marks");
double a=in.next();
double b=in.next();
double c=in.next();
double total= a+b+c;
double Percent = total/300 *100;
System.out.println("Total marks =" + total);
System.out.println("Percentage="+Percent);
}
}
Similar questions
Math,
7 months ago
India Languages,
7 months ago
Physics,
1 year ago
Chemistry,
1 year ago
English,
1 year ago