Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Java Expert


Home >> Java

Objectives:

 

-          Learn how to express class relationships in Java language syntax.

-          Learn how to create (or instantiate) and populate objects of classes.

-          Learn how to do simple unit testing. 

Instructions:

In assignment #2 you constructed -as a design activity- the class diagram from a set of classes which form the basis for a simple project management tool. Your design should have the following classes: Employee Class, Project Class, Consultant Class, Manager Class, the Assignment Class, and any other classes you may added. In this assignment you are asked to translate your design into Java code.

Important Note: Your code should be consistent with your design in terms of class’s relationships, naming of classes, instances variables, visibility and methods. Any differences or modifications to your design from assignment #2 should be justified and explained, i.e. submit your old and the new modified design.

You task:

(1)   Implementation task: Write a client program (Main class) to test all classes. You should use proper methods to set and get data in the derived classes. You output should have an appropriate format (see 4 below) for displaying the contents of each class object; you could lose ½ the points for unformatted output.

(2)   Your code should be fully documented (classes, methods, etc.)

(3)   In the program main class, you should create and populate objects from each class type using the Java Scanner class i.e. you program should prompt the user to type in the input data to populate the class object’s data (in this process you are assigning the input date to the object instance variables).  Make sure you are using set methods of the class to populate the class instance variables and then use the get methods to print out the data.

(4)   Use the array data structure to store the assignments id numbers into the project class. No need to store the whole assignment objects into the array (use array of integers with size 10, fill the array with integers from 1-10). The Date can be a string type no needs to check the validity of the date.

Warning: Do not use the class constructor to populate the object data. You should write your own set and get methods for each class (use one method to populate each class and another method to print the data from the class). The Main class or in a separate class call the methods to populate and print the different class’s objects. In each method, you first create the class object, then populate the object data using Java scanner, and then print the object data in a readable format. (Or you can create the objects in the main class and pass it to your methods).

(5)    Print the object data in the following format (clean your output):

·  Expected Format for your output: ( Create 2 sample objects from each class)

      Example (1) of object Employee:

Id#

Name :

Age:

etc.

 

Example (2) of object Employee:

 

Id#

Name :

Age:

etc.

 

Example (1) of object Project:Id#

 

Name :

Manager:

Start_Date:

etc. 

Similar output for all other class’s objects 

(4)   Code, Compile, Run, and Save the output in a text file with the name lab4output.txt into lab4 folder. 

  1. Save all your work.
  2. Print a hard copy of your Java program (use the IDE for printing).
  3. Submit a hard copy of the following documents and staple them in the following order: 

1) A cover page,

2) A copy of your Graded design from assignment #2, if you modified your old design (corrected the errors) you need to submit the old and the new modified design also.

3) Your code (submit softcopy & hard copy of your code and the sample outputs), include your team members names on all code files. 

4) Your output (clean your output from any other text messages you may used during the data input).  

  1. In your personal storage, rename “Lab4” folder to “Lab4_yourName then copy the file (s) which include your new design (after correction) to the same folder and create a Zipped file for all files including the output file). 
  1. Upload your zipped files to the Moodle website, and click submit.

Java, Programming

  • Category:- Java
  • Reference No.:- M91570171
  • Price:- $40

Guranteed 36 Hours Delivery, In Price:- $40

Have any Question?


Related Questions in Java

Project requirementsfor the problem described in the next

Project requirements For the problem described in the next section, you must do the following: 1. include your student ID at the end of all filenames for all java code files. Three classes have been identified in section ...

Assessment socket programmingtaskwrite a java gui program

Assessment: Socket Programming Task Write a JAVA GUI program that would facilitate text chatting/exchanging between two or multiple computers over the network/internet, using the concept of JAVA socket programming. If yo ...

In ruby the hash class inherits from enumerable suggesting

In Ruby, the Hash class inherits from Enumerable, suggesting to a programmer that Hashes are collections. In Java, however, the Map classes are not part of the JCF (Java Collections Framework). For each language, provide ...

Assessment database and multithread programmingtasktask 1

Assessment: Database and Multithread Programming Task Task 1: Grade Processing University grading system maintains a database called "GradeProcessing" that contains number of tables to store, retrieve and manipulate stud ...

Assignment - java program using array of objectsobjectives

Assignment - JAVA Program using array of objects Objectives - This assessment item relates to the course learning outcomes as stated in the Unit Profile. Details - For this assignment, you are required to develop a Menu ...

Can someone please help me with the following java

can someone please help me with the following java question The input is an N by N matrix of nonnegative integers. Each individual row is a decreasing sequence from left to right. Each individual column is a decreasing s ...

Applied software engineering assignment 1 -learning

Applied Software Engineering Assignment 1 - Learning outcomes - 1. Understand the notion of software engineering and why it is important. 2. Analyse the risk factors associated with phases of the software development lif ...

Assessment -java program using array of Assessment -JAVA Program using array of objects

Assessment -JAVA Program using array of objects Objectives This assessment item relates to the course learning outcomes as stated in the Unit Profile. Details For this assignment, you are required to develop a Windowed G ...

Part a specification - robot simulationpart a

PART A Specification - Robot Simulation PART A Requirements To complete this assignment you will use the supplied eclipse project Robot P1/. It is already set up to execute a simple arm movement loop which you will build ...

Operating systems assignment -problem 1 sharing the bridgea

Operating Systems Assignment - Problem 1: Sharing the Bridge A new single lane bridge is constructed to connect the North Island of New Zealand to the South Island of New Zealand. Farmers from each island use the bridge ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As