public Customer createCustomer(String s)
	{
		String rawName = s;
		rawName = rawName.substring(1);
		String[] names = rawName.split(" ");
		String firstName = names[0];
		firstName = firstName.substring(0, 1).toUpperCase() + firstName.substring(1);
		String lastName = names[1];	
		lastName = lastName.substring(0, 1).toUpperCase() + lastName.substring(1);
		boolean needsWork = true;
		String type = null;
		while(needsWork)
		{
			System.out.println("What type of customer is this (wholesale/retail)?");
			type = input.next();
			if ( !type.equalsIgnoreCase("retail") && !type.equalsIgnoreCase("wholesale"))
			{
				System.out.println("You did not enter a valid type. Please try again.");
			}
			else
				needsWork = false;	
		}
		boolean needsWork2 = true;
		int discount = 0;
		while( needsWork2)
		{
			try{
				System.out.println("What is the percentage of discount (if any)?");
				discount = input.nextInt();
				if (discount<= 100)
					needsWork2 = false;
				else
				{
					System.out.println("You did not enter a valid number. Please try again.");
					needsWork2 = true;
					input.nextLine();
				}
			}
			catch (InputMismatchException e)
			{
				System.out.println("You did not enter a valid number. Please try again.");
				needsWork2 = true;
				input.nextLine();
			}
		}
		Customer cc = new Customer(lastName, firstName, type, discount);
		return cc;
	}