PRG421 Java Programming II

Need Help in PRG/421 Java Assignments?
We can help you if you are having difficulty with your PRG421 Assignment. Just email your assignments at support@assignmentcache.com.
We provide help for students all over the world.

Items 1 to 10 of 25 total

per page
Page:
  1. 1
  2. 2
  3. 3

Grid  List 

Set Descending Direction
  1. PRG421 Week 2 Java 2.14 LAB Mileage tracker for a runner

    PRG/421 Week 2 Java 2.14 LAB: Mileage tracker for a runner

    Regular Price: $6.00

    Special Price: $3.00

    PRG/421 Week 2 Java 2.14 LAB: Mileage tracker for a runner


    Given the MileageTrackerNode class, complete main() In the MileageTrackerLinkedList class to insert nodes into a linked list (using the insertAfter() method). The first user-input value is the number of nodes in the linked list. Use the printNodeData() method to print the entire linked list. DO NOT print the dummy head node.


    Ex. If the input is
    3
    2.2
    7/2/18
    3.2
    7/7/18
    4.5
    7/16/18


    the output is
    2.2, 7/2/18
    3.2, 7/7/18
    4.5, 7/16/18

    Learn More
  2. PRG421 Week 2 Lab 2.15 LAB Inventory (linked lists insert at the front of a list)

    PRG/421 Week 2 Java 2.15 LAB: Inventory (linked lists: insert at the front of a list)

    Regular Price: $6.00

    Special Price: $3.00

    PRG/421 Week 2 Java 2.15 LAB: Inventory (linked lists: insert at the front of a list)


    Given main() in the Inventory class, define an insertAtFront() method in the InventoryNode class that inserts items at the front of a linked list (after the dummy head node).


    Ex. If the input is:
    4
    plates 100
    spoons 200
    cups 150
    forks 200


    the output is:
    200 forks
    150 cups
    200 spoons
    100 plates

    Learn More
  3. PRG421 Week 2 Lab 2.16 LAB Playlist (output linked list)

    PRG/421 Week 2 Java 2.16 LAB: Playlist (output linked list)

    Regular Price: $6.00

    Special Price: $3.00

    PRG/421 Week 2 Lab 2.16 LAB: Playlist (output linked list)


    Given main(), complete the SongNode class to include the printSongInfo() method. Then write the Playlist class printPlaylist() method to print all songs in the playlist. DO NOT print the dummy head node.


    Ex: If the input is:
    Stomp!
    380
    The Brothers Johnson
    The Dude
    337
    Quincy Jones
    You Don't Own Me
    151
    Lesley Gore
    -1


    the output is:
    LIST OF SONGS
    -------------
    Title: Stomp!
    Length: 380
    Artist: The Brothers Johnson


    Title: The Dude
    Length: 337
    Artist: Quincy Jones


    Title: You Don't Own Me
    Length: 151
    Artist: Lesley Gore

    Learn More
  4. PRG421 Week 2 Lab 2.22 LAB Parsing dates

    PRG/421 Week 2 Java Lab 2.22 LAB: Parsing dates

    Regular Price: $6.00

    Special Price: $3.00

    PRG/421 Week 2 Java Lab 2.22 LAB: Parsing dates


    Complete main() to read dates from input, one date per line. Each date's format must be as follows: March 1, 1990. Any date not following that format is incorrect and should be ignored. Use the substring() method to parse the string and extract the date. The input ends with -1 on a line alone. Output each correct date as: 3/1/1990.


    Ex: If the input is:
    March 1, 1990
    April 2 1995
    7/15/20
    December 13, 2003
    -1


    then the output is:
    3/1/1990
    12/13/2003

    Learn More
  5. PRG421 Week 3 Java 3.5 LAB Exception handling to detect input String vs. Integer

    PRG/421 Week 3 Java 3.5 LAB: Exception handling to detect input String vs. Integer

    Regular Price: $6.00

    Special Price: $3.00

    PRG/421 Week 3 Java 3.5 LAB: Exception handling to detect input String vs. Integer


    The given program reads a list of single-word first names and ages (ending with -1), and outputs that list with the age incremented. The program fails and throws an exception if the second input on a line is a String rather than an Integer. At FIXME in the code, add a try/catch statement to catch java.util.InputMismatchException, and output 0 for the age.


    Ex: If the input is:
    Lee 18
    Lua 21
    Mary Beth 19
    Stu 33
    -1


    then the output is:
    Lee 19
    Lua 22
    Mary 0
    Stu 34

    Learn More
  6. PRG421 Week 3 Lab 3.17 LAB Pet information (derived classes)

    PRG/421 Week 3 Java 3.17 LAB: Pet information (derived classes)

    Regular Price: $6.00

    Special Price: $3.00

    PRG/421 Week 3 Lab 3.17 LAB: Pet information (derived classes)


    The base class Pet has private fields petName, and petAge. The derived class Dog extends the Pet class and includes a private field for dogBreed. Complete main() to:
    - create a generic pet and print information using printInfo().
    - create a Dog pet, use printInfo() to print information, and add a statement to print the dog's breed using the getBreed() method.


    Ex. If the input is:
    Dobby
    2
    Kreacher
    3
    German Schnauzer


    The output is:
    Pet Information:
    Name: Dobby
    Age: 2
    Pet Information:
    Name: Kreacher
    Age: 3
    Breed: German Schnauzer

    Learn More
  7. PRG421 Week 3 Lab 3.18 LAB Instrument information (derived classes)

    PRG/421 Week 3 Java 3.18 LAB: Instrument information (derived classes)

    Regular Price: $6.00

    Special Price: $3.00

    PRG/421 Week 3 Lab 3.18 LAB: Instrument information (derived classes)


    Given main() and the Instrument class, define a derived class, String Instrument, for string instruments.
    Ex. If the input is:
    Drums
    Zildjian
    2015
    2500
    Guitar
    Gibson
    2002
    1200
    6
    19


    the output is:
    Instrument Information:
    Name: Drums
    Manufacturer: Zildjian
    Year built: 2015
    Cost: 2500
    Instrument Information:
    Name: Guitar
    Manufacturer: Gibson
    Year built: 2002
    Cost: 1200
    Number of strings: 6
    Number of frets: 19

    Learn More
  8. PRG421 Week 3 Lab 3.19 LAB Course information (derived classes)

    PRG/421 Week 3 Java 3.19 LAB: Course information (derived classes)

    Regular Price: $6.00

    Special Price: $3.00

    PRG/421 Week 3 Lab 3.19 LAB: Course information (derived classes)


    Given main(), define a Course base class with methods to set and get the courseNumber and courseTitle. Also define a derived class OfferedCourse with methods to set and get instructorName, term, and classTime.


    Ex. If the input is:
    ECE287
    Digital Systems Design
    ECE387
    Embedded Systems Design
    Mark Patterson
    Fall 2018
    WF: 2-3:30 pm


    the output is:
    Course Information:
    Course Number: ECE287
    Course Title: Digital Systems Design
    Course Information:
    Course Number: ECE387
    Course Title: Embedded Systems Design
    Instructor Name: Mark Patterson
    Term: Fall 2018
    Class Time: WF: 2-3:30 pm

    Learn More
  9. PRG421 Week 3 Lab 3.20 LAB Book information (overriding member methods)

    PRG/421 Week 3 Java 3.20 LAB: Book information (overriding member methods)

    Regular Price: $6.00

    Special Price: $3.00

    PRG/421 Week 3 Java 3.20 LAB: Book information (overriding member methods)


    Given main() and a base Book class, define a derived class called Encyclopedia. Within the derived Encyclopedia class, define a printInfo() method that overrides the Book class' printInfo() method by printing not only the title, author, publisher, and publication date, but also the edition and number of volumes.


    Ex. If the input is:
    The Hobbit
    J. R. R. Tolkien
    George Allen & Unwin
    21 September 1937
    The Illustrated Encyclopedia of the Universe
    James W. Guthrie
    Watson-Guptill
    2001
    2nd
    1


    the output is:
    Book Information:
    Book Title: The Hobbit
    Author: J. R. R. Tolkien
    Publisher: George Allen & Unwin
    Publication Date: 21 September 1937
    Book Information:
    Book Title: The Illustrated Encyclopedia of the Universe
    Author: James W. Guthrie
    Publisher: Watson-Guptill
    Publication Date: 2001
    Edition: 2nd
    Number of Volumes: 1


    Note: Indentations use 3 spaces.

    Learn More
  10. PRG421 Week 3 Java 3.21 LAB Plant information (ArrayList)

    PRG/421 Week 3 Java 3.21 LAB: Plant information (ArrayList)

    Regular Price: $6.00

    Special Price: $3.00

    PRG/421 Week 3 Java 3.21 LAB: Plant information (ArrayList)


    Given a base Plant class and a derived Flower class, complete main() to create an ArrayList called myGarden. The ArrayList should be able to store objects that belong to the Plant class or the Flower class. Create a method called printArrayList(), that uses the printInfo() methods defined in the respective classes and prints each element in myGarden. The program should read plants or flowers from input (ending with -1), adding each Plant or Flower to the myGarden ArrayList, and output each element in myGarden using the printInfo() method.


    Ex. If the input is:
    plant Spirea 10
    flower Hydrangea 30 false lilac
    flower Rose 6 false white
    plant Mint 4
    -1


    the output is:
    Plant Information:
    Plant name: Spirea
    Cost: 10

    Plant Information:
    Plant name: Hydrengea
    Cost: 30
    Annual: false
    Color of flowers: lilac

    Plant Information:
    Plant name: Rose
    Cost: 6
    Annual: false
    Color of flowers: white

    Plant Information:
    Plant name: Mint
    Cost: 4

    Learn More

Items 1 to 10 of 25 total

per page
Page:
  1. 1
  2. 2
  3. 3

Grid  List 

Set Descending Direction