Start Discovering Solved Questions and Your Course Assignments
TextBooks Included
Active Tutors
Asked Questions
Answered Questions
You will create the ShoutBox class for your Virtual World. Your ShoutBox class will have two methods:
Design and code a SWING GUI to translate test this is input in English into Pig Latin. You can assume that the sentence contains no punctuation
Define a class named Payment that contains a member variable of type double that stores the amount of the payment and appropriate accessor
Create a Java program that inserts 25 random integers ranging from 0 to 100 into an ArrayList in ascending order
Create a Java application to accomplish the following task:
You run a small library. Ask the user to provide information for several books. The information must include the author, title and publisher of each book
The requirements are to record the weekly pay. If the employee works more than 40 hours a week, the employee earns 1.5 times the basic hourly pay
How do you rewrite this code so that it compiles and runs correctly, without making the sumofsquares and nTimesProduct methods static
However, I am told the above code would not be written by an experienced Java programmer because the showMessageDialog method is static within the class.
Implement an abstract class Vehicle and concrete subclasses Car and Truck. A vehicle has a position on the screen. Write methods draw that draw cars and trucks
Rewrite the HardwareData class using Java synchronization so that it is thread safe.
Create a JAVA application that prints the following table using the sqrt ( ) method in the Math class. Use a for loop to produce the output results.
The Applet displays a simple animation of a juggler. The animation works with a thread that runs the following code:
Create a program the instantiates a RealEstateSalesperson and a Girlscout object.
Create an applet file that prompts the user for an ID number and an age. Create an Exception class and throw an Exception of that class
Write a program that reads in strings of characters and determines if each string is a palindrome. Each string appears on a separate input line.
Write a program in Java which defines two unconstrained arrays of user defined length n, that contain n Random numbers each
Create a Java program method named reversal that returns a new array that is a reversal of the original array.
The output should display the information one product at a time, including the item number, the name of the product, the number of units
Write a Java application using iteration that will print two of the following patterns. Select either #1 & #4 OR #2 & #3 patterns.
Write a program that asks the user how many automobiles are to be described, and for each automobile it inputs the user's selection of make and color
Implement radix sort on a list of Strings, using Queues of a Queue class as buckets that needs to be implemented with a circular array.
The characteristics of this class are the name of the product, the cost per unit, and the number of items. This class is named LineItem.
Write an application that prompts the user to make a choice for a Coffee cup size, S for Small, T for Tall, G for Grande and V for Ventia
Implement a class 'SearchSort' which contains recursive versions of the methods below: