Java Project: Student Grade Calculator

Verified

Added on  2019/09/16

|2
|264
|335
Homework Assignment
AI Summary
This Java code provides a solution for a student grade calculator project. The program takes student names, classwork, midterm, and final exam scores as input. It uses arrays to store the data and a loop to iterate through each student. The code is designed to calculate and display the average grade for each student, although the average calculation and output parts are commented out in the provided code. This solution is a starting point for a more complete student grade management system.
Document Page
import java.util.Scanner;
public class My_Project
{
public static void main( String [] args )
{
Scanner scan = new Scanner (System.in);
String[] firstname = { "naji " , " lisa " , "andy " , "ravi " , "dava "
, "sara " , "sami " , "imed " ,"kira " , "hind " };
String [] lastname = { " hasan" , "smith" , "malik" , "gupta" ,
"blair" , "clark" , "moosa" , "radhi" , "sunny" , "ahmed" };
int[] classwork = new int[10];
int[] midterm = new int[10];
int[] finalexam = new int[10];
for (int i=0 ; i<10 ; i++)
{
System.out.print(firstname [i] );
System.out.print(lastname [i] ) ;
classwork [i] = scan.nextInt() ;
midterm [i] = scan.nextInt() ;
finalexam [i] = scan.nextInt() ;
}
// for (int i=0 ; i<10 ; i++)
//{ Avarage [i ] = }
//for (int i=0 ; i<10 ; i++)
//{ System.out.print fn ln[i] cw[i] m f Avarage[] } + between
them
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
}
}
chevron_up_icon
1 out of 2
circle_padding
hide_on_mobile
zoom_out_icon
[object Object]