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 31 to 40 of 105 total

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

Grid  List 

Set Ascending Direction
  1. CMIS 141 Homework 3 HeadPhones Class

    CMIS 141 Homework 3 HeadPhones Class

    Regular Price: $20.00

    Special Price: $15.00

    CMIS 141 Homework 3 HeadPhones Class


    1. (25 points) Create a Java class named HeadPhones to represent a headphone set.
    The class contains:
    - Three constants named LOW, MEDIUM and HIGH with values of 1, 2 and 3 to denote the headphone volume.
    - A private int data field named volume that specifies the volume of the headphone. The default volume is MEDIUM.
    - A private boolean data field named pluggedIn that specifies if the headphone is plugged in. The default value if false.
    - A private String data field named manufacturer that specifies the name of the manufacturer of the headphones.
    - A private Color data field named headPhoneColor that specifies the color of the headphones.
    - getter and setter methods for all data fields.
    - A no argument constructor that creates a default headphone.
    - A method named toString() that returns a string describing the current field values of the headphones.
    - A method named changeVolume(value) that changes the volume of the headphone to the value passed into the method
    Create a TestHeadPhones class that constructs at least 3 HeadPhones objects. For each of the objects constructed, demonstrate the use of each of the methods. Be sure to use your IDE to accomplish this assignment.


    2. (25 points) Create your own Java class that represents your favorite musical instrument. Your musical instrument class should have at least 3 constants, 4 private data fields, getters and setters for each private data field, a toString() method, and two additional methods of your choice.
    Create a test class that constructs at least 3 of your musical instrument objects. For each of the objects constructed demonstrate the use of each of the methods. Be sure to use your IDE to accomplish this assignment. You can pick any instrument you want. When designing your class, think about what would make sense to describe and use the instrument.
    For example, if you selected a trumpet, you might need to provide the number of valves, the manufacturer, if the instrument is using a mute, and the volume or even notes the trumpet is playing. Make this your own creation and have fun with it.

    Learn More
  2. ITSD322 Unit 1 Java console program

    ITSD322 Unit 1 Java console program

    Regular Price: $15.00

    Special Price: $12.00

    ITSD322 Unit 1 Java console program


    Throughout this course, you will be learning about object-oriented programming and demonstrating what you learn by writing some programs in Java. The first step will be to install and integrated development environment (IDE) that will be where you will write and compile your programs. You will also write your first program using Java to show that you have correctly installed the IDE.
    The project instructions and deliverables are as follows:
    Download and install Java JDK and NetBeans IDE using the default installation options.
    Run the IDE, and take a screenshot.
    Create a console program that prompts the user to enter the name and address of their employer and position they hold or the name and address of their favorite restaurant and their favorite meal.
    Display this information on the screen, each on a separate line.
    Run your modified program and take a screenshot of the results.
    Create a document in Word, and add the following:
    Title page which includes: CourseNumber, CourseSection, CourseName, ProjectName (Unit 1 IP), StudentName and Date.
    Screen shots showing the IDE running.
    Screen shot showing the program's output.
    Create a zip that includes your project folder and Word document, and upload it to the course portal.

    Learn More
  3. ITSD322 Unit 2 Java console program

    ITSD322 Unit 2 Java console program

    Regular Price: $20.00

    Special Price: $15.00

    ITSD322 Unit 2 Java console program


    The first step in writing a software application is to determine the requirements. There is no value in writing a program that does not address the needs of the client. Requirements can be gathered in many ways, but ultimately, the requirements serve to document what the application should and should not do. After the requirements are written, the application design can be prepared, followed by the actual coding. For this project, you will gain some practice in the design phase of software development by designing a program that will meet a given set of requirements.
    Develop a console program that simulates a section of a restaurant menu. Each item will have a different price and your program should define at least ten (10) items. You will need to obtain an order from the user who should provide their menu selection along with quantity. The total cost for the meal must be calculated. The user will enter the amount of their payment ($10, $20, etc.). The program needs to calculate the amount due back to the user (payment minus total cost of meal).
    The project instructions and deliverables are as follows:
    Create a document in Word (name the design document yourName_Unit2.IP), and add the following:
    Title page
    Course number and name
    Project name
    Student name
    Date
    List the data items that must be stored and used by the program. Each data item should be given a name for reference. Develop a UML class diagram that illustrates the data items for your program.
    List the decisions the program must make. References to the data items in the previous step should be used where appropriate.
    Describe the flow of operation of the program by preparing pseudocode or a UML activity diagram. All key activities should be included, and references to the data items and decisions listed in the previous steps should be used.
    Create a zip that includes your project folder and Word document, and upload it to the course portal.

    Learn More
  4. ITSD322 Unit 3 Java AnimalInfo console program

    ITSD322 Unit 3 Java AnimalInfo console program

    Regular Price: $20.00

    Special Price: $15.00

    ITSD322 Unit 3 Java AnimalInfo console program


    So far, you have learned about design and how to create a simple Java application using an IDE. Now, you are going to gain some experience writing an object-oriented program with classes, objects, inheritance, and polymorphism. These terms sound complex, but you will find they are not difficult to use. You will be drawing on all the information you have gained, and this project will require some time, so start early, and pay attention to instructions.


    For this project, you will write a Java program that allows the user to select an animal from a menu and then display information about the animal.
    Create a new project in your IDE named "AnimalInfo."
    Create a class called "AnimalInfo" as the main class for the program.
    Create a class called "Animal" with a virtual method displayInfo().
    Create 3 classes inherited from Animal (one for each of your animals). Each of the inherited classes should override Animal.displayInfo() to display information about the animal. The information should just be a short description of the animal displayed to the screen.
    In the AnimalInfo.main) method, display a menu allowing the user to choose 1 of 3 animals or quit the program. The menu should accept input from the user and take the appropriate action and then repeat until the user selects the option to quit. Hint: Simple menus are easiest to implement if the user selects a letter or number for each menu item.
    When the user selects an animal, use the displayInfo() method of the appropriate class to display information about the selected animal.
    Use comments throughout your code demonstrating your understanding of each statement of code.
    Make sure the program runs correctly before submission.
    Create a zip that includes your project folder and Word document, and upload it to the course portal.

    Learn More
  5. Tracking Contributors Linked List Insertion Sort Java Program

    Tracking Contributors Linked List Insertion Sort Java Program

    Regular Price: $20.00

    Special Price: $15.00

    Tracking Contributors Linked List Insertion Sort Java Program


    Based on the new requirement from your boss to be able to search for contributor's name, you decide it will be good idea to have the data sorted. You will read the contributor information from a file provided; it is a common delimited (CSV) file. AS each record is read, create a sorted Linked List of the contributors using the insertion sort method. At this point, you no longer need to maintain the stack. Your design should include the following:


    Each contributor will have the following information:
    • Name: String; //the name of the contributor
    • City: String; //the city in which the contributor lives
    • Country: String; //the country in which the contributor lives
    • Phone: String; //the phone number for the contributor
    • Contribution: Double; //the amount of the contribution given by the contributor to the zoo
    • ID: Integer; //identifier key for future needs


    Contributor Functions/Methods:
    • Input constructor: //to accept a string for the name and additional information for each contributor(this should call the Add constructor to implement the sorted list)
    • Print constructor: //to print out the contributor data
    • Print All constructor: //to print the entire list of contributor names
    • Add constructor: //to traverse the linked list and find the proper location for adding the instance


    Deliverables:
    • A Fully Documented Program to load the data creating a sorted linked list.
    • A Test Plan to show how program runs and can be executed.
    • A screen shot showing that the program loaded the data. After the data is loaded perform a Print All showing the sorted list.

    Learn More
  6. Stacks and Queues using linked lists Flowchart and Java Code

    Stacks and Queues using linked lists Flowchart and Java Code

    Regular Price: $20.00

    Special Price: $15.00

    Stacks and Queues using linked lists Flowchart and Java Code


    Basic data structures such as arrays are not sufficient for some applications. In some cases, more advanced data structures are more suitable. In this assignment you will examine Stacks and Queues using linked lists. Complete the following:


    Create a flowchart to represent the Push and Pop operations for a Stack based on a linked list data structure.
    Create a flowchart to represent the Enqueue and Dequeue operations for a Queue based on a linked list data structure.
    Write the required Java code to implement either a Stack or a Queue data structure based on a linked list. The code should include the class constructors, the necessary properties, and methods to add and remove elements from the data structure. Do not use the built-in Java Stack class or the built-in Java Queue interface or the built-in Java linked list (you should create your own code for these classes).
    Please submit your assignment in a single MS Word document:


    Note: Diagrams created in separate programs should be copied and pasted into your document for submission.

    Learn More
  7. CIS355A Week 5 Practice Program Pizza FileIO

    CIS355A Week 5 Practice Program - Pizza File/IO

    Regular Price: $12.00

    Special Price: $10.00

    CIS355A Week 5 Practice Program - Pizza File/IO


    Class in this week's practice program, we are "stepping up our game" a bit and we are going to begin seeing a more complex, but more "real world" object oriented program structure, using a 3-tiered (business, presentation, data layer). The good news is that for the Pizza Practice program you are not going to start from scratch, and everything you are being asked to do in this program is demonstrated in the example Circle program.
    If you have any questions or need any help post a question in the Programming/Practice Help discussion in the Introductions and resource module.
    Start by downloading the attached "Week5_Pizza_FileIO_Shell.zip" program, unzip the program and open it up into Netbeans. The shell project will compile and execute, and even read a stream file and populate the list with data from a string file.


    Steps
    You are then asked to complete the following TODO action items:
    Review the FileStream Class and:
    1. in the readlist method add the statements to add a string to the array list
    2. in the writeData method add the statement to write the string to the file
    Review the PizzaFileIO class and:
    1. In the writeData method add code to add the missing order fields to the record
    2. In the readData method add code to add the missing fields to the order object
    Review the OrderList class
    1. In the remove method add statements to remove the order from the list
    2. In the save method add the statement to write the array list to the file.
    Graphical User Interface
    Update the given graphical user interface to:
    1. Save the list in the Order list to a file using both types of file I/O (streams and objects).
    2. Retrieve the list from the file and display the list
    3. Add a menu items Save Orders and Retrieve Orders
    4. Update retrieveOrders method to retrieve the list from the orderList object.
    See the following for a demonstration of the working program.


    Just a Hint
    The amount of code you actually have to write in this execises is no more than 20 lines of code and each TODO can be accomplished with a single line of code.

    Learn More
  8. CIS355A Week 6 Practice Program Pizza DataIO Java

    CIS355A Week 6 Practice Program - Pizza Data/IO

    Regular Price: $12.00

    Special Price: $10.00

    CIS355A Week 6 Practice Program - Pizza Data/IO


    Introduction - Connecting and Manipulating Databases
    This week you’re going to replace the File IO operations your completed last week and replace them with database operations. During this exercise you will see the advantage of making the effort in creating a 3-tiered architecture that encapsulations the operations into the appropriate layer.
    Use your OmnyBus MySQL Account
    Updating the Pizza Order Program:
    Here is what you will need to do to get the Pizza Program to work.
    In the OmnyBus EDUPE server management application:
    Open the database you created.
    Create a table called "PizzaOrder" with the following fields
    1) id as an Int, set to primary key, set Autoincrement = yes
    2) firstName as a varchar of length 50
    3) lastName as a varchar of length 50
    4) size of type small int
    5) cheese as a tinyint (MySQL boolean)
    6) sausage as tinyint
    7) ham as a tinyint
    8) total as a double
    In the Netbeans (or Eclipse) project ensure that the MYSQL jar file is correctly referenced (in your assignments, you will have to move this file into your project and set the path to the jar file):
    Right click on the project name, then select "Properities".
    Select libaries
    Confirm that the mysql-connector.jar file is listed in the "Compile Time Libaries:"
    See the following that demonstrates how to set the driver, jar reference path:


    In the Data project, DataIO class update the following constant fields to showy our credential information:
    CONNECTION_STRING
    USER_NAME
    PASSWORD
    In the DataIO class there are TODO items (select WINDOW|ACTION ITEM to see list of todo, click to take you to the code location). You are then asked to modify the following methods to interact with the database.
    add method
    delete method
    update method
    getList method

    Learn More
  9. PRG420 Week 1 Individual Assignment Coding a Simple Hello world Java Program

    PRG420 Week 1 Individual Assignment Coding a Simple "Hello, world!" Java Program

    Regular Price: $7.00

    Special Price: $5.00

    PRG420 Week 1 Individual Assignment Coding a Simple "Hello, world!" Java Program


    Individual: Coding a Simple "Hello, world!" Java™ Program


    Includes Working Java Build and Program File and Explanation of Code
    Resource: Week One Coding Assignment Zip File (starter code for this assignment that includes placeholders)
    For this assignment, you will apply what you learned in analyzing a simple Java™ program by writing your own Java™ program. The Java™ program you write should do the following:
    • Display a prompt on the console asking the user to type in his or her first name
    • Construct the greeting string "Hello, nameEntered!"
    • Display the constructed greeting on the console
    Complete this assignment by doing the following:
    1. Download and unzip the linked zip file.
    2. Add comments to the code by typing your name and the date in the multi-line comment header.
    3. Replace the following lines with Java™ code as directed in the file:
    • LINE 1
    • LINE 2
    • LINE 3
    • LINE 4
    4. Comment each line of code you add to explain what you intend the code to do.
    5. Test and modify your Java™ program until it runs without errors and produces the results as described above.
    Note: Refer to this week's analyzing code assignment if you need help.
    Submit your Java source (.java) code file using the Assignment Files tab.


    /**********************************************************************
    * Program: PRG420Week1_CodingAssignment
    *  Purpose: Week 1 Individual Assignment #2
    * Programmer: YOUR FULL NAME GOES HERE
    * Class: PRG/420 PRG420 PRG 420
    * Creation Date: TODAY'S DATE GOES HERE
    *********************************************************************
    *
    **********************************************************************
    * Program Summary: This program asks the user for a one-word name
    *            and then displays a constructed greeting
    *            that looks like this:
    *
    *            Hello, NAME!
    **********************************************************************/
    package prg420week1_codingassignment;


    /**
     *
     * @author NETBEANS PLACES YOUR INITIALS HERE
     */


    import java.util.Scanner;


    public class PRG420Week1_CodingAssignment {


      public static void main(String[] args) {


        // Create a usable instance of an input device 
        LINE 1. INSTANTIATE AN INSTANCE OF SCANNER AND ASSIGN IT TO A VARIABLE OF TYPE SCANNER.


        // Prompt user for input
        LINE 2. USE THE PRINT() METHOD TO PROMPT THE USER FOR HIS OR HER FIRST NAME.


        // Capture first word and assign it to A VARIABLE
        LINE 3. USE THE NEXT() METHOD OF YOUR SCANNER INSTANCE TO ASSIGN A VALUE TO A STRING VARIABLE.


        // Construct the greeting
        LINE 4. USE THE PRINTLN() METHOD TO CONSTRUCT A CORRECTLY PUNCTUATED GREETING.


    }
    }

    Learn More
  10. PRG420 Week 2 Individual Assignment Coding a Program Containing if-then and switch Java Source

    PRG420 Week 2 Individual Assignment Coding a Program Containing if-then and switch

    Regular Price: $10.00

    Special Price: $7.00

    PRG420 Week 2 Individual Assignment Coding a Program Containing if-then and switch


    Individual: Coding a Program Containing if-then and switch


    Includes Working Java Build and Program File and Explanation of Code
    Resources:  Week Two Coding Assignment Zip File (starter code for this assignment that includes placeholders), and Week Two Recommended Activity Zip File (examples of how to code a switch statement, an if-then-else statement, and how to construct a string to display text onscreen).
    For this assignment, you will apply what you learned in analyzing Java™ code so far in this course by writing your own Java™ program.
    The Java™ program you write should do the following:
    • Accept user input that represents the number of sides in a polygon. Note: The code to do this is already written for you.
    • If input value is not between 3 and 5, display an informative error message
    • If input value is between 3 and 5, use a switch statement to display a message that identifies the correct polygon based on the number of sides matching the input number (e.g., triangle, rectangle, or polygon)
    Complete this assignment by doing the following:
    1. Download and unzip the linked Week Two Coding Assignment Zip File.
    2. Read the file carefully, especially the explanatory comments of what the existing code does.
    3. Add your name and the date in the multi-line comment header.
    4. Refer to the following linked Week Two Recommended Activity Zip File to see examples of how to code all of the Java™ statements (i.e., switch, println(), and if-then-else) you will need to write to complete this assignment.
    5. Replace the following lines with Java code as directed in the file:
    • LINE 1
    • LINE 2
    6. Comment each line of code you add to explain what you intend the code to do.
    7. Test and modify your Java™ program until it runs without errors and produces the results as described above.
    Note: Refer to this week's analyzing code assignment if you need help.
    Submit your Java source (.java) code file using the Assignment Files tab.


    /**********************************************************************
    * Program: PRG/420 Week 2
    * Purpose: Week 2 Coding Assignment
    * Programmer: Iam A. Student
    * Class: PRG/420 PRG420 PRG 420
    * Creation Date: 10/18/17
    *********************************************************************
    *
    **********************************************************************
    * Program Summary: This program demonstrates these basic Java concepts:
    * - defining variables of different types
    * - if-then and if-then-else logic
    * - constructing a string to display onscreen
    * - switch logic
    *
    * To finish assignment, you will add code where indicated. The
    * behavior of your completed assignment should be to accept an input
    * value for the number of sides of a two-dimensional figure. Based on that value,
    * your code should display the type of figure that corresponds to the number of polygon angles
    * indicated (3=triangle, 4=rectangle, etc.)
    *
    * Here are the specific requirements:
    *
    * After the user types in a value from 3 to 5 inclusive (i.e., 3, 4, or 5):
    *
    * 1. Your code determines whether the input value is out of range (less than 3 or more than 5)
    * and, if so, displays a meaningful error message on the screen and ends the program.
    *
    * 2. Because you will be comparing a single expression (the input value) to multiple constants (3, 4, and 5),
    * your code should use a switch statement to display the following message onscreen:
    *
    * If user inputs 3, onscreen message should say "A triangle has 3 sides."
    * If user inputs 4, onscreen message should say "A rectangle has 4 sides."
    * If user inputs 5, onscreen message should see "A pentagon has 5 sides."
    *
    * 3. Be sure to test your program. This means running your program multiple
    * times with test values 3, 4, 5, as well as at least two values that fall outside that range
    * (one lower than the lowest and one higher than the highest) and making sure
    * that the correct message displays for each value you input. Also be sure
    * that running your program does not cause any compiler errors.
    ***********************************************************************/


    package week2codingassignment;


    import java.util.Scanner;


    public class PRG420Week2_CodingAssignment {
    public static void main(String[] args) {
    String userInputStringOfAngles; // Declare a variable of type String to capture user input
    int numberOfAngles; // Declare a variable of type int to hold the converted user input
    Scanner myInputScannerInstance = new Scanner(System.in); // Recognize the keyboard
    System.out.print("Please type the integer 3, 4, or 5 and then press Enter: "); // Prompt the user
    userInputStringOfAngles= myInputScannerInstance.next(); // Capture user input as string
    numberOfAngles = Integer.parseInt(userInputStringOfAngles); // Convert the string to a number in case this will be useful later
    // LINE 1. CODE TO DETERMINE WHETHER USER INPUT IS OUT OF BOUNDS GOES HERE
    // LINE 2. SWITCH CODE TO PRINT CORRECT "SHAPE" MESSAGE BASED ON USER INPUT GOES HERE
    }
    }

    Learn More

Items 31 to 40 of 105 total

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

Grid  List 

Set Ascending Direction