Design into java code

Assignment Help JAVA Programming
Reference no: EM13896135

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.

Reference no: EM13896135

Questions Cloud

Ordinary language the concept of gender as structure : If you had to summarize in ordinary language the concept of "gender as structure," what would you say? (How would you explain "gender as a social institution" to a relative or a friend?)
Identify ethical issues involved in marketing : Identify ethical issues involved in marketing to the customer and discuss how your company can use Customer Relationship Management (CRM) to service its customers.
What circumstances would an incumbent firm facing : Why, and in what circumstances, would an incumbent firm facing potential entry find it profitable to expand its production capacity above the level that a monopolist ignoring entry would choose?
To be an effective communicator we must master the core : To be an effective communicator we must master the core competence of listening
Design into java code : 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, theAssignment Clas..
Assuming the exchange rate between malaysian ringgits : Assuming the exchange rate between Malaysian ringgits and U.S. dollars is $ 0.4538 on March 1 and $ 0.4899 on March 31, prepare the entries to record the sale on March 1 and the cash receipt on March 31.
Define empathy and explain why it is important for effective : Define empathy and explain why it is important for effective communication
Online snooping case : HELEN: Dear Diary-- Oh, I can't believe I just wrote that. It's been years since I kept a diary and I never thought I'd pick up the habit again. But a friend recently reminded me how much writing about your problems can help you sort them out, so,..
Interest on the debt securities purchased in transaction : Prepare journal entries to record the following transactions involving the short term securities investments of Krum Co., all of which occurred during year 2013.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd