Java

Need Help in Java Assignment?
We can help you if you are having difficulty with your Java Assignment. Just email your Java Assignment at admin@assignmentcache.com.
We provide help for students all over the world in Java Assignment.

Items 1 to 10 of 83 total

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

Grid  List 

Set Ascending Direction
  1. CIS355A Week 6 Lab - Database Connectivity Student Management System Add student

    CIS355A Week 6 Lab - Database Connectivity Student Management System

    Regular Price: $10.00

    Special Price: $8.00

    CIS355A Week 6 Lab - Database Connectivity Student Management System


    OBJECTIVES
    • Programmatic access to a MySQL database to add and display records



    PROBLEM: Student Management System
    A teacher needs the ability to store and retrieve student data. This includes
    • student name;
    • three test scores;
    • average; and
    • letter grade.


    FUNCTIONAL REQUIREMENTS
    You can code the GUI by hand or use NetBeans GUI builder interface.
    Create a GUI which allows for input and display of student data.
    It should include buttons to save a record, display all records.


    Create a database and table to store student name and three test scores. (Note that average and grade are calculated by app.)


    Student class
    Create a Student class to manage the student data. It should have private instance variables of
    • student name; and
    • three test scores.
    The class must have the following methods.
    • A default and parameterized constructor
    • Sets/gets for all instance variables
    • A get method to calculate and return the average
    • A get method to calculate and return the letter grade
    • toString to display the name of the student


    StudentDB class
    Create a StudentDB class that is used to create a connection and interface with the database.


    This class should have two methods.
    • getAll - reads data from database, returns data in an arraylist of student objects
    • add - writes a record to the database


    GUI class
    Insert button will take the info from the GUI (student name and three test scores) and insert a record into the table.  Input should be cleared from the textboxes.
    Display button will read the data from the database and creates a report in Console window, sample format below.
    Name Test1 Test2 Test3 Avg Grade
    Bruce Wayne  90  95  98  94.3  A
    Clark Kent  65  70  90  75.0  C


    RUBRIC
    Student class
    • Has all required functionality 10
    GUI class
    • Student record can be saved
    • All student data can be displayed 15
    StudentDB class
    • add method inserts a record into db.
    • get method reads all records and returns in arraylist. 15
    Code style 5
    Lab Report 10
    TOTAL 55


    CODE STYLE REQUIREMENTS
    • Include meaningful comments throughout your code.
    • Use meaningful names for variables.
    • Code must be properly indented.
    • Include a comment header at beginning of each file, example below.
    /****************************************************
    Program Name: ProgramName.java
    Programmer's Name: Student Name
    Program Description: Describe here what this program will do
    ***********************************************************/


    DELIVERABLES
    Submit as a SINGLE zip folder
    • all java files; and
    • the Lab report.


    Follow assignment specification regarding class/method names.
    Note that your Java file name must match class name (DO NOT rename).

    Learn More
  2. CIS355A Week 5 Lab - File Processing Stocks4U FileReader

    CIS355A Week 5 Lab - File Processing Stocks4U

    Regular Price: $10.00

    Special Price: $8.00

    CIS355A Week 5 Lab - File Processing Stocks4U


    OBJECTIVES
    • Add persistent data storage to your Week 4 Lab using text file input/output.


    PROBLEM: Stocks4U Portfolio Management System
    The portfolio management system you developed for Stocks4U needs the ability to save and restore a user’s data from a text file.


    FUNCTIONAL REQUIREMENTS
    You can code the GUI by hand or use NetBeans GUI Builder Interface.
    You will enhance Week 4 GUI to include
    • a File menu with menu items: open, save, exit; and
    • a label to display total portfolio value.


    Stock class
    • Modify the toString of Stock class to display as
    "Company: qty shares" (i.e., "Apple: 10 shares")


    StockIO class
    Create a StockIO class that is used to read from and write to a text file using an ArrayList. Make sure to use a delimiter between the fields; it does not have to be the # character. Example format of the file is:


    Apple#100#55.0#80.0
    Intel#50#75.0#70.0


    This class should have two methods.
    • getData - reads data from file, returns data in array list of stock objects
    • saveData - writes data from an array list to the file in proper format
    The file name will be an instance variable that you can set with a parameterized constructor, or with a separate method.


    GUI class
    Note that you will need to add an ArrayList to your GUI class to manage the data to/from the file. It will act as a parallel array to your DefaultListModel. Any time you add a stock, you must add it in BOTH places. Any time you remove a stock, you must remove it in BOTH places.


    File - open should prompt for file name using JOptionPane, read the file and populate the JList.
    File - save should prompt for file name to save data from JList to.
    File - exit should exit the program.


    The total value of the portfolio should be displayed at all times and updated anytime a stock is added or removed.


    RUBRIC
    Stock class toString modified 5
    GUI class
    • Menu is added.
    • Label is added for total portfolio value.
    • Open menu item reads data from a file and displays in list box.
    • Save menu item writes data to a text file in proper format.
    • Total value is updated whenever any changes are made to stocks (add, remove, open a new file). 15
    StockIO class
    • getData method reads from file to array list
    • saveData method writes from array list to file 20
    Code style 5
    Lab Report 10
    TOTAL 55


    CODE STYLE REQUIREMENTS
    • Include meaningful comments throughout your code.
    • Use meaningful names for variables.
    • Code must be properly indented.
    • Include a comment header at beginning of each file, example below.
    /****************************************************
    Program Name: ProgramName.java
    Programmer's Name: Student Name
    Program Description: Describe here what this program will do
    ***********************************************************/


    DELIVERABLES
    Submit as a SINGLE zip folder
    • all Java files; and
    • the Lab report.


    Follow assignment specification regarding class/method names.
    Note that your Java file name must match class name (DO NOT rename).

    Learn More
  3. PRG421 Week 5 Java 5.21 LAB Sorting user IDs

    PRG/421 Week 5 Java 5.21 LAB: Sorting user IDs

    Regular Price: $7.00

    Special Price: $3.00

    PRG/421 Week 5 Java 5.21 LAB: Sorting user IDs


    Given a main() that reads user IDs (until -1), complete the quicksort() and partition() methods to sort the IDs in ascending order using the Quicksort algorithm, and output the sorted IDs one per line.


    Ex. If the input is:
    kaylasimms
    julia
    myron1994
    kaylajones
    -1


    the output is:
    julia
    kaylajones
    kaylasimms
    myron1994

    Learn More
  4. PRG/421 Week 5 Java 5.20 LAB: Descending selection sort with output during execution

    PRG/421 Week 5 Java 5.20 LAB: Descending selection sort with output during execution

    Regular Price: $7.00

    Special Price: $3.00

    PRG/421 Week 5 Java 5.20 LAB: Descending selection sort with output during execution


    Write a void method selectionSortDescendTrace() that takes an integer array, and sorts the array into descending order. The method should use nested loops and output the array after each iteration of the outer loop, thus outputting the array N-1 times (where N is the size). Complete the main() to read in a list of up to 10 positive integers (ending in -1) and then call the selectionSortDescendTrace() method.


    If the input is:
    20 10 30 40 -1


    then the output is:
    40 10 30 20
    40 30 10 20
    40 30 20 10

    Learn More
  5. PRG421 Week 5 Java 5.10 LAB Number pattern

    PRG/421 Week 5 Java 5.10 LAB: Number pattern

    Regular Price: $7.00

    Special Price: $3.00

    PRG/421 Week 5 Java 5.10 LAB: Number pattern


    Write a recursive method called printNumPattern() to output the following number pattern.


    Given a positive integer as input (Ex: 12), subtract another positive integer (Ex: 3) continually until 0 or a negative value is reached, and then continually add the second integer until the first integer is again reached


    Ex. If the input is:
    12
    3


    the output is:
    12 9 6 3 0 3 6 9 12

    Learn More
  6. PRG/421 Week 5 Java 5.9 LAB: All permutations of names

    PRG/421 Week 5 Java 5.9 LAB: All permutations of names

    Regular Price: $7.00

    Special Price: $3.00

    PRG/421 Week 5 Java 5.9 LAB: All permutations of names


    Write a program that lists all ways people can line up for a photo (all permutations of a list of Strings). The program will read a list of one-word names (until -1), and use a recursive method to create and output all possible orderings of those names, one ordering per line.


    When the input is:
    Julia Lucas Mia -1


    then the output is (must match the below ordering):
    Julia Lucas Mia
    Julia Mia Lucas
    Lucas Julia Mia
    Lucas Mia Julia
    Mia Julia Lucas
    Mia Lucas Julia

    Learn More
  7. PRG421 Week 4 Java 4.15 LAB Ticketing service (Queue)

    PRG/421 Week 4 Java 4.15 LAB: Ticketing service (Queue)

    Regular Price: $7.00

    Special Price: $3.00

    PRG/421 Week 4 Java 4.15 LAB: Ticketing service (Queue)


    Given main, complete the program to add people to a queue. The program should read in a list of people's names including "You" (ending with -1), adding each person to the peopleInQueue queue. Then, remove each person from the queue until "You" is at the head of the queue. Include print statements as shown in the example below.


    Ex. If the input is
    Zadie Smith
    Tom Sawyer
    You
    Louisa Alcott
    -1


    the output is
    Welcome to the ticketing service...
    You are number 3 in the queue.
    Zadie Smith has purchased a ticket.
    You are now number 2
    Tom Sawyer has purchased a ticket.
    You are now number 1
    You can now purchase your ticket!

    Learn More
  8. PRG421 Week 4 Java 4.14 LAB Student grades (HashMap)

    PRG/421 Week 4 Java 4.14 LAB: Student grades (HashMap)

    Regular Price: $7.00

    Special Price: $3.00

    PRG/421 Week 4 Java 4.14 LAB: Student grades (HashMap)


    Given a HashMap pre-filled with student names as keys and grades as values, complete main() by reading in the name of a student, outputting their original grade, and then reading in and outputting their new grade.


    Ex: If the input is
    Quincy Wraight
    73.1


    the output is
    Quincy Wraight's original grade: 65.4
    Quincy Wraight's new grade: 73.1

    Learn More
  9. PRG421 Week 4 Java 4.13 LAB Grocery shopping list (LinkedList)

    PRG/421 Week 4 Java 4.13 LAB: Grocery shopping list (LinkedList)

    Regular Price: $7.00

    Special Price: $3.00

    PRG/421 Week 4 Java 4.13 LAB: Grocery shopping list (LinkedList)


    Given a ListItem class, complete the main() using the built-in LinkedList type to create a linked list called shoppingList. The program should read items from input (ending with -1), adding each item to shoppingList, and output each item in shoppingList using the printNodeData() method.


    Ex. If the input is
    milk
    bread
    eggs
    waffles
    cereal
    -1


    the output is
    milk
    bread
    eggs
    waffles
    cereal

    Learn More
  10. PRG421 Week 4 Java 4.6 LAB Zip code and population (generic types)

    PRG/421 Week 4 Java 4.6 LAB: Zip code and population (generic types)

    Regular Price: $7.00

    Special Price: $3.00

    PRG/421 Week 4 Java 4.6 LAB: Zip code and population (generic types)


    Define a class StatePair with two generic types (Type1 and type2), a constructor mutators, accessors, and a printinfo() method. Three ArrayLists have been pre-filled with StatePair data in main():
    • ArrayList<StatePairInteger, String>> zipCodeState: Contains ZIP code/state abbreviation pairs
    • ArrayList<StatePair<string, String>> abbrevstate: Contains state abbreviation/state name pairs
    • ArrayList<StatePair<string. Integer>> state Population Contains state name/population pairs


    Complete main() to use an input ZIP code to retrieve the correct state abbreviation from the ArrayList ZipCodeState. Then use the state abbreviation to retrieve the state name from the ArrayList abbrevState. Lastly, use the state name to retrieve the correct state name/population pair from the ArrayList state Population and output the pair.


    Ex If the input is:
    21044


    the output is:
    Maryland: 6079602

    Learn More

Items 1 to 10 of 83 total

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

Grid  List 

Set Ascending Direction