Ask Java Expert


Home >> Java

For this assignment you create a set of Java classes that faithfully realizes a set of UML class diagrams. This means you will define classes with the appropriate attributes and operations. You will not, however, need to fully implement the methods; rather, you will use method stubs (described below). In the end you will have code that compiles but does not execute.

The class diagrams are available in the document, Library Asset Manager Design.You are permitted to use other classes included in the libraries of Java 6 Standard Edition.

Your source code must meet the class coding standards.
Method Stubs

When implementing a class it's often useful to establish interfaces before providing implementations. This ensures that the classes are correctly declared and as you implement operations the source code will compile. One of the rules of Java is that if a operation has a non-void return type, the method must return a value of that type. If it doesn't, a compiler error occurs.

For ex, the following will not compile since an int value should be returned:

int doSomething() {
}

If the initial goal is compilation, we stub the operation by returning a value. So,

int doSomething() {
return 0;
}

Choosing a value to be returned from the stub depends on the situation and how the operation is being used. When testing the stub may be changed to test the different functionalities of the caller. For the purposes of this assignment the actual value doesn't matter provided it is of the appropriate type.
Submission Requirements

Your submission for this assignment will consist of a single zip file that contains the Java source code files (no .class files!) and the two text files containing the asset and account data. The files should not be nested in another folder. The files need to compile with a Java 6 compiler and cannot depend on anything more than each other and the Java 6 Library.

Each each class must be contained in its own file and begin with a header of the form

//
// CLASS : 
// AUTHOR : 
//
// CLASS DESCRIPTION
//
//
// KNOWN LIMITATIONS
//
//
// ------------------------------------------------------------------------------------------------

You will complete the headers by providing:

The name of the class after "CLASS : "
Your name and access id after "AUTHOR : " in the form
AUTHOR : Joe Marks (jam103)
A brief descrption of the class under CLASS DESCRIPTION
A description of any problems you know exist in your code such as methods that don't work right (describe the shortcomings) or assumptions made that might lead to the class not working correctly under KNOWN LIMITATIONS

Notes on Evaluation

The evaluation of your assignment is in terms of the quality of the content and presentation. For each dimension, below are a set of problems to consider as you are thinking about your solution. The list isn't necessarily complete; you will want to refer back to the lesson content.

Content

Did I meet the specified requirements?
Did I use the most appropriate data types and classes provided by Java?
Do the Java classes have a structure that faithfully realizes the structure defined in the UML diagrams?
Did I use good programming practices?
Is there anything I can do to make the implementation cleaner or more robust?

Presentation

Did I follow the course coding standards?
Are my comments complete sentences and use proper grammar and spelling?
Are identifiers meaningful?
Did I make good use of what space?
Is there anything I can do to make the code more elegant?

Java, Programming

  • Category:- Java
  • Reference No.:- M990722

Have any Question?


Related Questions in Java

Chatbotscreate a small networked chat application that is

Chatbots Create a small, networked chat application that is populated by bots. Introduction On an old server park, filled with applications from the early days of the internet, a few servers still run one of the earliest ...

Assignment taskwrite a java console application that allows

Assignment task Write a java console application that allows the user to read, validate, store, display, sort and search data such as flight departure city (String), flight number (integer), flight distance (integer), fl ...

Assignment game prototypeoverviewfor this assessment task

Assignment: Game Prototype Overview For this assessment task you are expected to construct a prototype level/area as a "proof of concept" for the game that you have designed in Assignment 1. The prototype should function ...

Assignment taskwrite a java console application that allows

Assignment task Write a java console application that allows the user to read, validate, store, display, sort and search data such as flight departure city (String), flight number (integer), flight distance (integer), fl ...

In relation to javaa what is constructor the purpose of

(In relation to Java) A. What is constructor? the purpose of default constructor? B. How do you get a copy of the object but not the reference of the object? C. What are static variables and instance variables? D. Compar ...

Project descriptionwrite a java program to traverse a

Project Description: Write a java program to traverse a directory structure (DirWalker.java) of csv files that contain csv files with customer info. A simple sample in provided in with the sample code but you MUST will r ...

Fundamentals of operating systems and java

Fundamentals of Operating Systems and Java Programming Purpose of the assessment (with ULO Mapping) This assignment assesses the following Unit Learning Outcomes; students should be able to demonstrate their achievements ...

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 ...

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 ...

Retail price calculatorwrite a java program that asks the

Retail Price Calculator Write a JAVA program that asks the user to enter an item's wholesale cost and its markup percentage. It should then display the item's retail price. For example: (If an item's wholesale cost is 5. ...

  • 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