CSC 175 - Assignment #10

Dr. R. M. Siegfried

Assignment #10 - Enhancing a Class for a Name

Due Friday, February 16, 2024

In the last assignment, we created a class called Name. This time, we are going to add the following methods:

Create a main program that reads in three names and prints the name that is first in standard alphabetical order (by last name; if the last name is the same by first name; if both match by initial).

Extra credit: Create a program that reads in three names and prints them in the order in which they should appear. Hint: Write a method that takes all three names and returns the name that appears first, a method that takes all three names and returns the name that appears in last.

The previous assignment can be found in Assignment #9

[Back to the Assignment Index]