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 76 total

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

Grid  List 

Set Ascending Direction
  1. CMIS 141 Homework 3 Array Sorting

    CMIS 141 Homework 3 Array Sorting

    Regular Price: $12.00

    Special Price: $10.00

    CMIS 141 Homework 3 Array Sorting


    Write a Java application that allows a user to enter 10 numbers (double precision) into an array and then sorts and displays the numbers from lowest to highest. Remember that array addresses begin at 0, not at 1. You should use the Arrays.sort() method. Demonstrate your code compiles and runs without issue Be sure to include comprehensive test cases to demonstrate your program is implemented correctly. Your test cases should include the input, expected output, actual output and if the test case passed or failed. You can document your test cases in a word table and include it in your word document submission. Test cases should include negative numbers, and numbers that are very close to each other (to test the sort).
    For example, -.001,-.0011,0.0,.001,.0011,.00111,.0010001,-999,999,999.00001


    Homework 3 Submission requirements:
    Your completed assignment should consist of the Yournamehw3.java Java file and a Yournamehw3.doc Word document. Submit each of these files to your WebTycho homework 3 assignment area no later than the due date listed in the syllabus.

    Learn More
  2. BMIS 212 Week 4 Programming Assignment Exercise 6.35 Computer-Assisted Instruction

    BMIS 212 Week 4 Programming Assignment

    Regular Price: $15.00

    Special Price: $12.00

    BMIS 212 Week 4 Programming Assignment


    Exercise 6.16 (Multiples) Write a method isMultiple that determines, for a pair of integers, whether the second integer is a multiple of the first. The method should take 2 integer arguments and return true if the second is a multiple of the first and false otherwise.[Hint: Use the remainder operator]. Incorporate this method into an application that inputs a series of pairs of integers (1 pair at a time) and determines whether the second value in each pair is a multiple of the first.


    Exercise 6.20 (Circle Area) Write an application that prompts the user for the radius of a circle and uses a method called circleArea to calculate the area of the circle.


    Exercise 6.35 (Computer-Assisted Instruction) The use of computers in education is referred to as computer assisted instruction (CAI). Write a program that will help an elementary school student learn multiplication. Use a Random object to produce 2 positive 1-digit integers. The program should then prompt the user with a question, such as "How much is 6 times 7?"


    The student then inputs the answer. Next, the program checks the student’s answer. If it's correct, display the message "Very Good!" and ask another multiple question. If the answer is wrong, display the message "No. Please try again." And let the student try the same question repeatedly until the student finally gets it right. A separate method should be used to generate each new question. This method should be called once when the application begins execution and each time the user answers the question correctly.

    Learn More
  3. BMIS 212 Week 5 Programming Assignment Variable-Length Argument List

    BMIS 212 Week 5 Programming Assignment

    Regular Price: $15.00

    Special Price: $12.00

    BMIS 212 Week 5 Programming Assignment

    Exercise 7.14 (Variable-Length Argument List) Write an application that calculates the product of a series of integers that are passed to method product using a variable-length argument list. Test your method with several calls, each with a different number of arguments.

    Exercise 7.19 (Airline Reservations System) A small airline has just purchased a computer for its new automated reservations system. You've been asked to develop the new system. You're to write an application to assign seats on each flight of the airline's only plane (capacity: 10 seats).
    Your application should display the following alternatives: "Please type 1 for First Class" and "Please type 2 for Economy." If the user types 1, your application should assign a seat in the first class section (seats 1–5). If the user types 2, your application should assign a seat in the economy section (seats 6–10). You application should then display a boarding pass indicating the person's seat number and whether it's in the firstclass or economy section of the plane.
    Use a 1 dimensional array of primitive type Boolean to represent the seating chart of the plane. Initialize all the elements of the array to false to indicate that all the seats are empty. As each seat is assigned, set the corresponding element of the array to true to indicate that the seat is no longer available.
    Your application should never assign a seat that has already been assigned. When the economy section is full, your application should ask the person if it's acceptable to be placed in the first class section (and vice versa). If yes, make the appropriate seat assignments. If no, display the message "Next flight leaves in 3 hours."

    Exercise 8.4 (Rectangle Class) Create a class Rectangle with attributes length and width, each of which defaults to 1. Provide methods that calculate the rectangle's perimeter and area. It has set and get methods for both length and width. The set methods should verify that length and width are each floating-point numbers larger than 0.0 and less than 20.0. Write a program to test class Rectangle.

    Learn More
  4. BMIS 212 Week 7 Programming Assignment Catching Exceptions Using Class Exception

    BMIS 212 Week 7 Programming Assignment

    Regular Price: $15.00

    Special Price: $12.00

    BMIS 212 Week 7 Programming Assignment


    Exercise 11.9 (Order of catch Blocks) Write a program that shows that the order of catch blocks is important. If you try to catch a superclass exception type before a subclass type, the compiler should generate errors.


    Exercise 11.17 (Catching Exceptions with Superclasses) Use inheritance to create an exception superclass (called ExceptionA) and exception subclasses ExceptionB and ExceptionC, where ExceptionB inherits from ExceptionA and ExceptionC inherits from ExceptionB. Write a program to demonstrate that the catch block for type A ExceptionA catches exceptions of types ExceptionB and Exception C.


    Exercise 11.18 (Catching Exceptions Using Class Exception) Write a program that demonstrates how various exceptions are caught with Catch
    (Exception exception).
    This time define classes ExceptionA (which inherits from class Exception) and ExceptionB (which inherits from class ExceptionA). In your program, create try blocks that throw exceptions of types ExeptionA, ExceptionB, NullPointerException and IO Exception. All exceptions should be caught with catch blocks specifying type Exception.

    Learn More
  5. BMIS 212 Week 1 Programming Assignment churchs website chatting

    BMIS 212 Week 1 Programming Assignment

    Regular Price: $15.00

    Special Price: $12.00

    BMIS 212 Week 1 Programming Assignment


    In this new age of Technology (Website, social media, etc., we have been given the opportunity to minister and serve others in many ways. Using the techniques you have learned in this chapter, write a program which displays at least 5 different sentences that explain how technology has been used to win souls to Christ.


    Instructions: Write a portion of a program for a church's website. The program will be used for a chatting feature, which should include an Input Box that requests the user's name. The message box should include the user's name and the Scripture of the Day (chapter and verse only).


    The program should be similar to the text below:
    Welcome, Bob, To The Liberty University Website!
    The Scripture for the day is: Matthew 6:11


    The assignment must have the following statements and components as demonstrated in the text:
    1 Java file and 1 Class file
    Variable
    Input Statement


    Program should follow Java Programming Conventions as shown in the Grading Rubric.


    Exercise 2.14 Write an application that displays the numbers 1 to 4 on the same line, with each pair of adjacent numbers separated by 1 space. Use the following techniques:
    Use 1 System.out.println statement
    Use 4 System.out.print statements
    Use 1 System.out.printf statement


    Exercise 2.15 (Arithmetic) Write an application that ask the user to enter 2 integers, obtains them from the user and prints their sum, product, difference and quotient (division). Use the techniques shown in Figure 2.7


    Exercise 2.26 (Comparing Integers) Write an application that reads 2 integers, determines whether the first is a multiple of the second and prints the result. [Hint: Use the remainder operator.]

    Learn More
  6. BMIS 212 Week 2 Programming Assignment Exercise 311 Modified GradeBook Class

    BMIS 212 Week 2 Programming Assignment

    Regular Price: $15.00

    Special Price: $12.00

    BMIS 212 Week 2 Programming Assignment


    Exercise 3.11 (Modified GradeBook Class) Modify class Gradebook (fig. 3.10) as follows:
    a. Include a String instance variable that represents the name of the course's instructor.
    b. Provide a set method to change the instructor's name and a get method to retrieve it.
    c. Modify the constructor to specify 2 parameters—one for the course name and 1for the instructor's name.
    d. Modify method displayMessage to output the welcome message and course name, followed by "This course is presented by:" and the instructor's name.


    Exercise 3.14 (Employee Class) Create a class called Employee that includes 3 instance variables—a first name (type String), a last name (type String), and a monthly salary (double). Provide a constructor that initializes the 3 instance variables. Provide a set and a get method for each instance variable. If the monthly salary is not positive, do not set its value. Write a test application named EmployeeTest that demonstrates class Employee’s capabilities. Create 2 Employee objects and display each object’s yearly salary. Then give each Employee a 10% raise and display each Employee’s yearly salary again.


    Exercise 3.15 (Date Class) Create a class called Date that includes 3 instance variables—a month (type int), a day (type int), and a year (type int). Provide a constructor that initializes the 3 instance variables and assumes the values provided are correct. Provide a set and a get method for each instance variable. Provide a method displayDate that displays the month, day, and year separated by forward slashes(/). Write a test application named DateTest that demonstrates class Date's capabilities.

    Learn More
  7. CMIS 242 Project 1 Automobile class

    CMIS 242 Project 1 Automobile class

    Regular Price: $20.00

    Special Price: $15.00

    CMIS 242 Project 1 Automobile class


    Design and implement an automobile class along with four subclasses using the following guidelines:
    1. Create a class named Automobile and four subclasses. They can be any named anything you want that is considered an automobile. You can use brand names, car types, etc.
    - Some examples: SUV, Electric, Mercedes, Convertible.
    - Whatever you choose, all four subclasses should be somewhat related.
    2. The Automobile class the following data fields:
    - licensePlateNumber
    - isStarted
    - isForSale
    3. The Automobile class also has methods for setting and getting the values of each of the fields.
    4. The Automobile class also has a constructor that sets the isStarted and isForSale data fields to false.
    5. The Automobile class also has methods for describing what the automobile looks like (e.g., color, shape, condition, etc.). This is again your choice.
    6. Each of the four subclasses should also contain one additional data field and the appropriate get/set methods.
    7. Finally, create a Java test class that simulates using your Automobile class and its subclasses. In your test class you should, at a minimum:
    - construct at least one instance of each automobile
    - start at least two of the instances
    - put at least two of the instances up for sale (at least one of the not-started instances)
    - print the description for each of the instances


    Additionally, draw a UML class diagram of your classes using PowerPoint (PPT), Draw.io, or any other graphical editing tool.
    Be sure your code compiles and runs as expected.


    Submission Requirements
    Your deliverables include five Java files, one Java test file, and your UML diagram(s). Submit each of these files to your LEO assignment area no later than the associated due date.

    Learn More
  8. CMIS 242 Homework 2 Simplified Calculator

    CMIS 242 Homework 2 Simplified Calculator and Searchable Interface

    Regular Price: $12.00

    Special Price: $10.00

    CMIS 242 Homework 2 Simplified Calculator and Searchable Interface


    Simplified Calculator
    1. Write a Java application that asks a user to enter two integers (we'll call them A and B, but you can name them whatever you want in your program).
    2. Your application should then display the results of:
    - A / B
    catch any divide by zero errors and prompt the user to enter a new value for B
    - A ^ B
    A to the B power
    3. Be sure your code compiles and runs as expected.


    Searchable Interface
    1. Write a Java interface named Searchable with two abstract methods:
    1. searchMethod that returns a String
    2. minTime that returns an Integer
    2. Be sure your code compiles without errors.

    Learn More
  9. CMIS 141 Project 1 Grade Comments

    CMIS 141 Project 1 Grade Comments

    Regular Price: $15.00

    Special Price: $12.00

    CMIS 141 Project 1 Grade Comments


    Design and implement a Java program that will read the name and number of points of the students and displays the comments accordingly.
    In the following table there are the relation between Grades, Points and Comments


    Grade Points Comments
    A+ 100 The grade is A+: Outstanding it is a perfect score. Well done.
    A 90-99 The grade is A : Excellent Performance excels far above established standards for university-level performance.
    B 80-89 The grade is B : Superior-Performance above established standards
    C 70-79 The grade is C : Good- Performance meets established standards
    D 60-69 The grade is D : Substandard- Performance is below established standards
    F 0-59 The grade is F : Failure- Performance does not meet minimum requirements


    Program Statement
    The program ask you to introduce:
    First name:
    Points:
    The output is:
    Name of the student, Points, Grade, Comments regarding the grade (like in the table)
    1. Use JOptionPane.showInputDialog() methods for your user to input their data
    2. Use JOptionPane.showMessageDialog() methods to display your messages.
    3. Include a comprehensive set of application test data that you used to test your program. Your test data can be shown in a table that includes input data, expected output, actual output and pass/fail results from the test. Your test data can be presented in the form of a table as follows:
    Example application test data:
    Input Expected Output Actual Output Did Test Pass?
    First name : John Points: 97 John has points 97 and the grade is A : Excellent Performance excels far above established standards for university-level performance. John has points 97 and the grade is A : Excellent Performance excels far above established standards for university-level performance. Y
    Additional data test have to be added

    Learn More
  10. CMIS 242 Homework 3 Age-Recognizing Form

    CMIS 242 Homework 3 Age-Recognizing Form

    Regular Price: $12.00

    Special Price: $10.00

    CMIS 242 Homework 3 Age-Recognizing Form

    Write a Java application that displays a form for a user to enter their first name, last name, and age.
    The form should include a JButton and a JTextField.
    When the user clicks on the JButton, the application should display "User Login: <last name>, <first name>", where <first name> and <last name> are the current user-entered values.
    The application should a message related to the user's age. The actual message is your choice, but the divisions should be along the following age limits:
    less than 12
    between 13 and 18
    between 19 and 35
    between 36 and 65
    greater than 66
    Be sure your code compiles and runs as expected.

    Learn More

Items 1 to 10 of 76 total

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

Grid  List 

Set Ascending Direction