Create a class called Diner (as in one who dines) that storest eh persons name, gender and location at the dinner table. Location is an integer and the name and gender are strings. The Diner data type should have at minimum:
-construcotrs: a default constructor, an explicit value constructor
-accessors: for the name, gender and location
-equals (Diner other) - as a method that receives an object parameter and returns true if the object parameter is equal to the calling object
Create an applet class named program8 that displays a graphical seating chart for the dinner party of 6 diners. In the applet, a diner is graphically represented as a circle, color-coded by gender, with the persons name printed in the circle
Bonus (would like done)
-modify the applet so that the number of guests can be dynamically entered and an array of Diners used. Then seat one person at the head of the table, one at the foot and half of each side.
-use extra creativity
-implement switchSeatsWith(Diner other) - a void function that has the calling object and the object parameter changing locations. The applet needs a way to call this method to show the change in location for the 2 diners.
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request.
3) Exclusive and complete copyrights to all work purchased. (No GPL, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site).