preview

Nt1310 Unit 8 Assignment 5

Satisfactory Essays

// Assignment #: 8 // Name: Yuxi Dong // StudentID: 1211773456 // Lecture: T/Th 4:30 pm // Description: The Assignment 8 class displays a menu of choices to a user // and performs the chosen task. It will keep asking a user to // enter the next choice until the choice of 'Q' (Quit) is // entered. import java.io.Serializable; public class ProjectManagement implements Serializable { //define attributes private Project[] projectList; private int currentProjectsCount; private int maxSize; public ProjectManagement(int maximumsize) //initialize the member varieble maxSize { this.maxSize = maximumsize; this.currentProjectsCount = 0; projectList …show more content…

Return -1 if not found for (int i = 0; i < maxSize; i++) { if (projectList[i].getProjNumber() == projectNumber) { return i; } } return -1; } public int managerExists(String firstName, String lastName, int deptNum) { //Search and for Project objects in the project list that have the //same first name, last name, and department number as the …show more content…

Return false //if an object with the same project number already exists return status; } public boolean removeProjectNumber(int

Get Access