Get Cheapest Assignment in Australia, UK, US, UAE, Canada and NZ Order Now

Java Assignment Help Australia


Submission Requirement:

Each part of your lab must be organized within a project in Eclipse with required documentation for
each source code. You must submit it as a zipped Eclipse project file for my grading. Please follow
instruction below in Steps to make a zipped Eclipse project or you may refer to more detailed
explanation in How to work on your lab and make a zipped Eclipse project for submission file posted in
the beginning of Modules of the Canvas. Labs must be submitted via Assignments link in Canvas. There
is an explanation how to submit your lab after you click on the lab assignment specification link in

Source code documentation requirement:

• Use of meaningful names for variables, classes, and methods and meaningful comments.
• Your name (last name, first name), class title and section #, the assignment #, and a brief description
of the lab as comment lines must show up at the top of each source code.
• There will be no point if your program does not run. There will be points off if you don’t follow the
instruction and requirements to code your lab.

Steps to make a zipped Eclipse project file:

  1. Create your lab as a Java project named Lab1 and all of source code should be in this project.
  2. Highlight the project title and make right mouse click, select Properties, select Resource, and
    you will see the directory or folder in your computer where the project is saved.
  3. Navigate to that directory, copy that folder to a different directory, say C:/Temp, and click on
    the right mouse button, select Sent to, and select the Compressed/zipped folder. Your file is
    ready for submission.
  4. For test if your file can be opened in Eclipse, select File, then Switch Workspace, and select
    Other…, type a new directory as your new workspace for test, say, Desktop/My Labs, Eclipse will
    create a new workspace. Select File, Import…, click on General, then Existing Project into
    Workspace, and click on Next, click on Select archive file button, navigate to the zipped project
    file, and then click on Finish. It should be executable now if your project is correct.
    Part I: Create a Weight Convertor class that can perform the conversion between kilograms and pounds.
    Use of hard-coded weight passed into a constructor, the methods in the class can convert it into
    kilograms and pounds. For example, if a weight is 100, it will show 100 kilograms = 220.462 pounds and
    100 pounds = 45.36 kilograms, respectively. Refer to the example called Mileage in Ch3
    you have downloaded to help you writing this class. Also write a driver program to test your
    conversions by creating at least 2 objects with different data. Finally, double check if you properly used
    the naming conventions, comment lines, and documentation in the code as required.
    Part II: (continued from Part I or you make them as one application for both parts): Modify the driver
    program and the weight conversion class so it prompts the user to enter a weight, convert the weight
    and display it in both pounds and kilograms as you did in Part I. Your program will continue to run until
    the user enters “n” to terminate the program. Finally, double check if you properly used the naming
    conventions, comment lines, and documentation in the code as required.

Part III: Create a Square Cube class that calculates and prints the squares and cubes of the given numbers as show in the following table:

Number Square Cube

1 1 1

2 4 8

3 9 27

4 16 64

5 25 125

6 36 216

7 49 343

8 64 512

9 81 729

10 100 1000

It should display the table exactly as above. Write a complete driver code called to test the class.

Part IV (continued from Part III or you may make them as one application) : Modify the code in Part III
so it will ask user to enter a beginning and ending number in the driver class and these numbers will be
passed to the method in which it will use them to process and print the table.
Finally double check if you properly used the naming conventions, comment lines, and documentation in
the code before your submission.

Example of documented source code (required for each of your source code)

Name: Jon Smith
Course: CS170-0X
Lab #: Lab X
Submission Date: 10:00 pm, Wed (9/21)
Brief Description: The driver code to run TestScore, create its object, call the methods to assign and
display the letter grade.
public class TestScoreApp { //Driver class
public static void main(String[] args) { //main method
TestScore tesScore = new TestScore(); //create object of TestScore
testScore.inputScore(); //call method to have the score
testScore.assignGrade(); //call method to assign the grade
testScore.display(); //call method to display the grade
} //end of main()
} //end of the driver class