Browse J
Alphabetical listing with fast deep pagination.
10965 items • Page 24 / 220
JAVA Vending Machine Exception - Modifying a class to use Exceptions Purpose: to
JAVA Vending Machine Exception - Modifying a class to use Exceptions Purpose: to provide an exercise using exceptions. Create a VendingMachineException class defined in VendingMac…
JAVA Vera takes a jar which contains exactly 100 quarters to the casino with the
JAVA Vera takes a jar which contains exactly 100 quarters to the casino with the intention to win big. She plays four machines slot machines in sequence. Unknown to her, the machi…
JAVA WEB APPLICATIONS create an empty order form use this code as an example: pa
JAVA WEB APPLICATIONS create an empty order form use this code as an example: package app26b; import java.io.IOException; import java.io.PrintWriter; import java.util.Enumeration;…
JAVA What is the output? Explain how you obtain this answer by hand, not using a
JAVA What is the output? Explain how you obtain this answer by hand, not using a computer. String alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; for(int i = 1; i <= 26; i *= 2) { Sys…
JAVA What is the solution to the problem public class Item { private String name
JAVA What is the solution to the problem public class Item { private String name; private double price; private int bulkQuantity; private double bulkPrice; public Item(String name…
JAVA Which of the following is not an acceptable (according to good coding pract
JAVA Which of the following is not an acceptable (according to good coding practice) use of exceptions? A routine might use exceptions to report invalid input values A routine mig…
JAVA While taking advantage of inheritance, define classes required to create st
JAVA While taking advantage of inheritance, define classes required to create student and lecturer objects. Assume that both objects have id, name and gender attributes. Also assu…
JAVA Why it doesnt work? package javaapplication1; import javafx.event.ActionEve
JAVA Why it doesnt work? package javaapplication1; import javafx.event.ActionEvent; import javafx.event.EventHandler; import javafx.scene.layout.Pane; import javafx.scene.paint.Co…
JAVA Write Java code for extending the LinkedList class of java.util.* to ExtLin
JAVA Write Java code for extending the LinkedList class of java.util.* to ExtLinkedList that would include the following method: public ExtLinkedList firstHalfList() which returns…
JAVA Write True or False . If False, explain why? (5 points) 1. When a programme
JAVA Write True or False. If False, explain why? (5 points) 1. When a programmer creates a JFrame, a minimum of at least one menu with two menu items must be created and added to …
JAVA Write a Customer class that contains the following fields: - Name - Custome
JAVA Write a Customer class that contains the following fields: - Name - Customer ID - Address - Phone Number The class should have two constructors: - A no-arg constructor that s…
JAVA Write a GUI program that has a Coin object as one of its instance variables
JAVA Write a GUI program that has a Coin object as one of its instance variables. When a button is pushed, the Coin is flipped, and its heads/tails result is used to update the GU…
JAVA Write a Java program (called practice_6_3) that uses a while loop to determ
JAVA Write a Java program (called practice_6_3) that uses a while loop to determine and print out all even numbers between 50 and 100 on a single line, separated by commas. Then a…
JAVA Write a boolean method called isOdd() in a class called OddTest, which take
JAVA Write a boolean method called isOdd() in a class called OddTest, which takes an int as an argument and returns true if the int is odd, false if its not. The signature of the …
JAVA Write a class Person.java that acts as a person with Strings to hold their
JAVA Write a class Person.java that acts as a person with Strings to hold their name and address. This class should also contain: A constructor, Person(String name, String address…
JAVA Write a class that represents a digital snowman. Your class should follow t
JAVA Write a class that represents a digital snowman. Your class should follow these guidelines: Store the following private class variables a. bodyColor of type Color. b. int x, …
JAVA Write a class to create a card (made up of 4 suits ( Hearts, Diamonds, Club
JAVA Write a class to create a card (made up of 4 suits ( Hearts, Diamonds, Clubs and Spades) and cards from 2 to 10 and Jacks(11), Queens(12), King(13), and Ace(1). Two getters a…
JAVA Write a class, Coin, that has private fields - cents (int), and name (Strin
JAVA Write a class, Coin, that has private fields - cents (int), and name (String). Provide accessors for cents and name. Provide a default constructor that creates a penny. Provi…
JAVA Write a command line application, in the file Problem2.java that indexes th
JAVA Write a command line application, in the file Problem2.java that indexes the words contained in a text file (provided to the program as a command line argument). Your program…
JAVA Write a guessing game. Create a class called Secret. This class - has an in
JAVA Write a guessing game. Create a class called Secret. This class - has an instance variable, an int, that holds the solution to the game, - and has another int instance variab…
JAVA Write a java program named BSTree.java that will: 1. Generate 100 random in
JAVA Write a java program named BSTree.java that will: 1. Generate 100 random integer numbers ranging from 1 – 99. 2. Build a Binary Search Tree using this set of numbers. 3. Afte…
JAVA Write a linked list class to accept an object and one pointer to the next n
JAVA Write a linked list class to accept an object and one pointer to the next node, add getters, setters and a print method. Use this class to make a linked list and print it And…
JAVA Write a main method that prompts user for an integer. Main then calls the t
JAVA Write a main method that prompts user for an integer. Main then calls the three methods on the input number and prints the results.The results MUST printed from main not from…
JAVA Write a main method that prompts user for an integer. Your main then calls
JAVA Write a main method that prompts user for an integer. Your main then calls the three methods on the input number and prints the results. Make sure that the results are printe…
JAVA Write a method named getCategory, that receives numeric value (double) and
JAVA Write a method named getCategory, that receives numeric value (double) and returns a String, "Over", if the value is over 100.0, "Average", if the value is less than or equal…
JAVA Write a method rotate that moves the value at the front of a linked list of
JAVA Write a method rotate that moves the value at the front of a linked list of integers to the end of the list. For example, if a variable called list stores the following seque…
JAVA Write a method that calculates a discount of 20% from the amount of the cus
JAVA Write a method that calculates a discount of 20% from the amount of the customer who spent most. Only method is needed, no need to write whole code or main method. public cla…
JAVA Write a method to add two matrices. The header of the method is as follows:
JAVA Write a method to add two matrices. The header of the method is as follows: public static doub1e[][] addMatrix(double[] [] a, double[][] b) In order to be added, the two matr…
JAVA Write a program that allows the user to enter and then search a list of stu
JAVA Write a program that allows the user to enter and then search a list of student names and grades. Your program will execute in two phases. In the first phase, the user will e…
JAVA Write a program that analyzes text written in the console by counting the n
JAVA Write a program that analyzes text written in the console by counting the number of times each of the 26 letters in the alphabet occurs. Uppercase and lowercase letters shoul…
JAVA Write a program that computes the monthly loan payment, given the loan amou
JAVA Write a program that computes the monthly loan payment, given the loan amount (a double value), the interest, as a percent % (a double value), and the number of years to repa…
JAVA Write a program that creates a two-dimensional array initialized with test
JAVA Write a program that creates a two-dimensional array initialized with test data. Use any primitive data type that you wish. The program should have the following methods: • g…
JAVA Write a program that meets the following requirements: • Create a class for
JAVA Write a program that meets the following requirements: • Create a class for students. The class must contain each student’s name, (String), ID (int) and status (int.) The sta…
JAVA Write a program that produces random permutations of the numbers 1 to 10. (
JAVA Write a program that produces random permutations of the numbers 1 to 10. (Note: “Permutation” is a mathematical name for an arrangement.) For example, there are six permutat…
JAVA Write a program to calculate the result of one of three operations (minimum
JAVA Write a program to calculate the result of one of three operations (minimum, L1 norm, L2 norm) on a vector of three numbers. To begin, have the user input three numbers at th…
JAVA Write a program to display a menu. Each menu item will represent one of the
JAVA Write a program to display a menu. Each menu item will represent one of the problem statements below. You will be implementing them with one or more methods, feel free to reu…
JAVA Write a program with a main method and two other methods. 1.Main Method: -U
JAVA Write a program with a main method and two other methods. 1.Main Method: -User enters three numbers -Print out all results 2.calcSum Method (first, second, third): ¥ -Get thr…
JAVA Write a program with a main method and two other methods. 1.Main Method: -U
JAVA Write a program with a main method and two other methods. 1.Main Method: -User enters three numbers -Print out all results 2.calcSum Method (first, second, third): - Get thre…
JAVA Write a program with a main method that asks the user to enter an array of
JAVA Write a program with a main method that asks the user to enter an array of 10 integers. Your main method then calls each of the three methods described below and prints out t…
JAVA Write a program with the class Skydive that calculates the velocity of a sk
JAVA Write a program with the class Skydive that calculates the velocity of a skydiver as a functionoftime. The main program will include a loop that allows you to enter in the sp…
JAVA Write a program with the class Skydive that calculates the velocity of a sk
JAVA Write a program with the class Skydive that calculates the velocity of a skydiver as a functionoftime. The main program will include a loop that allows you to enter in the sp…
JAVA Write a recursive method called noVowels that takes a String as an argument
JAVA Write a recursive method called noVowels that takes a String as an argument and returns true if the String does not contain any 'a', 'e', 'i', 'o', or 'u' characters, false i…
JAVA Write a recursive method static int intSquareRoot(int n) {} // return the b
JAVA Write a recursive method static int intSquareRoot(int n) {} // return the biggest number whose square is <= n. Assume n >= 0. Use recursion. No loops allowed. You wi…
JAVA Write a simple line editor. Keep the entire text in an ArrayList object, on
JAVA Write a simple line editor. Keep the entire text in an ArrayList object, one line in a separate index position. Start the program with entering EDIT file, after which a promp…
JAVA Write a simple line editor. Keep the entire text in an ArrayList object, on
JAVA Write a simple line editor. Keep the entire text in an ArrayList object, one line in a separate index position. Start the program with entering EDIT file, after which a promp…
JAVA Write a static method named conflicts that takes two Maps using Strings as
JAVA Write a static method named conflicts that takes two Maps using Strings as keys and Integers as values. The method should return a Set of Strings. The Set returned by conflic…
JAVA Write a super class Vehicle which has the following--- Attributes: (1) whee
JAVA Write a super class Vehicle which has the following--- Attributes: (1) wheel (number of wheel) and (2) seat (number of seat). Constructor: which sets the value of wheel and s…
JAVA Write an application to test the HuffmanTree class. Your application will n
JAVA Write an application to test the HuffmanTree class. Your application will need to read a text file and build a frequency table for the characters occurring in that file. Once…
JAVA Write an application to test the HuffmanTree class. Your application will n
JAVA Write an application to test the HuffmanTree class. Your application will need to read a text file and build a frequency table for the characters occurring in that file. Once…
JAVA Write another class called Bank containing a main method in order to fully
JAVA Write another class called Bank containing a main method in order to fully test your account classes. Create two objects for each account class (Total 6). Using the objects c…