Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

undefined please help me with this question programming language java 2 waiting.... Part II Question 1 Implement the class Project only. You can assume that

image text in transcribedundefined

please help me with this question

programming language java 2

waiting....

Part II Question 1 Implement the class Project only. You can assume that the code of the classes Developement Project and Research Project exist when you need to call their methods. Project leader: String -title: String -members: ArrayList -addMember name:String) hoolean findMember name String) boolean removeMember name:Suring boolean +oString():String Developement Project -language:String +Developement Project (all arguments) +oStringO: String //getters and setters Research Project - field : String +Research Project (all arguments) +toString(): String /getters and setters A- The Project class is characterized by three data fields: a String leader, a String title, and an array list of strings that represent the name of persons working on this project. Write the following methods: O A constructor to initialize the title and the leader data fields, . o Getters and setters (as shown in the UML). fin Member method that takes as parameter the name of a person and returns true if this name exists in the ArrayList o addMember method that takes as parameter the name of a person to be added to the ArrayList. This method returns false if the name already exists in the Array List, and true otherwise o removeMember method that takes as parameter the name of the person to be deleted from the array list. This method return false if the name does not exist in the Array List, and true otherwise A toString method to return information about all data fields. B- The Developement Project class inherits the class Project. It has one attribute language that represents the used programming language (for example java. c++, etc). Do not implement this class) C. The Research Project class inherits the class Project. It has one attribute field that represents the research field (example: Math. Biology, etc) (Do not implement this class) Question 2: Write a driver class application) in which you: a) Define an array (not an array list) of 4 projects. b) Fill it with 2 Development Project Objects and 2 Research Project Objects using values assigned by the programmer. Do not ask the user to enter the values. e) Write a static method void Display(Project projects that takes as parameter an array of projects and displays the information of all research projects that are in the field of "Biology". d) Write a static method int nb Research Projects(Course courses, String name) that takes as parameter an array of projects, and the name of a person. This method returns the number of research projects in which this person is a member e) Display the information of all development projects that use ju as a programing language

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started