Answer to Question #59131 in Java | JSP | JSF for Peter

Question #59131
The UML diagram for an Instantiable class Person is shown below:

Write an application program to create 5 person objects, with appropriate data, using a suitable array.
Using the information entered for the 5 objects, write methods to:
• count the number of females in the array
• count the number of people aged over 25
• find the average age of all males
• find the average age of all people

Person

-name:String
-age:int
-gender:char

+Person()
+Person(String, int, char)
+setName(String):void
+setAge(int):void
+setGender(char):void
+getName():String
+getAge():int
+getGender():char
+toString():String
1
Expert's answer
2016-04-12T15:09:04-0400
The answer to the question is available in the PDF file https://www.assignmentexpert.com/https://www.assignmentexpert.com/homework-answers/programming-answer-59131.pdf

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS