Share
Explore BrainMass

Java

Design a Swing GUI

Design and code a Swing GUI for a two-player tic-tac-toe game on a 3 by 3 game board. The JFrame should use a BorderLayout with a JLabel in the NORTH region to display messages (e.g. who won the game), and a JPanel in the CENTER region to display the game board. For the game board in the JPanel, use a GridLayout manager with a

Programming languages type less

1. Some programming languages are typeless. What are a few of the obvious advantages and disadvantages of having no types in a language. Keep your answer to 1 paragraph or less. 2. Dynamic type binding is closely related to implicit heap-dynamic variables. Explain this relationship. Keep your answer to 1 paragraph or less

Westfield Carpet Company: Programs Calculating Price

The Westfield Carpet Company has asked you to write an application that calculates the price of carpeting for rectangular rooms. To calculate the price, you multiply the area of the floor(width times length) by the price per square foot of carpet. For example, the area of floor that is 12 feet long and 10 feet wide is 120 squar

Java Reader Program: int Values

Write a program that will search a text file of strings representing numbers of type int and will write the largest and the smallest numbers to the screen. The file contains nothing but strings representing numbers of type int one per line. Your solution can use either the BufferedReader class or the Scanner class. To read a

Writing a Program in Java for Outputing Lyrics

-------------------------------------------------------------------------- Instructions are as follows. Write a program that outputs the lyrics for "Ninety Nine Bottles of Beer on the Wall". Your program should print the number of bottles in English, not as a number. For example: Ninety nine bottles of beer on the wa

Linux versus Windows Server 2003

What are some differences and/or similarities between operating systems for computers that are networked and computers that stand alone? Compare and contrast two network operating systems (Linux and Windows Server 2003). Why these would be appropriate for a client - in helping them make the best decision for their organiza

Writing a Program in Java

(The following is exactly how the problem is presented) import java.util.Scanner; import java.text.DecimalFormat; /** Iteratively computes e^x for a given value x, outputing values at iteration 1 to 10, 50, and 100 */ public class Ex { public static void main(String[] args) { // Make a Scanner to

Java: How to Program

Choose a product that lends itself to an inventory (for example, products at your workplace, office supplies, music CDs, DVD movies, or software). 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. Create a Java application that displays the

Question about A java program to read values and calculate payroll

Modify the Payroll Program application so it continues to request employee information until the user enters stop as the employee name. In addition, program the application to check that the hourly rate and number of hours worked are positive numbers. If either the hourly rate or the number of hours worked is not a positive valu

Excel Intermediate Skills

A compound document within Microsoft Office usually consists of a Word document with another office-type document (i.e. Excel, PowerPoint slideshow, etc.) within the Word document. Find the definition of a compound document doing some Internet research (not Wikipedia). Also, find information about object linking and embedding.

Hashing in Cryptography

Bob believes that he has come up with a nifty hash function. He assigns a numeric value VChar to each letter in the alphabet equal to the letter's position in the alphabet, i.e., VA = 1, VB = 2, ..., VZ = 26. For a message, he calculates the hash value H = (VChar 1 x VChar 2 x VChar 3 ...x VChar N) mod(26). Bob uses this functio

Java Inventory Program

Use existing Java Program... Modify the Inventory Program so the application can handle multiple items. Use an array to store the items. The output 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

Mortgage Calculator in Java

Please help with the following problem involving programming languages. Change Request #2 Requestor: Dwain Hammer - Billings, MT Write the program in Java (without a graphical user interface) and have it calculate the payment amount for 3 mortgage loans: - 7 year at 5.35% - 15 year at 5.5% - 30 year at 5.75% Use a

JAVA

Dear OTA, Please help me in solving the follwing JAVA program. Homework -- Week3Project2 ? Write a program that uses loops to output some information. ? The program should have two classes. ? The class with the main method should be named CountXXXStart. ? The other class should be named CountXXX. ? The CountXX

Java and UNIX

Does anyone know the answer why would Java advocates support UNIX?

Java server pages (JSP)

Need assistance with the attached problem. Two to three page discussion on developing web applications with Java server pages (JSP) Show source code for creating the following: Using JSP codes, create a form that validates the data before passing along to the server in order to make sure that the information it needs to p

Server-side Scripting Language and Database

You've been hired by Company X to build a web site which will include a data-driven component. Describe how you would go about choosing which server-side scripting language and database you would recommend to the management of Company X for this project.

Constructing Shapes Through Inheritance and Aggregation

****This is to be written in Java**** Using the attached files modify the code to use inheritance, an interface, and aggregation by completing the following steps: 1. In the Shape class, eliminate the concrete methods, area() and perimeter(); create an instance variable of type String called name; and make a constructor th

Debugging Java Codes

****This needs to be written in Java***** The TestCircle class is a Java application that creates a Circle object using the class, Circle, which incorporates the class, Shape. The TestCircle class displays the name of the shape; the radius as an X, Y coordinate location; and the area. It also changes the radius to a new valu

Using Abstract Classes and Methods

****This needs to be written in Java***** Create the Java source code files for the classes listed in the inheritance hierarchy displayed in Figure 10-60a (attached to post). Create a new Java source code file and enter code for the AbstractTest.java test program, as shown in Figure 10-60b (attached to post). Compile all sou

Simulating User Logon Tracking with an ArrayList

****This needs to be written in Java***** Computer systems typically track the number of users logged on to the system at any point in time. Some systems do not allow more than one simultaneous logon by a given user. Write an application to simulate user logon tracking as shown in Figure 9-52 (attached to post). The app

Using String Methods to Count Characters

****This needs to be written in Java***** Generally, word processing programs can count and then display the number of characters in a document, either including or excluding blank characters. Using methods from the String class, write a program that will accept input from the keyboard and then display three values: 1) Th

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