Explore BrainMass
Share

Java

Combining Loop Problems

Combine the four loop problems into one program with four distinct methods (the data is in the attached document). For this problem you will write methods, two value returning methods and two void methods. You may chose of the 4 distinct loop problems. The methods must include: - One value-returning method with a parameter

Java: GUI and the Inventory Program

Modify the Inventory Program by adding a button to the GUI that allows the user to move to the first item, the previous item, the next item, and the last item in the inventory. If the first item is displayed and the user clicks on the Previous button, the last item should display. If the last item is displayed and the user click

Java programming - Text printing

Please see below. I am really confused on these questions and would love any guidance you could give. Examples are attached. Thanks so much in advance! (see attachment) Compile a two-line text-printing program, similar to the Java welcome programming examples on pp. 37, 43, 45, and 46 of the text, using one of the techniques

Recursion in Java

How do I write a method that calculates the sum of the integers between 1 and n? I thought of using n + sum (n-1), but I need to use the recursive definition that the sum of 1 to n is the sum of 1 to n/2 plus the sum of (n/2+1) to n. Assume that n is a positive integer.

Recursion Java Programming

How do I write a method that calculates the sum of the integers between 1 and n? I thought of using n + sum (n-1), but I need to use the recursive definition that the sum of 1 to n is the sum of 1 to n/2 plus the sum of (n/2+1) to n.

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

Modify the payroll program

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

Pseudocode segment using loop structure in specified language

Need help with Programming question. Rewrite the following pseudocode segment using a loop structure in the specified languages: k = (j + 13) / 27 loop: if k > 10 then goto out k = k + 1 i = 3 * k -1 goto loop out: ... a. Fortran 95 b. Ada c. C, C++, Java, or C# d. Python e. Ruby Assume all variables

Security and Network

Please help answer this two questions 1. describe a recent high-profile computer security issue that you have heard of or read about. According to basic network security principles, how might the issue have been avoided? Provide at least one resource. 2. consider a natural or man-made disaster, and discuss how a communicatio

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

Three Sample Java Programs

Please help me in solving the following 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 CountXXXStart file sh

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

Functionality of Java Programs

Hi. I need some help with the question below. Any help would be appreciated. ***Consider a Java-based application example with file access and file processing methods appropriate for e-business. ***Explain why that functionality is valuable for businesses. ***The answer needs to be between 275 to 325 words.

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

Java Program that Implements Mortgage Calculator Change

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, the term of the mortgage, and the interest rate of the mortgage. Allow the user to loop back and enter new data or quit. Please insert comments in the program to