Explore BrainMass


Java Application Code

I need help with doing a Total Sales Application: (Total Sales) Using a two-dimensional array to solve the following problem: A company has four salespeople (1 to 4) who sell five different products (1 to 5). Once a day, each salesperson passes in a slip for each type of product sold. Each slip contains the following: a) Th

PL/SQL package

Combine the work you've completed so far for the More Movie Rentals database into one program. Create a simple PL/SQL package in order to go through a menu process. In this PL/SQL package, all users would enter in a movie by executing a procedure. Be sure the validation works correctly. Include the proper exception handling and

Java Application using a one-Dimensional array for this solution

Write an application that inputs ten numbers from the user, each number can be between 10 and 100, inclusive. As each number is read in determine if it is a number already entered. If it is a duplicate move on to the next number, if it is unique store the number in the array. After all ten numbers have been entered display the c

Java Application PigLation Translator

I need help with this: Writing an application that translates an English word to Pig Latin. The application should have methods for getting user input and doing the translation. The application should first ask the user for the word to be translated and then display the translated word. It should continue until the user enter

Java Application Converting Dollars to Euros

I need help with this: Help with writing an application that converts U.S. dollar values to euro values. The application should have methods for getting user input and doing the conversio ...there is moreshow problemI need help with this: Help with writing an application that converts U.S. dollar values to euro values. T

Java application problem

Please help with the following problem. Assistance with writing a program that will accept an unknown number of positive integers from the user (-1 to stop) and display their average." The application does not work correctly. Correct all the errors and also reformat to be consistent with good style standards. I have uploa

Solving a Java Application Problem

I need help with this: A mail-order house sells five products whose retail prices are as follows: Product 1, $2.98; product 2, $4.50; product 3, $9.98; product 4, $4.49; product 5, $6.87. I need help with writing an application that reads a series of pairs of numbers as follows: a) product number b) quantity sold T

Dynamic Programming Algorithm to Find Minimum Cost

You are going on a long horse trip. You start on the road at mile post 0. Along the way there are n horse stations at mile posts m1 < m2 <. mn where each mi is measured from the starting point. The only places you are allowed to stop and change horses are at these stations, but you can choose which of the stations you stop at. Y

Groovy Versus Java

Write paper about the differences of programing with Groovy vs native Java . Explain how they are different and alike . Also explain the benefits of programing with groovy vs Java. include syntax differences in the code between the two.

Write a driver and fraction class

Basic Requirements Write a driver and fraction class that performs addition, multiplication, prints the fraction, and prints as a double. Provide a driver class, YourNameProg7, that demonstrates this Fraction class. The driver class should contain this main method: public static void main(Strin

Java Binary Search Tree Solution

Dear OTA - I need a Java solution named with a main method to test a Student Graduate Record Examination Score Managment System using BinarySearchTree java classes. The solution should use the attached Student class. Also, sample input that can be used is contained in the attached StudData.dat file. The

Mortgage Calculator Separate Methods

I am not sure how to do this, attached is the program Also I need a flowchart diagram of the program. NO ACTIONS IN MAIN. Thus, the code The entire for loop) below should be in a separate method: for (loan = 200000, i=0;i<terms.length;i++){ //Calculates the Payment per month to be paid under mortgage scheme One

Java: Throwing Exceptions

Please help in understanding how Java can someone help answer these two questions regarding about throwing exceptions (see attachment).

UML into Java Code

Please help with this UML Diagram by updating it and putting it into Java Code. The one that I did is listed below: Car object class: 1. What does CAR object know? The CAR object should know about a. Its direction to move b. Its Speed limit(min and max) c. Gear limit d. Break capacity

Explaining why using break and continue is a bad practice

This figure shows an example of using a command in Java called break and continue. I somewhat disagree with the use of these commands in this way. I consider it bad form as does much of the industry. Just because a command is there does not mean you have to use it! Why this is bad form and provide a snippet of code that show

Greatest Common Divisor in Java

I have to write an interactive program that will find the Greatest common divisor between two inputted integers. Here is what I have so far. // // // // This Program will find the greatest common divisor between two inputted integers. // //

Java code errors

1. What are the errors in the following codes: What would correct the errors? A.) if ( age >= 65 ) ; System.out.println( "Age greater than or equal to 65" ); else System.out.println( "Age is less than 65 )"; B.) int x = 1, total; while ( x <= 10 ) { Tot

Java program to Calculate Employee Payroll

A payroll program that calculates the employees weekly pay after employee's name, hourly rate, and number of hours worked. This must include a class to store and retrieve the employees's name, the hourly rate, and the number of hours worked. Use a constructor to initialize the employee information and a method within that class

Java solution to convert decimal to a given base using recursion

Dear OTA - I need a Java solution that can read a decimal integer and convert it to binary or any other given base system using recursion. For example, the Java program will do as follows: read a decimal Integer, val, until "q" is read if "q" then stop else read another Integer, base, which will be a representatio

Java Program to check if Fractions are identical

Need some assistance modifying the attached code. In the attached METHOD "equals", that takes as input another Fraction and returns true if the two fractions are identical and false if they are not, this method reduces the fraction to its lowest terms; that is, if one fraction is 20/60 and the other is 1/3, then the method r

Java applet, converting character to integer(vice versa) - ASCII

I guess my biggest issue is actually to draw a functionable applet. Design an applet that converts a character to a corresponding integer, and vice versa. The integer corresponding to a character is its ASCII code. The design should look as the attached picture. The applet has to have the following functio

Define a class called fraction, embed class in a test program.

Define a class called Fraction, used to represent a ratio of two integers. 1. Include mutator functions that allow the user to set the numerator and the denominator. 2. Also include a METHOD that displays the fraction on the screen as a ratio (e.g., 5/9). This method does not need to reduce the fraction to lowest terms. 3.

Java pair selection.

I need to write a generic class Pair which has two type parameters F and S (first and second) each representing the first and second elements of the pair. Add get and set elements so that the values of the pair can be changed. This is an example of the code of the test class that calls for the pair class. public class Pai

Create a class named MyRectangle to represent rectangles

Create a class named MyRectangle to represent rectangles. The required data fields are width, height, and color. Use double data type for width and height, and a String for color. Suppose that all rectangles are the same color. Use a static variable for color. You will need to provide the accessor methods for the properties and

Java solution to verify records are in alphabetical order

Dear OTA, I need a Java solution that can verify if records are in alphabetical order based on last name then first name. I need this solution in 2 classes: 1. One with the main method that prompts the user for the input filename (merchants.txt). If the input file cannot be opened, the method should continue to reprompt

Creating a Java application that uses an int array

Create a Java application that implements an int array. Use for loops to iterate through the array using the array's length variable to stay within the array bounds. Fill the array with random numbers and print the array. Continue to properly document your source code. Write this program as if you were explaining it to someo

Java Employee Payroll Problem

The file must be called <> (driver program) (which extends employee) (which extends employee) (which extends Salaried) Overall Requirements Write an employee payroll program that uses polymorphism to calculate and print the weekly payroll for y

Modifying Inventory Programs

Modify the Inventory Program to include an Add button, a Delete button, and a Modify button on the GUI. These buttons should allow the user to perform the corresponding actions on the item name, the number of units in stock, and the price of each unit. An item added to the inventory should have an item number one more than the p

Overloaded Java Methods

Write overloaded Java methods that return the difference of two parameters. Your methods should contain the logic to return the difference of the larger parameter ?smaller parameter, regardless of parameter order. Provide enough test code to ensure your methods are logically correct. The following table displays the required met