Explore BrainMass

Explore BrainMass

    Java

    BrainMass Solutions Available for Instant Download

    Java Programming

    I need the size of the frame to be set a little bit larger than its content, which is a label. Also, the location could be set so that it could be appeared not at the upper left corner of the screen. And we can set the foreground and background color of the label. import javax.swing.*; import java.util.*; public

    HTML file to run program

    This applet program needs an html file to run. You should supply the file along with the program so that the reader can test it. import java.applet.*; import java.awt.*; public class DrawRectangles extends Applet { int width, height; public void init() { width = getSize().width; height = getSi

    9 button frame based application

    Create a Frame-based application that displays an array of nine buttons on a Panel. Assign the Panel to the Center of your frame. Each button should display the name of a course in your department. Include a TextField in the South. When the user clicks a button, the course name should display in the TextField. There should be a

    Array of Spices in Java

    If I were to describe an every day situation, like being a chef at a restaurant, how would I implement an array (for inventory) of my spices (I would have a total of 20 spice bottles)? And, how would items in the array might be searched for or sorted? I don't need a full program, I just need pseudocode - a small example of ju

    Explain Java method with Multiple parameters

    This is about methods with multiple parameters: Could you explain to me (in very simple terms) how methods with multiple parameters are declared? If possible, could you provide two short examples? I just need to get a head-start so I can implement this to my assignment if it comes up.

    Java Help 3

    A local middle school hired you to write a quiz program that answers questions about Math, Science and the Arts. The program user should be able to select from these topics by entering an option when the program starts. For example, you may use M for Math, S for Science, A for the Arts, and X to exit the program. After the stude

    Java Help

    1. What is the difference between a Java compiler and a Java interpreter? 2. Write a user-defined class called Person. This class should have private instance variables defined as: private int age;private String firstName;private String lastName; In addition, the class should have a constructor defined as: public Per

    Compiling and Running a Java Program with TextPad

    How do I compile this program in Java SDK 1.5.0 with the TextPad application. Please help provide step-by-step how to set this all up. I have used Miracle C before but this seems a little different to me. Please see the attached program file.

    I keep getting errors when compiling this program in Java Netbeans Why?

    The mortgage calculator must display the mortgage payment amount given the amount of the mortgage, the term of the mortgage, and the interest rate of the mortgage. This program must have hard code amount = 200,000, term = 30 years, and the interest rate = 5.75%. Must have strings to declare the variables. ______________________

    X3D versus VRML

    X3D is currently replacing VRML as the nearest the internet gets to Virtual Reality currently. Is X3D suited specifically to certain applications over others? Discuss an application for the Internet where you believe Virtual Reality would be of benefit.

    Computer troubleshooting

    In a troubleshooting situation, a modem failed to work when a new internet browser program was installed. Which of these critical questions would likely lead a troubleshooter to the source of the modem failure. A. Have you ever had this problem before? B. Has the modem ever worked? C. Is the problem repeatable? D. Have you

    Object-oriented tasks - Driving a Car

    ? Identify how you can encapsulate the data and processes you identified into an object-oriented design. ? Describe the architectural differences between the object-oriented and structured designs. Which of the designs makes more sense to you? Why? _______________________________________________________________________

    computer programming as art or science

    1.) Do you feel that computer programming is art or science? 2.) Which programming language appeals to you, and which language do you consider least appealing?

    Inventory Java Program with GUI

    Modify the Inventory Program to use a GUI. The GUI should display the information one product at a time, including the item number, the name of the product, the number of units in stock, the price of each unit, and the value of the inventory of that product. In addition, the GUI should display the value of the entire inventory,

    Java Applet that displays the 13 standard colors

    Write an Java Applet that displays the 13 standard colors available in Java (back, blue, cyan, darkGray, gray, green, lightGray, magenta, orange, pink, red, white and yellow) in a set of 13 filled rectangles.

    IT Management

    Scenario: A volunteer organization 'AllTechComm' is largely a group of computer professionals who wanted to give back to the community in a variety of ways, both non-technical and technical. A portion of your organization is support, HR, or training-oriented, and has only basic technical knowledge. You are the newly appoint

    Java Programming to create an inventory

    Choose a product that lends itself to an inventory (for example, products at your workplace, office supplies, music CDs, DVD movies, or software). ? I need to create a product class that holds the item number, the name of the product, the number of units in stock, and the price of each unit. ?I need to create a Java ap

    Database Management System

    Q1. State advantages of separating the database management system from application software Q2. Explain one advantage that: a. A sequential file has over an indexed file b. A sequential file has over a hash file c. An indexed file has over a sequential file d. An indexed file has over a hash file e. A hash file has

    Java Tokenizer

    Convert the program attached to this text to allow the program to print out each word of the input sentence to a separate line of a file called words.txt. After this, create another program that could be used to take the words in words.txt and recreate the original sentence - this time printing the result to the screen. Please

    Creating a Java Program that Sorts a 10 Element Integer Array

    Design and implement a Java program which sorts a 10 element integer array using the bubble sort process. The elements of the array to be sorted should be supplied by the user and should not include any duplicates. Create a GUI front end for your bubble sort program. In the example there are 10 text fields on a JFrame backgr

    Java Programming: Payroll Program Example

    1. Modify the Payroll Program so that it uses a class to store and retrieve the employee's name, the hourly rate, and the number of hours worked. 2. Use a constructor to initialize the employee information, and a method within that class to calculate the weekly pay. Once stop is entered as the employee name, the application

    Java Address Program with 3 Classes

    Implement a class called ShortAddress that has the following attributes: firstName, secondName, and phoneNumber. Then implement a class called FullAddress that inherits the above attributes while adding the attributes (int) houseNumber (simply 1, 2, ... etc. - i.e. no 1a or 3b's allowed), street1Name, street2Name and cityNam

    Java Address program with 3 classes

    Implement a class called ShortAddress that has the following attributes: firstName, secondName, and phoneNumber. Then implement a class called FullAddress that inherits the above attributes while adding the attributes (int) houseNumber (simply 1, 2, ... etc. - i.e. no 1a or 3b's allowed), street1Name, street2Name and cityNam

    Java program that computes annual road tax

    Write a program that computes the annual road tax (vehicle excise duty) charges for three types of vehicles: vans, cars and motorcycles. The road tax rate is calculated as follows for each type of vehicle: Vans Light goods vehicles weighing less than 3500kg are charged at 165 GBP (British Pounds); otherwise they are cha

    Edit Java program for input of numbers only..

    Edit Java program for input of numbers only. If the user inputs a letter the program must abort with a messegae like "Program aborted by user". Please explain the code. import java.util.*; public class NumberMonth { public static void main(String args[]) { Scanner input = new Scanner(System.in); wh

    Write a code in Java that continuously outputs random numbers

    Write a code in Java that continuously outputs random numbers between 0 and 10000 until a number which is divisible by 5 is encountered. The user should be prompted for the next random search or have the option to quit the program. The code you write should be well commented. It will influence your rating! The program should con