Explore BrainMass


Why would Java advocates support UNIX?

Hello OTA in two paragraphs. Why would Java advocates support UNIX? I now know that UNIX was written in C language. Software works on one machine but will not run on another machine. All these software were written in machine language. To over come these problems the developers in bell labs laboratories starting working on

Programming in Java: Magazine

I've attached the assignment so please download the file. Thanks! Question: Modify the magazine rack program (from the lecture notes) by adding delete and insert operations into the magazine rack class. The insert method should be based on a compareTo() method in the Magazine class that determines if one magazine title comes

Multiple Choice Questions on Computer Programming and Databases

1. Which of the following is the same as the mean? a. median b. sum c. arithmetic average d. logarithm 2. The process of reversing the positions of two variables is called ____. a. sorting b. swapping c. selecting d. inserting 3. Which of the following is considered to be a popular coding scheme? a. ASCII b. EBCD

Potential IT Professions

Write a 200- to 300-word description of at least two professions in these fields. Computer Systems Analysts Computer Programming

Operating System and Programming Languages in Workplaces

1. I need to write a 1-2 page memorandum describing what operating systems are used at your place of employment (if your company is too large, describe a department). Why were those operating systems chosen? 2. I need to write a 1-2 page memorandum descibing what programming languages are used at your place of employment). W

Programming in Java II - Develop a program that plays "Five Card Stud".

CSC 212 - Homework #6 Develop a program that plays "Five Card Stud". The user plays agains the computer. The program will "deal" five cards to the user and itself. Whoever has the highest hand wins. Inform the user who has won that hand, and ask if the user wants to play again. Interaction is as follows: Your hand is: 2 o

Need help with functions in C and C++

Problem: Write a C function that includes the following sequences of statements: x = 21; int x; x =42; Run program and explain the results. Rewrite the same code in C++ and Java. I understand Java: Looks like this; Java: public int myMethod(int x) { x = 21; x = 42; return x; } It will

Simple Java Program

GIVEN THE CODE IN THE ATTACHMENT, develop a test program called CoinCounterTest to test the CoinCounter class. In the test program do the following: 1. Write client code (in the file) to create a CoinCounter object called counter. 2. Write client code to call the print method of counter. 3.

ODBC using Apache Derby

The purpose of this 3 page paper is to discuss Open Database Connectivity (ODBC) using Apache Derby Including strengths and weaknesses Open Database Connectivity (ODBC) is one of the most popular ways today to code a database application. Embedded SQL applications tend to lack interoperatiliby. Applications might have to modif

Airlines Information Management Systems-Requirement for Case Diagrams

I require assistance in finalizing the requirements model for the Airlines Information Management System (AIMS) project. The requirements model need to include use UML case diagrams for the entire AIM system. This includes all three sub-systems: bookings, fleet management and employee management. I also require assistance in

Java Program for Printing Employee Details

I am looking for a java program that allows the user to create a file of employees, address, and phone numbers. Prompt the user to enter the filename, and then prompt the user to enter the employees names and their phone extension numbers. The user should press Control + Z after entering all of the data. The program then display

Quality Assurance for Web Services

Carry out a test on web site. Carry out the test and prepare for the report. You should at least test the following aspect of the web site: 1. Compliance with HTML standards 2. Compliance with CSS standards 3. Web accessibility from different browsers 4. Web accessibility for disabilities 5.


1. The amount of space between letters can be specified using the __________ property in a style rule. a. letter-kerning b. letter-leading c. letter-spacing d. letter-buffer 2. When a visitor clicks the submit button on a form, the ______ of each form element is sent. a. lab

A Java Class for Time

Modify class Time2 of Fig. 8.5 to include a tick method that increments the time stored in a Time2 object by one second. Provide method incrementMinute to increment the minute and method incrementHour to increment the hour. The Time2 object should always remain in a consistent state. Write a program that tests the tick method,

.java program

(Rectangle Class) Create a class Rectangle. The class has attributes length and width, each of which defaults to 1. It has methods that calculate the perimeter and the area of the rectangle. It has set and get methods for both length and width. The set methods should verify that length and width are each floating-point numbers l

Java - How to program a arrays

If you were explaining an array ti a friend who is learning Java. how would you do so? How would you explain how arrays are used? Provide at least one concrete example.

Java code for NumberFormat class

Need to add in: The number format in one decimal place to make this to round the average score to one decimal in this program. //////////////////////////////////////////////// import java.util.Scanner; public class TestScoreApp { public static void main(String[] args) { // display operational mess

Programming Exercise

Write a function that includes the following sequence of statements: x = 21; int x; x = 42; I need to run the program in C, C++, and JAVA. If I can get started in one of the languages I will be able to complete the rest. Thanks.

Creating a Java Inventory Program

I have been collecting golf balls from different courses over the years now. Of right now I have an inventory of over 200 golf balls from different courses. Each golf ball has its own logo (golf course name) My project is to create an inventory of my golf balls; can some one help me with this project? The product is golf ba

GUI Components - Java - JPanel

Declare a subclass of JPanel called MyColorChooser that provides three JSlider objects and three JTextField objects. Each JSlider represents the values from 0 to 255 for the red, green and blue parts of a color. Use these values as the arguments to the Color constructor to create a new Color object. Display the current value of

Java Applets - Floating-Point Numbers

Write an applet that asks the user to enter two floating-point numbers, obtains the numbers from the user and displays the two numbers first and then the larger number followed by the words "is larger" as a string on the applet. If the numbers are equal, the applet should print the message "These numbers are equal." Use the tech

GUI Components - Java - Guess the Number

Write an application that plays "guess the number" as follows: Your application chooses the number to be guessed by selecting an integer at random in the range 1-1000. The application then displays the following in a label: I have a number between 1 and 1000. Can you guess my number? Please enter your first guess. A JText

Java Programming/Mortgage

Please help me create a GUI with 3 JTextField (one for loan amount, one for term, and one for interest rate), one JTextArea (where the monthly payment schedule will be displayed; appended for each month, for all moths; attach a JScrollPane to the JTextArea), one JComboBox (with 3 selections: 7 year at 5.35%, 15 year at 5.5 %, 3

Java Programming Question

Can you explain the components of this code for me? javax.swing.SwingUtilities.invokeLater(new Runnable() { public void run() { new testEvents(); Basically, when I read this code, I just want to know how it works, what it does, when would I use this, would I use it every time, etc. Thanks!

Java Programming

I have a question about something that has puzzled me. I did this on my program because it was how I saw it done. I was wondering if someone could explain why it is done this way and if I would do this for all ActionEvents. I used the following code. What does the ".getSource()" do? Is that what registers when someone