using java a class of 10 students that will take 3 exams. use 3 arrays to hold the scores for each student and another to hold the average of the 3 exams for each student. print a table with the scores and average
A Java program for the given criteria as follows,
File name: “StudentScore.java”
public class StudentScore
public static void main(String args)
//Create Scanner object
Scanner s=new Scanner(System.in);
//Declare the variables
int i, sum;
//Declare three arrays to hold marks
int score = new int;
int score1= new int;
int score2= new int;
//Declare array to hold average
double avg=new double;
//Assign the initial values
//create for loop to iterate over 10 students
for (i=0; i<10; i++)
//Prompt the user to enter marks for three exams
System.out.println("Enter details of student: "+(i+1));
System.out.println("Enter the marks for Exam1, Exam2, and Exam3");
//Get the marks from the user
//Calculate the total marks
//Calculate the average
//Print the table header
System.out.print("STUDENT\tExam 1\tExam 2\tExam 3\tAverage");
//Create loop to display result
//Print the results
Screenshot of program #1:
Screenshot of program #2:
Screenshot of output #1...
Q: what could be the value of the register $t1 after excuting the instruction SLL $t1,$t0,1 if the valu...
A: SSL acronym as Shift Left Logical. It only applied to bits. It applied to the right-most position of...
Q: What are the SQL query commands to create the tables (attached) with appropriate attributes and data...
A: Primary key:A primary key is a minimal array of attributes (columns) in a table in which tuples (row...
Q: Write a simplified expression for the Boolean function defined by each of the following Kmaps.
A: K-map stands for Karnaugh map that provides a way of grouping the expression together on the basis o...
Q: Define a function CoordTransform() that transforms its first two input parameters xVal and yVal into...
A: This program takes two inputs from the user. The CoordTransform() function is used to transform the ...
Q: In Python Use the Design Recipe to write a function has_duplicates, which consumes a list and return...
A: This program returns true when a list has duplicate value, if the list has not any duplicate value t...
Q: I am trying to use printf for a system.out.print statement. I dont understand how to turn it to a pr...
A: The printf statement of the given print statement is following:System.out.printf("The total area for...
Q: This is for python
A: The expression would be:dow[len(dow)-2] The program is following:dow = "help!"print(dow[len(dow)-2])
Q: Simplify the following Boolean function and expression, using four-variable maps b) F = x’z + w’xy’...
A: (a) F = x’z + w’xy’ + w(x’y + xy’)= x’z + w’xy’ + wx’y + wxy’ Mapping the above expression into the ...
Q: If you wanted to apply an exception for the current subnet, what would you type?
A: Explanation:The user can type the following on linux to apply exception for the current subnet,defau...