// *************************************************************
// Name:         Mohamed Aboutabl
// Date:         10/12/2004
// Assignment:   Lab 15: TestNamesV3.java
//
// *************************************************************
// References & Acknowledgements: I received no outside help
//
// *************************************************************
// Name of the class:	TestNamesV3
// Purpose of the class: Test the Name class
// *************************************************************

import cs1.Keyboard ;

public class TestNamesV3
{
	/**----------------------------------------------------------
	// Test drive the Name class and its member methods
	// --------------------------------------------------------*/
	public static void main( String[] args)
	{
		// Variables Declarations

		Name name1 , name2 , name3 ;	// Objects for the 3 names
		int emailLen ;
					
		
		// Get the first person's name from the user
		System.out.println("Enter data of the first person:");			
		name1 = Name.inputName() ;

		// Get the second person's name from the user
		System.out.println("\nNow, enter data of the second person:");			
		name2 = Name.inputName() ;
		
		// Set the third person to a fixed value
		name3 = new Name("Mohamed" , "" , "Aboutabl" ) ;
				
		// Set the number of chars in an email-ID
		System.out.print("How many characters in a user's email ID? ");
		emailLen = Keyboard.readInt() ;
		Name.setEmailLength( emailLen ) ;

		// Now display the three names in the required format
		System.out.println("\nThe First person's data is:");
		name1.displayName() ;
		
		System.out.println("\nThe Second person's data is:");
		name2.displayName() ;


		System.out.println("\nThe Third person's data is:");
		name3.displayName() ;
	
								
	}
	
}