Pos 355 Week 2 Individual Assignment

Write a Java program (non-GUI preferred) to demonstrate the use of an ArrayList.
The program should allow a user to do the following:

  • Add, edit, delete different types of animals
  • Select an animal, and the corresponding characteristics will be displayed (such as color, vertebrate or invertebrate, can swim, etc.)
  • The program must use ArrayList(s) to work with these animal objects.

Include a brief documentation (in the code or in a separate document) to explain the input (if any), processing and output of the program.

Submit your assignment using the Assignment Files tab above.



This slideshow requires JavaScript.


This assignment includes a zip file.

  • Attachments
    • PRG421_Week_2_Individual_Assignment.zip (149.31 KB)
      • java code
      • Netbeans project
        • PRG421_Week_2_ArrayList
          • build
            • classes
              • .netbeans_automatic_build
              • .netbeans_update_resources
              • Animal.class
              • PRG421Week2.class
          • build.xml
          • manifest.mf
          • nbproject
            • build-impl.xml
            • genfiles.properties
            • private
            • project.properties
            • project.xml
          • src
          • test
      • PRG421-Week-2-Individual-Assignment-Screenshot-1.png
      • PRG421-Week-2-Individual-Assignment-Screenshot.png

    Preview random excerpt

    }

    xxxxxx xxxxxx(xxxxxx _xxxx, xxxxxx _xxxxx, xxxxxxx _xxxxxxx) {

    xxxxxxx(_xxxx);

    xxxxxxxx(_xxxxx);

    xxxxxxxxxx

    (

    xxxxxxxx

    ); } public

    xxxxxx

    getType() {

    xxxxxx

    type; } public String

    xxxxxxxx

    () {

    xxxxxx

    color; }

    xxxxxx xxxx xxxxxxx(xxxxxx _xxxx) {

    xxxx.xxxx = _xxxx;

    - - - more text follows - - -

    Preview random excerpt

    xxxxxxx xxxxxx xxxx xxxxxxxxxx(xxxxxx x, xxxxxx xxxx, xxxxxx xxxxx, xxxxxxx xxxxxxx) {

    x.xxxxxxx(xxxx);

    x.xxxxxxxx(xxxxx);

    x.xxxxxxxxxx(xxxxxxx);

    }

    xxxxxxx

    static void deleteAnimal(Animal a) {

    xxx

    index =

    x

    ;

    xxx

    (Animal an:

    xxxxxxx

    ) {

    xx

    (an.

    xxxxxxxxxx

    () == a.getCanSwim() && an.getColor().

    xxxxxx

    (

    x

    .getColor()) && an.getType().

    xxxxxx

    (a.getType())) {

    xxxxx

    ; }

    xxxx

    xxxxx

    ++; }

    xxxxxxx.xxxxxx(xxxxx);

    }

    - - - more text follows - - -

    Preview random excerpt

    }

    xxxxxx xxxxxx(xxxxxx _xxxx, xxxxxx _xxxxx, xxxxxxx _xxxxxxx) {

    xxxxxxx(_xxxx);

    xxxxxxxx(_xxxxx);

    xxxxxxxxxx

    (_canSwim); }

    xxxxxx

    String

    xxxxxxx

    () {

    xxxxxx

    type; }

    xxxxxx

    String getColor() {

    xxxxxx

    color; }

    xxxxxx xxxx xxxxxxx(xxxxxx _xxxx) {

    xxxx.xxxx = _xxxx;

    - - - more text follows - - -

    Preview random excerpt

    xxxxxxx xxxxxx xxxx xxxxxxxxxx(xxxxxx x, xxxxxx xxxx, xxxxxx xxxxx, xxxxxxx xxxxxxx) {

    x.xxxxxxx(xxxx);

    x.xxxxxxxx(xxxxx);

    x.xxxxxxxxxx(xxxxxxx);

    }

    xxxxxxx

    static void deleteAnimal(Animal a) {

    xxx

    index =

    x

    ;

    xxx

    (

    xxxxxx

    xx

    : animals) {

    xx

    (

    xx

    .

    xxxxxxxxxx

    () ==

    x

    .getCanSwim() &&

    xx

    .getColor().

    xxxxxx

    (a.getColor()) &&

    xx

    .getType().equals(a.

    xxxxxxx

    ())) {

    xxxxx

    ; }

    xxxx

    xxxxx

    ++; }

    xxxxxxx.xxxxxx(xxxxx);

    }

    - - - more text follows - - -



Purchasing Instruction
List Price:$15

Buy More Save More
Buy at least TWO items & save up to 30% OFF your ENTIRE order!
Rack up instant rebates in your shopping cart. Simply add items to your cart, and see the savings add up.
Discounts will automatically be applied on eligible orders.

POS 355 Introduction to Operational Systems – Complete ClassClick Link Below To Buy:
http://hwcampus.com/shop/pos-355-introduction-to-operational-systems-complete-class/Or Visit www.hwcampus.com

POS 355 Introduction to Operational Systems – Complete Class

POS 355 Week 1 Individual: Memory Management Paper

For this assignment, you will choose one the following options:
? Option 1: Write a 2-page paper that explains memory management requirements.
? Option 2: Write a 2-page paper that explains the differences in memory management between Windows®and Linux®.
Format your paper consistent with APA guidelines.

POS 355 Week 2 Learning Team: Week Five Project Plan

Submit an informal project plan containing the following:
? The team members who are responsible for each part of the final project
? The team approach to the project
? A schedule for completing the project with weekly milestones

POS 355 Week 2 Individual: File Management Paper

For this assignment, you will choose one of the following options:
? Option 1, File Access: Write a 2-page paper that discusses the following: Consider a system that supports 5,000 users. Suppose you want to allow 4,990 of those users to be able to access one file. How would you specify this protection scheme in UNIX®? Option 2, Protection Scheme: Write a 2-page paper that discusses the following: Consider a system that supports 5,000 users. Suppose that you want to allow 4,990 of those users to be able to access one file. Suggest another protection scheme that can be used more effectively for this purpose than the scheme provided by UNIX®Format your paper consistent with APA guidelines.

POS 355 Week 3 Learning Team: UNIX/Linux Versus Mac Versus Windows Paper Outline
Create an outline of the UNIX/Linux Versus Mac Versus Windows Paper.

POS 355 Week 3 Individual: Open and Closed Source Systems

For this assignment, you will choose from the following options:
?…

0 thoughts on “Pos 355 Week 2 Individual Assignment

Leave a Reply

Your email address will not be published. Required fields are marked *