Algorithm into a java program

Assignment Help JAVA Programming
Reference no: EM13906404

A transaction record on a sales commission file contains the retail price of an item sold, a transaction code that indicates the sales commission category to which an item can belong, and the employee number of the person who sold the item. The transaction code can contain the values A, B or C, which indicate that the percentage commission will be 6%, 8% or 10% respectively. Construct an algorithm that will read a record on the file, calculate the commission owing for that record, and print the retail price, commission and employee number.

Based on the feedback received for Question 3 in Assignment 1, transform your algorithm into a JAVA program. Your code should contain appropriate validations and must focus on code optimization.

Modify the code to repeat the program until the user enters an income value of -1. Briefly, explain (150-200 words) the logic of the program and how the code can be optimised.

Reference no: EM13906404

Questions Cloud

What do you mean by singleton class and its advantage : What do you mean by singleton class and its advantage?
Minimum number of packages of hot dogs : Assume that hot dogs come in packages of 10, and hot dog buns come in packages of 8. Write a program called cookout.js, that calculates the number of packages of hot dogs and the number of packages of hot dog buns needed for a cookout
What is business basis in the assets it received from dennis : What is the business's basis in the assets it received from Dennis? What would be the business's basis if the transaction qualified as a non- taxable exchange?
The parent constructor from child constructor : Which keyword is used to call the parent constructor from child constructor?
Algorithm into a java program : Based on the feedback received for Question 3 in Assignment 1, transform your algorithm into a JAVA program. Your code should contain appropriate validations and must focus on code optimization.
Write a program to copy a file to another file : You can copy a file to another file by using the java.nio.file.Files class's public static Path copy(Path source, Path target, CopyOption... options) method, which copies a source file to a target file.Write a program to copy a file to another file?
What is emilys cost basis in the new building : Emily purchased a building to store inventory for her business. The purchase price was $760,000. What is Emily's cost basis in the new building?
Describes the process of guessing : Draw a structured flowchart that describes the process of guessing a number between 1 and 100. After each guess, the player is told that the guess is too high or too low. The process continues until the player guesses the correct number.
What is joses cost basis for the delivery van : Jose purchased a delivery van for his business through an online auction. What is Jose's cost basis for the delivery van?

Reviews

Write a Review

JAVA Programming Questions & Answers

  Return a reverse queue

represent my queue object as a parameter, what the program should be doing. It should return a reverse queue

  Design an application for pizza order process

Create an application to take and procedure a pizza order. The user should be able to make pizza order choices from listboxes, and the application should show the order price.

  Create a java class named headphones

Create a Java class named HeadPhones to represent a headphone set. The class contains- A private String data field named manufacturer that specifies the name of· A private boolean data field named pluggedIn that specifies if the headphone is plugge..

  Create a japplet that contains a jlabel and jbutton

Create a JApplet that contains a JLabel and JButton -  create an HTML document to host the applet, set the Width to 450 and the Height to 200. Save as TestJChangeFont.html.

  Make a program in java language with classes

Make a program, in JAVA language with classes, that simulates health attending in one business day, according to the information just given.

  Consider a class that could be used to play a game of

consider a class that could be used to play a game of hangman. the class has the following attributesthe secret wordthe

  Display the list of returned stores in a scrollable table

Use the BBYOpen API to retrieve a list of stores using the search parameters. Display the list of returned stores in a scrollable table with the closest store at the top and the farthest store at the bottom

  Programming sorting algorithms

Describe an approach to modifying the Sorts.java program so that after calling a sorting method the program prints out the number of swaps needed by the sorting method.

  Java program to store temperatures in two-dimensional array

Write the Java program which uses two-dimensional array to store highest and lowest temperatures for each month of the year. Program must output average high,average low,

  1 create a recursive factorial program that prompts the

1. create a recursive factorial program that prompts the user for an integer n and writes out a series of equations

  The performance of a wimax network appears to be lower

the performance of a wimax network appears to be lower expected and you suspect interference to be the cause. write a 2

  Write a method that will perform the a division operation

Write a method that will perform the a division operation (divide by) on the numbers passed to it in two variables (numerator, denominator) and outputs the results. Use a try-catch pair to output an error message if the illegal operation of divide..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd