Computer Science, asked by itsbangtangirlhere4, 1 month ago

write a java program to calculate total and percentage of five subjects marks of students also Input and display name of student .
{ assignment statement }


please send fast​

Answers

Answered by anushreeverma123
5

Answer:

Hope it helps u

Explanation:

/ Java program to find Total Average and percentage of Five Subjects

import java.util.Scanner;

public class Totalof5subjects1 {

private static Scanner sc;

public static void main(String[] args)

{

int english, chemistry, computers, physics, maths;

float total, Percentage, Average;

sc = new Scanner(System.in);

System.out.print(" Please Enter the Five Subjects Marks : ");

english = sc.nextInt();

chemistry = sc.nextInt();

computers = sc.nextInt();

physics = sc.nextInt();

maths = sc.nextInt();

total = english + chemistry + computers + physics + maths;

Average = total / 5;

Percentage = (total / 500) * 100;

System.out.println(" Total Marks = " + total);

System.out.println(" Average Marks = " + Average);

System.out.println(" Marks Percentage = " + Percentage);

}

}

Answered by llsll546
0

answer

Cardiac arrest is a sudden and unexpected loss of heart function, breathing, and consciousness. It occurs when the heart's electrical system malfunctions, causing an irregular heartbeat (arrhythmia). This arrhythmia can cause the heart to stop pumping blood to the body, leading to a lack of oxygen in the brain and other vital organs. Cardiac arrest is a medical emergency that requires immediate intervention to prevent brain damage or death.

kittu its so silent here

Similar questions