midterm_grades

midterm_grades -...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
import java.util.*; import java.lang.*; import java.io.*; import java.text.*; import java.math.*; import java.text.DecimalFormat; import javax.swing.JOptionPane; i //Jeremy Debruce //Oct. 15 2007 //Professor Campbell / public class midterm_grades { public static void main(String[] args) throws FileNotFoundException, IOException { System.out.println("************************************************************"); System.out.println("* Atheletes Grades *"); System.out.println("*The purpose of this program is to calculate Grades *"); System.out.println("* of important people *");
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: System.out.println("************************************************************"); //Variables String Namea; String nameb; int a,b,c,d,e,f; Scanner inFile = new Scanner(new FileReader("G:\\ath.txt")); S for(int i=0;i<20;i++) { //Store Data Namea = inFile.next(); nameb = inFile.next(); n a = inFile.nextInt(); b = inFile.nextInt(); c = inFile.nextInt(); d = inFile.nextInt(); e = inFile.nextInt(); f = inFile.nextInt(); System.out.println(" "+Namea+" "+nameb+" "+a+" "+b+" "+c+" "+d+" "+e+" "+f); " } System.out.println("Have a nice day"); } }...
View Full Document

This note was uploaded on 06/17/2011 for the course COMP CS 2301 taught by Professor Staff during the Spring '10 term at Kennesaw.

Page1 / 2

midterm_grades -...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online