CSC113_Tutorial1 - that copies in arEmployeeId and...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
KSU / CCIS CSC113 Tutorial 1 – PRIMITIVE DATA ARRAYS Date: 09 – 13/10/2010 Create class EmployeeSet including the following: - arEmployeeId : array of double that represent Employee Id numbers. Can hold 100 elements. - arEmployeeName : array of String that represent Employee names. Can hold 100 elements. - No-argument constructor initializes arEmployeeId and arEmployeeName with the default values 0 and “NONAME”. - Constructor EmployeeSet(double[] EmployeeIds, String[] EmployeeNames)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: that copies in arEmployeeId and arEmployeeName the content of the arrays given as parameters. We suppose the size of EmployeeIds and EmployeeNames < 100 .-Method addEmployee(double id, String name) that adds a Employee’s data at the end of the arrays.-Method deleteEmployee(double id) that deletes the given Id number and the corresponding name. Deletion will consist in setting to default values....
View Full Document

Ask a homework question - tutors are online