in Education by
Write a JAVA program to store the marks of any 5 subjects in different variables. Calculate total and average. Display the name of the student, total and average. DO NOT USE ANY INPUT METHOD Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
public class marks { public static void main(String args[]) { int a,b,c,d,e; //to store marks for 5 subjects int total; //to store total double avg; //to store average a=67; b=78; c=89; d=91; e=83; total=a+b+c+d+e; avg = total/5; System.out.println(“Rajiv Total Marks = “+total+” and Average Marks = “+avg); } }

Related questions

0 votes
    Write a JAVA program to store the marks of any 5 subjects in different variables. Calculate total and average. ... total and average. Select the correct answer from above options...
asked Nov 30, 2021 in Education by JackTerrance
0 votes
    Using Scanner, input name, class, div, roll number and marks in three subjects of a student. Calculate total ... total and average. Select the correct answer from above options...
asked Nov 26, 2021 in Education by JackTerrance
0 votes
    Write a JAVA program to find the area and perimeter of a square and rectangle. Store side in s , length as ... USE ANY INPUT METHOD Select the correct answer from above options...
asked Dec 22, 2021 in Education by JackTerrance
0 votes
    to write a program to accept marks of three subjects and find the total mark and average marks in 3 subject Select the correct answer from above options...
asked Dec 27, 2021 in Education by JackTerrance
0 votes
    to write a program to accept marks of three subjects and find the total mark and average marks in 3 subject Select the correct answer from above options...
asked Dec 26, 2021 in Education by JackTerrance
0 votes
    write a program in python to enter the mark in 3 subjects and calculate total and assign grade. If total >= 200 ... grade is B' Select the correct answer from above options...
asked Nov 27, 2021 in Education by JackTerrance
0 votes
    Write a JAVA program to find the area and perimeter of a square and rectangle. Store side in s , length ... results in separate lines. Select the correct answer from above options...
asked Dec 21, 2021 in Education by JackTerrance
0 votes
    write a Java program to input 10 non-zero numbers in an array and display the count of even and odd numbers. URGENT! Select the correct answer from above options...
asked Dec 31, 2021 in Education by JackTerrance
0 votes
    write a Java program to accept a full name and display the initials along with the surname. URGENT! give the full program please Select the correct answer from above options...
asked Dec 31, 2021 in Education by JackTerrance
0 votes
    5. Write a program to read and store the following data in two different arrays. Using Binary Search Method search for ... 85, 72, 89 Select the correct answer from above options...
asked Dec 15, 2021 in Education by JackTerrance
0 votes
    Write a JAVA program to store the temperature in Celsius and convert it into Fahrenheit using the following formula ... INPUT METHOD Select the correct answer from above options...
asked Dec 22, 2021 in Education by JackTerrance
0 votes
    Write a program which sends the name of a text file from the client to server and display the message on the ... file present or not. Select the correct answer from above options...
asked Dec 1, 2021 in Education by JackTerrance
0 votes
    Write a program to generate first 20 terms of Fibonacci series and store them in single dimension array. Display ... from the array Select the correct answer from above options...
asked Dec 10, 2021 in Education by JackTerrance
0 votes
    write a program to store 1st 25 prime number in an erray and display it Select the correct answer from above options...
asked Dec 6, 2021 in Education by JackTerrance
...