import java.util.Scanner;.

Added on - 16 Sep 2019

  • 2

    Pages

  • 264

    Words

  • 117

    Views

  • 0

    Downloads

Trusted by +2 million users,
1000+ happy students everyday
Showing pages 1 to 1 of 2 pages
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.printfn ln[i] cw[i] m f Avarage[] } + betweenthem
desklib-logo
You’re reading a preview
Preview Documents

To View Complete Document

Click the button to download
Subscribe to our plans

Download This Document