Design a person class similar to the coin class defined in


Question: Design a Person class similar to the Coin class defined in this chapter. Then design and implement a driver class called SelectPerson whose main method creates two Person objects, then randomly selects a gender in both to see in which object a female gender is selected two times in a row. Consider the possibility that they might tie. Print the results of each selection and then print the object name which comes up first with the female gender being selected twice, consecutively

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Design a person class similar to the coin class defined in
Reference No:- TGS02318628

Expected delivery within 24 Hours