StudentBody - "VA" 24551 Student john = new...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
//******************************************************************** // StudentBody.java Author: Lewis/Loftus // // Solution to Programming Project 4.6 //******************************************************************** / public class StudentBody { //----------------------------------------------------------------- // Creates some Address and Student objects and prints them. //----------------------------------------------------------------- public static void main (String[] args) { Address school = new Address ("800 Lancaster Ave.", "Villanova", "PA", 19085); Address jHome = new Address ("21 Jump Street", "Lynchburg",
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: "VA", 24551); Student john = new Student ("John", "Smith", jHome, school); john.setTestScore(1,78); Address mHome = new Address ("123 Main Street", "Euclid", "OH", 44132); Student marsha = new Student ("Marsha", "Jones", mHome, school, 100, 80, 94); System.out.println (john); System.out.println (); System.out.println (marsha); System.out.println("\nJohn's score on test 1 : " + john.getTestScore(1)); System.out.println("Marsha's score on test 1 : " + marsha.getTestScore(1)); } }...
View Full Document

This note was uploaded on 05/17/2011 for the course COP 3530 taught by Professor Davis during the Spring '08 term at University of Florida.

Ask a homework question - tutors are online