Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Any One to help pls.I am Doing OOP on Distance ....I tried though! Thanks

  1. #1
    Banned
    Join Date
    Mar 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Any One to help pls.I am Doing OOP on Distance ....I tried though! Thanks

    1. Create an AssetManager class that contains the main method for the project.
    2. Create an array (of size 5) in the AssetManager class for each of the classes created in the preceding sections.
    3. In the AssetManager class, create methods to add ( remember to keep the sizes of the arrays in mind), sell assets (This method simply sets the status of an asset at a given index of an array to sold) and print the contents of each of the objects for each of the arrays. Provide proper Javadoc comments for each of the methods.
    4. In the main method, write code to enter from input 5 of each of the assets into the respective arrays using the add methods just created.
    5. Print out the contents of all the arrays using the print methods you have created to provide an initial asset report.
    6. In the main method, change the current value of at least 10 objects from the arrays using the getter and setter methods.
    7. Print out the contents of the assets that can be sold at a profit using the checkProfitOrLoss method and the print methods you have created to provide an asset sales report.


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,447
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 544 Posts

    Default Re: Any One to help pls.I am Doing OOP on Distance ....I tried though! Thanks

    Did you have a question, or did you just want to paste your homework assignment here?
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Junior Member
    Join Date
    Mar 2013
    Posts
    13
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default

    Lol again?

  4. #4
    Super Moderator curmudgeon's Avatar
    Join Date
    Aug 2012
    Posts
    1,130
    My Mood
    Cynical
    Thanks
    64
    Thanked 139 Times in 134 Posts

    Default Re: Any One to help pls.I am Doing OOP on Distance ....I tried though! Thanks

    Closed question as it is little more than a homework dump. Original poster, next time please show your efforts and ask a specific question. No one wants to do your assignments for you.

    --- Update ---

    Quote Originally Posted by Tytus View Post
    1. Create an AssetManager class that contains the main method for the project.
    2. Create an array (of size 5) in the AssetManager class for each of the classes created in the preceding sections.
    3. In the AssetManager class, create methods to add ( remember to keep the sizes of the arrays in mind), sell assets (This method simply sets the status of an asset at a given index of an array to sold) and print the contents of each of the objects for each of the arrays. Provide proper Javadoc comments for each of the methods.
    4. In the main method, write code to enter from input 5 of each of the assets into the respective arrays using the add methods just created.
    5. Print out the contents of all the arrays using the print methods you have created to provide an initial asset report.
    6. In the main method, change the current value of at least 10 objects from the arrays using the getter and setter methods.
    7. Print out the contents of the assets that can be sold at a profit using the checkProfitOrLoss method and the print methods you have created to provide an asset sales report.
    Post saved. Since you've now dumped your homework here twice despite being asked not to do this, you will be banned.

    Next time, consider taking notes in class and actually studying.

Similar Threads

  1. Calculating Fuel After Distance
    By floorplay in forum What's Wrong With My Code?
    Replies: 3
    Last Post: March 23rd, 2013, 11:12 PM
  2. Distance not being calculated properly
    By floorplay in forum What's Wrong With My Code?
    Replies: 3
    Last Post: March 18th, 2013, 08:54 AM
  3. Distance function help
    By abf617 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: August 2nd, 2012, 06:32 PM
  4. Getting Distance between two addresses
    By Shockwave786 in forum Java Theory & Questions
    Replies: 3
    Last Post: July 23rd, 2012, 10:19 AM
  5. Distance between 2 points
    By captain in forum Java Theory & Questions
    Replies: 3
    Last Post: February 21st, 2012, 11:53 PM