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 21 to 30 of 100 total

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

Grid  List 

Set Descending Direction
  1. IT215 Week 6 Inventory Program Part 3

    IT215 Week 6 Inventory Program Part 3

    Regular Price: $12.00

    Special Price: $10.00

    IT215 Week Six: Object-Oriented Programming


    CheckPoint Inventory Program Part 3


    Modify the Inventory Program by creating a subclass of the product class that uses one additional unique feature of the product you chose (for the DVDs subclass, you could use movie title, for example). In the subclass, create a method to calculate the value of the inventory of a product with the same name as the method previously created for the product class. The subclass method should also add a 5% restocking fee to the value of the inventory of that product.


    Modify the output to display this additional feature you have chosen and the restocking fee.

    Learn More
  2. IT215 Week 7 Inventory Program Part 4

    IT215 Week 7 Inventory Program Part 4

    Regular Price: $12.00

    Special Price: $10.00

    IT215 Week Seven: Graphics


    CheckPoint Inventory Program Part 4


    Modify the Inventory Program to use a GUI. The GUI should display the information one product at a time, including the item number, the name of the product, the number of units in stock, the price of each unit, and the value of the inventory of that product. In addition, the GUI should display the value of the entire inventory, the additional attribute, and the restocking fee.

    Learn More
  3. IT215 Week 8 Inventory Program Part 5

    IT215 Week 8 Inventory Program Part 5

    Regular Price: $15.00

    Special Price: $12.00

    IT215 Week Eight: Files and Streams


    CheckPoint Inventory Program Part 5


    Modify the Inventory Program by adding a button to the GUI that allows the user to move to the first item, the previous item, the next item, and the last item in the inventory. If the first item is displayed and the user clicks on the Previous button, the last item should display. If the last item is displayed and the user clicks on the Next button, the first item should display.


    Add a company logo to the GUI using Java graphics classes.

    Learn More
  4. IT215 Week 9 Inventory Program Part 6

    IT215 Week 9 Inventory Program Part 6

    Regular Price: $15.00

    Special Price: $12.00

    IT215 Week Nine: Java Programming Applications


    CheckPoint Inventory Program Part 6


    Modify the Inventory Program to include an add button, a delete button, and a modify button on the GUI. These buttons should allow the user to perform the corresponding actions on the item name, the number of units in stock, and the price of each unit. An item added to the inventory should have an item number one more than the previous last item.


    Add a save button to the GUI that saves the inventory to a C:\data\inventory.dat file.


    Use exception handling to create the directory and file if necessary.


    Add a search button to the GUI that allows the user to search for an item in the inventory by the product name. If the product is not found, the GUI should display an appropriate message. If the product is found, the GUI should display that product’s information in the GUI.


    Post as an attachment in Java format.

    Learn More
  5. Flower Pack Java Assignment 1

    CSC 275 Flower Pack Java Assignment 1

    Regular Price: $12.00

    Special Price: $10.00

    CSC 275 Flower Pack Java Assignment 1
    As I was on a hike the other day I came across a small child in the woods. He told me his life story, with special mention of his disabled sister that loves flowers, and asked me for a favor.
    He wanted a way to organize the flowers that he picks for her each day and perform a few basic tasks with them, along with a few restrictions. It is our goal to help him out!
    • He can only carry 25 flowers as adding any more causes many of them to become crushed.
    • He needs to be able to search for a specific type of flower in his pack incase his sister has a special request.
    • He needs to be able to sort flowers by their names alphabetically in ascending order (A-Z)
    • He needs to know how many of each flower he has in his pack.


    Now, I have started a simple program which will serve as guidance for you, please help me finish it. (Please don’t modify the code that I give you, just add your code where required)
    import java.util.Scanner;
    public class Assignment01Driver {
    public static void main(String[] args){
    new Assignment01Driver ();
    }
    // This will act as our program switchboard
    public Assignment01Driver (){
    Scanner input = new Scanner(System.in);
    String[] flowerPack = new String[25];
    System.out.println("Welcome to my flower pack interface.");
    System.out.println("Please select a number from the options below");
    System.out.println("");
    while(true){
    // Give the user a list of their options
    System.out.println("1: Add an item to the pack.");
    System.out.println("2: Remove an item from the pack.");
    System.out.println("3: Sort the contents of the pack.");
    System.out.println("4: Search for a flower.");
    System.out.println("5: Display the flowers in the pack.");
    System.out.println("0: Exit the flower pack interfact.");
    // Get the user input
    int userChoice = input.nextInt();
    switch(userChoice){
    case 1:
    addFlower(flowerPack);
    break;
    case 2:
    removeFlower(flowerPack);
    break;
    case 3:
    sortFlowers(flowerPack);
    break;
    case 4:
    searchFlowers(flowerPack);
    break;
    case 5:
    displayFlowers(flowerPack);
    break;
    case 0:
    System.out.println("Thank you for using the flower pack interface. See you again soon!");
    System.exit(0);
    }
    }
    }
    private void addFlower(String flowerPack[]) {
    // TODO: Add a flower that is specified by the user
    }
    private void removeFlower(String flowerPack[]) {
    // TODO: Remove a flower that is specified by the user
    }
    private void sortFlowers(String flowerPack[]) {
    // TODO: Sort the flowers in the pack (No need to display them here) - Use Selection or Insertion sorts
    // NOTE: Special care is needed when dealing with strings! research the compareTo() method with strings
    }
    private void searchFlowers(String flowerPack[]) {
    // TODO: Search for a user specified flower
    }
    private void displayFlowers(String flowerPack[]) {
    // TODO: Display only the unique flowers along with a count of any duplicates
    /*
    * For example it should say
    * Roses - 7
    * Daffodils - 3
    * Violets - 5
    */
    }
    }

    Learn More
  6. CMIS242 Homework 2 Java Division Exception

    CMIS242 Homework 2 Java Exceptions and Interface

    Regular Price: $12.00

    Special Price: $10.00

    CMIS242 Homework 2 Java Exceptions and Interface


    Write a Java application that asks a user to enter two integers (A and B) and then display the results of A/B. Catch any division by zero errors and prompt the user to reenter the value of B. Be sure your code compiles and runs as expected. Name your Java file SafeDivision.java.


    Write a Java interface named Searchable with two abstract methods: one named Way2Search that returns a String and another named MaxTime that returns an Integer. Write another class that implements that interface and that contains a simple test. Be sure your code compiles and runs as expected. Name your Java files Searchable.java, and TestSearchable.java.

    Learn More
  7. CMIS 242 Project 3 Recursion Exercises

    CMIS 242 Project 3 Recursion Exercises

    Regular Price: $15.00

    Special Price: $12.00

    CMIS 242 Project 3 Recursion Exercises


    Write a Java application that uses recursion to compute the results of the following series:
    1. ((((x * 2) * 2) * ...) * 2)
    for a series of n multiplications
    2. x + (x * 1) + (x * 2) + (x * 3) + ... + (x * n)
    3. 1 + 1/2 + 1/3 + ... + 1/n
    In the above, x and n are values provided by the user. (For #3, there is no x.)
    Ensure that your code compiles and runs without errors. Additionally, be sure to comment your code appropriately.

    Learn More
  8. CMIS 242 Project 4 Color Menu

    CMIS 242 Project 4 Color Menu

    Regular Price: $25.00

    Special Price: $20.00

    CMIS 242 Project 4 Color Menu


    This project focuses on demonstrating your understanding of Java Collections. Before attempting this project, be sure you have completed all of the reading assignments listed in the syllabus to date, participated in the weekly conferences, and thoroughly understand the examples throughout the chapters.
    Write a Java application that effectively uses Collections to store custom color definitions (between 5 and 20, inclusive).
    The user should assign a unique name to each color, and a unique hexadecimal value (e.g., red is #FF0000).
    User input can be done in a GUI or on the command-line.
    Your program should enforce uniqueness. In other words, if the user enters a name for a color that already has that name, then the user should be reprompted. (Same behavior for the hexadecimal value.)
    Additionally, a GUI should be included that displays the color names and hexadecimal values.
    Each name/value pair should be selectable via a radio button or other mechanism.
    When a color is selected, an area of the GUI should change to that color (the area is up to you, as long as it's visible).

    Learn More
  9. CIS355A Week 1 iLab Sales Tracking Java Program

    CIS355A iLab Week 1 SalesTracking Java Program

    Regular Price: $12.00

    Special Price: $10.00

    CIS355A Week 1 iLab SalesTracking Java Program


    Program files for the sales tracking program: SalesTracking.java


    At the beginning of all your programs, put a comment box that includes the program name, your name, and a brief description of the program.
    Example:
    /***********************************************************************
    Program Name: ProgramName.java
    Programmer's Name: Student Name
    Program Description: Describe here what this program will do
    ***********************************************************************/


    How to submit your assignment:
    The program must have the same name as the assignment title (SalesTracking.java).
    The Java source file (*.java) must include a corresponding class file (*.class) program as evidence of success.
    In addition to the program source code file and byte code file, put your program source code file and screen shots of your program output files into a Word document.
    You must use a zipped folder to send your weekly assignment to the Dropbox. Do not send subfolders within your zipped folder. Place all of the .java and .class file for the week into the one zipped folder. The zip folder should be named CIS355A_YourLastName_iLab_Week1, and this zip folder will contain all the weekly programming assignments.


    iLAB STEPS
    STEP 1: SalesTracking.java
    You must create a sales tracking program named SalesTracking.java. This program must track monthly sales as well as compute average yearly sales, total sales for the year, and which month had the highest sales and which month had the lowest sales.
    The program should prompt the user for the sales for each month starting with January. After all the monthly sales have been entered, your program should have methods that do the following.
    getSales(): This method prompts the users for the sale for each month. The return value for this method will be the amount that the user entered. This amount should be stored and returned into the corresponding location in the monthlySales array. For example, January sales should be stored in the first location, February sales should be stored in the second location, and so forth. This method should be enclosed in a loop to facilitate this process.
    computeTotalSales(monthlySales): This method receives the monthly sales array as an argument and returns the total sales of the year.
    computeAverageSales(monthlySales): This method receives the monthly sales array as an argument and returns the average sales for the year.
    computeHighestMonth(monthlySales): This method receives the monthly sales array as an argument. This method will search and compare the values of the monthly sales array for the highest value. Once the highest value has been determined, it will store the value in the value that corresponds with the index of that month. The method will return the index of the month with the highest value.
    computeLowestMonth(monthlySales): This method receives the monthly sales array as an argument. This method will search and compare the values of the monthly sales array for the lowest value. Once the lowest value has been determined, it will store the value in the value that corresponds with the index of that month. The method will return the index of the month with the lowest value.
    displaySaleInfo(totalSales, averageSales, highestMonth, highestSales, lowestMonth, lowestSales): This method will receive the total yearly sales, average monthly sale, the month with the highest sales, as well as the sales for that month and the month with the lowest sales. This method will display all of the data it received as arguments.
    All methods must be called from the main method. Sales amounts should be rounded to two decimal places. You should use parallel arrays. Your first array (monthArray) should be initialized with all of the months. This array should have 12 locations of course. Your other array should be named monthlySales. Like your monthArray, this array should be 12 locations and be populated with the getSales( ) method.
    Your monthArray should have the following values.
    monthArray


    JANUARY FEBRUARY MARCH ..... ..... ..... NOVEMBER DECEMBER
    You should demonstrate the use of loop and decision structures also. Use the lab forum to ask questions about this lab.
    SalesTacking Points Description
    Standard header included 1 Must contain program's name, student name, and description of the program
    Program compiles 2 Program does not have any error
    Declaration of variables 4 Declare needed variables
    Program executes 3 Program runs without any error
    Use of decision statement(s) 5 Implement decision statements correctly
    Use of loop statement(s) 5 Implement loop statements correctly
    Use of methods 15 Implement all methods correctly
    Use of arrays 5 Implement arrays correctly
    Subtotal 40

    Learn More
  10. Penn foster Graded Project 4 BoardGameTester application Java

    Penn foster Graded Project 4 BoardGameTester application Java

    Regular Price: $20.00

    Special Price: $15.00

    Penn foster Graded Project 4 BoardGameTester application Java

    In this project, you'll modify the BoardGameTester application to save the gameboard to a file. You'll perform the file writing process on a separate thread.

    INSTRUCTIONS
    1. In NetBeans, open the BoardGameTester project.
    2. Create a new package named games.utilities.
    3. Add a public class named FileManager that contains the following methods:
    public static void writeToFile(String saveState, String fileName) {
    //TODO: Write a string to a new file synchronously
    }
    public static void writeToFileAsync(final String saveState, final String fileName) {
    //TODO: Write a string to a new file asynchronously
    }
    4. Implement the writeToFile method using the new file I/O classes in a try-with-resources statement.
    Note: Use the code in Activity 15 as a guide for the writeToFile method. Remember to import the java.io, java.nio, java.nio.charset, and java.nio.file packages.
    5. Implement the writeToFileAsync method using a separate thread. Use the following code as a guide:
    new Thread() {
    public void run() {
    writeToFile(saveState, fileName);
    }
    }.start();
    Note: This code uses an anonymous inner class to declare and instantiate a Thread class. Unlike a traditional inner class, anonymous inner classes are available only within the statement they're declared. You'll see more examples of anonymous classes with Swing in the next lesson. To ensure that local variables are unchanged by the inner class, the parameters saveState and fileName must be declared with the final keyword.
    6. In the main() method of the BoardGameTester project, add the following code:
    FileManager.writeToFileAsync(ticTacToe.toString(), "ttt.txt");
    FileManager.writeToFileAsync(connectFour.toString(), "c4.txt");
    FileManager.writeToFileAsync(mastermind.toString(), "mm.txt");
    7. Compile and run the project to create three files, one for each saved board game. Open the files to ensure they contain the correct game board display.
    Note: Notepad won’t display the line returns in the file. You may need to open the text files using Microsoft Word or Wordpad instead.
    These three game board files will be required for submission.

    Learn More

Items 21 to 30 of 100 total

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

Grid  List 

Set Descending Direction