School - "VA", 24551); Student...

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

View Full Document Right Arrow Icon
//******************************************************************** // School.java Author: Lewis/Loftus // // Solution to Programming Project 4.7 //******************************************************************** / import java.text.DecimalFormat; i public class School { //----------------------------------------------------------------- // Creates some Address and Student objects, adds them to a course, // 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, 75, 88, 78); Address mHome = new Address ("123 Main Street", "Euclid", "OH", 44132); Student marsha = new Student ("Marsha", "Jones", mHome, school, 100, 98, 94); ; Course zoology = new Course("Zoology"); zoology.addStudent(john); zoology.addStudent(marsha); zoology.roll(); DecimalFormat formatter = new DecimalFormat("0.0#"); System.out.println("\n-----------------------------------------------"); System.out.println("Average test score of all tests in this course: " + formatter.format(zoology.average())); } }...
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