Share
Explore BrainMass

Java

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

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

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

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

Payroll Program Modification

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

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

Java Program - Clock

I've attached the problems so please download the file. Thanks! Please see attached file for full problem description. Develop and execute programs for this exercise. Submit your results to COL. 1. In the example 1-1, the class Clock was designed to implement the time of day in a program. Certain applications, in additi

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