Explore BrainMass
Share

Explore BrainMass

    Java

    Java Program for a Mortgage Calculator

    Write the program in Java (with a graphical user interface) and have it calculate and display the mortgage payment amount from user input of the amount of the mortgage and the user's selection from a menu of available mortgage loans: - 7 years at 5.35% - 15 years at 5.5% - 30 years at 5.75% Use an array for the mortgage

    Writing Programs in Java and C#

    1. Write a Java program that reads in 10 integers and displays the biggest and second biggest number from them. For instance, if the input is 2 4 1 2 5 8 9 1 3 2, the output would show 9 and 8. You can choose to use the console for input and output, or to use dialog boxes. Test data in this case is simply a list of inputs

    Design and Analysis of Algorithms

    Consider a table B that consists of m integers B [1], B [2] ... B [m]. Design an algorithm to produce a two-dimensional m x m table C such that each element C[i,j] for i <j contains the sum of the B [i] up to the B [j], that is, (B [i] + B [i +1] + ... + B [j]). The values C[i,j] for i >= j are left unspecified, that is, these c

    Java Mortgage Calculator: Debugging A Conversion Exception

    I tried your code and this is what I got. I am using Net Beans 7.0.1 Exception in thread "main" java.util.UnknownFormatConversionException: Conversion = '1' at java.util.Formatter.checkText(Formatter.java:2547) at java.util.Formatter.parse(Formatter.java:2533) at java.util.Formatter.format(Formatter.java:2469) at java

    Programmers refer to hidden implementation details

    ____ variables and constants are those that are known to an entire class. Programmers refer to hidden implementation details as existing in a ____. Methods are flexible partly because they are ____. When appropriate, specialized ____ classes provide an elegant way for you to handle error situations. In some programmi

    High-Level Summary: Web Database and Data Warehouse

    Prepare a high-level summary of the main requirements to evaluate DBMS products for data warehousing. Suppose you are selling the data warehouse idea to your users. How would you explain to them what multidimensional data analysis is and its advantages? The Data Warehousing project group has invited you to provide an OLAP

    Java Solution That Implements a DVD Database

    Dear Dr. Yupei Xiong - You helped with the solution of the original Java application to implement a Merchant database, and I am hoping that you can help me update the solution with a new Java application to implement a workout/exercise DVD database, please. I have attached a Java application with 4 functional requirements

    Writing a Java Program: Example Problem

    Write a program that reads a line of text, changes each uppercase letter to lowercase, and places each letter both in a queue and onto a stack. The program should then verify whether the line of text is a palindrome (a set of letters or numbers that read s the same forward and backward).

    Creation of Java Hotel Class

    Creat a class named HotelRoom that includes an interger field for the room number and a double field for the nightly rental rate. Include get methods for these fields and constructor that requires an interger argument representing the room number. The constructor set s the room rate based on the room number; roooms numbered 299

    Java Book Class Creation

    Create a class named Book that contains data fields for the title and number of pages. Include get and set methods for these fields. Save as Book.java Next creadt a subclass named Textbook, which contains an additional field that hold grade level for the Texbook and additional methods to get and set the grat level field. Wri

    Write a Java application that can hold five doubles in an array.

    Write 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. Use the following logic for BubbleSort to sort and display the array in sequence. Int comparisonToMake = someNums.length - 1; for (a = 0; a < someNums.length - 1; ++a)

    Java Random Class

    Create a class that player guess anumber, the application generates a random number, and player determine whether they are correct. Display a message indicating whether the players guess was correct, too high or too low. Add a loop that contnuously prompts the user for the number indicating whether the guess is high or low, unti

    Creating a Java Application: Basic Input Checker Example

    Write an application that asks a user to type 1, 2, 3 or 4. When the user types 4, the program ends. When the user types 1, 2, or 3, the program displays the message "Good job!" and then asks for another input. When the user types anything else, the application issues an error message and then asks for another input. Save and na

    Java FastFood Applications

    Write an application that displays a menu of three items in a restaurant as follows: (1) Cheeseburger 4.99 (2) Pepsie 2.00 (3) Chips 0.75 Prompt the user to choose an item using the number (1, 2, or 3) that corresponds to the itme, or to enter 0 to quit the application. After the use rmakes the

    Java 9 - Pizza

    Create a class named Pizza. Data fields include a String of toppings (pepperoni, sausage, cheese, onions etc.) an integer for diameter in inches (such as 12, 14 or 16) and a double for price such as 13.99, 15.99. 17.99). Include methods to get and set values for each of these fields. Save as Pizza.java Create an application n

    Java 2 - Numbers

    Create an application named Numbers whose main () method holds two interger variables. Assign values to the variavles. Pass both variables to methods named sm () and difference (). Create the methods sum () and diffference (); they compute the sum of and difference between the vlues of two arguments, respectively. Each method s

    Ticket Number Validator

    Write a Java application that indicates invalid ticket number entries. It prompts a ticket agent to enter a six-digit ticket number. Ticket numbers are designed so that if you drop the last digit of the number, then divide the number by 7, the remainder of the division will be identical to the last dropped digit.

    Writing a JAVA script

    Write 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) and the net pay (gross pay - withholding). Save as Payroll.java

    Java 4 - Room

    Write a Java class that declares variables to represent the length and width of a room in feet. Assign appropriate values to the variables. Compute and display the floor spae of th eroom in square feet (area = length * width). Display explnatory text with the value - for example, the floor space 375 square fee. Save as Room.java

    Java Split Linked List Into Two Equal Sublists

    See the attachment. Splitting a Linked List into two sublists of almost equal sizes Add the method splitMid to the class LinkedListClass as follows: Public void splitMid(LinkedListClass<T> sublist); // This method splits the given list into two sublists of almost equal sizes // Precondition: The list must exist //Postc

    Inheritance and Polymorphism

    The class Date was designed to implement the date in a program, but the method setDate and the constructor with parameters do not check whether the date is valid before storing the date in the data members. Rewrite the definitions of the method setDate and the constructor with parameters so that the value of month, day, and year

    Creating a JAVA program

    Need to develop a program that performs the following: 1. Reads a string from the user 2. Obtains an offset value from the user 3. Creates a new string from the original plus the offset. 4. Display the two most used letters and the two least used letters in the new string

    Create a class named RaceHorse that extends Thread.

    Create a class named RaceHorse that extends Thread. Each RaceHorse has a name and a run() method that displays the name 50 times. Write an application that instantiates 5 RaceHorse objects each with different names, executing in their own Thread. The last RaceHorse to finish is the loser. Save the files as RaceHorse.java and

    Java application: Mail order company example

    Write 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. Write each record to a file named as "MailOrderRecords.txt". Use appropriate naming conventions, object instantiation, (where needed) accessors and mutators, and appropriate exception handling

    Mortage Calculator in Java (with GUI)

    Write a program in Java (with a graphical user interface) that calculates and displays the mortgage payment amount from user input of the amount of the mortgage and the user's selection from a menu of available mortgage loans: - 7 years at 5.35% - 15 years at 5.5% - 30 years at 5.75% Use an array for the mortgage data fo

    Live Nodes, Garbage Collection in Java

    class Node { int value; Node next; Node(int value, Node next) { this.value = value; this.next = next; } Node(int value) { this.value = value; } } class List { Node start; void inverse() { Node p = null; for (Node q = start;

    Pseudocode Program

    The distance a vehicle travels can be calculated as follows: Distance = Speed * Time For example, if a train travels 40 miles-per-hour for three hours, the distance traveled is 120 miles. Write a program that asks for the speed of a vehicle (in miles-per-hour) and the number of hours it has traveled. It sh