CPE 101, Turner --- Lab 3 --- Spring 2003

This lab is to be done individually. It is modified from one by Dr. O'Gorman.

Laboratory Exercise for Week 3

This lab is designed to give you further experience in designing and coding Java objects. You will create a worker class Person that contains information about a person's name, and an applicaion class that creates four Person objects and prints them in several ways.

You may have noticed that cultures in Asia usually give the surname first when using a person's name. Persons from these cultures often continue that preference even when relocated to a Western locale. Your Person objects will record the surname and given name of a person, along with the preference that person has for the way the name is said or written. Moreover, it will provide accessor ("getter") methods to produce the name in Western, Asian, and the preferred form, as well as to access the preference and the parts of the name.

Requirements: