Start Discovering Solved Questions and Your Course Assignments
TextBooks Included
Active Tutors
Asked Questions
Answered Questions
Using Java write a program to create a file if it does not exist. Write 100 randomly created integers into the file using text I/O.
Create a mutable class Phone with two integer data fields: areaCode and number. Have two constructors, "getter" methods, and "setter" methods for each data
Which access modifier (public, private, protected, default) would you use on a data field in the following cases?
Create a Java application that indicates invalid ticket number entries. It prompts a ticket agent to enter a six-digit ticket number
Create a class that accepts a user's hourly rate of pay and the number of hours worked. Display the user's gross pay, the withholding tax (15% of gross pay)
Create a Java class that declares variables to represent the length and width of a room in feet. Assign appropriate values to the variables
Splitting a Linked List into two sublists of almost equal sizes
The class Date was designed to implement the date in a program, but the method setDate and the constructor with parameters do not check
Develop a program that performs the following:Reads a string from the user
Create a custom Java exception class named BadArrayException that has two constructors:
Create a class named RaceHorse that extends Thread. Each RaceHorse has a name and a run() method that displays the name 50 times.
Create a Java application for a mail order company that uses a data entry screen in which the user types an item number and a quantity.
For a list with n Nodes, what is the maximum number of nodes that are "live" (i.e., accessible from a "root set" of variables) during the method inverse()
Create a Java application to accomplish the following task:Ask users for the past 5 years of federal taxes they have paid
Create an application named Numbers. The Numbers class should have non-static public methods named sum and difference, each taking a pair of int variables
Create a Java program that can serve as a simple calculator. This calculator keeps track of a single number (of type double) that is called result
Explain the errors in the following Java code.
The new Java application files that perform the 7 functional requirements outlined below
Create a Java application that prompts a user for a full name and street address and constructs an ID from the user's initials and numeric part of the address
Creat a class named HotelRoom that includes an interger field for the room number and a double field for the nightly rental rate.
Create a class named Book that contains data fields for the title and number of pages. Include get and set methods for these fields.
Create a Java application that can hold five doubles in an array, and display the doubles from first to last, and then display the doubles from last to first.
Write an application that asks a user to type 1, 2, 3 or 4. When the user types 4, the program ends.
Create a class that player guess anumber, the application generates a random number, and player determine whether they are correct.