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

  Discuss factors that affect sorting in sediment

Discuss factors that affect sorting in sediment. How could one tell the latitude at which a sediment was originally deposited? Compare and contrast phosphate and manganese nodules.

  Design a function named "falling distance"

Design a function named "fallingDistance" that accepts an objects falling time, in seconds, as an argument. The function should return the distance, in meters, that the object has fallen during that time interval. Design a program that calls the func..

  Object oriented programming-getting started with classes

Suppose you are car shopping and want to store information about possible choices. Model, and implement an automobile class. Use a UML drawing tool such as Umbrello or Microsoft Visio to create a class diagram. Your class should have at least cons..

  Create a book class

Create a Book class. In addition to properties of author and isbn, with setters/getters, the Book should override Object's base method "boolean equals(Object)" and have a "boolean validate()" method.

  How control constructs and arrays would resolve problem

Arrays and control structures are valuable tools when programming. An array contains a number of variables all being the same data type. Explained the situation and how control constructs and arrays would resolve problem

  Develop a java application for the local library

You have been requested to develop a Java application for the local library as part of an upgrade initiative. As in all libraries, this is a place where one can check out books

  Write a program displaying a text file

Write a program displaying a text file that is in a text area - The user enters a file name in a text field and clicks the view button; the file is then displayed in the text area. Do not use BufferedInputStream.

  Improve the efficiency of their operations

To help improve the efficiency of their operations, the Maitre De has hired you to write a program that simulates people waiting for tables. The goal is to determine the average amount of time people spend waiting for tables.

  Number of space characters in a string

Write a loop that counts the number of space characters in a string - You need to implement a program to find the number of spaces.

  Calculate the maximum data rate in mb/second

b)How much cylinder skew is needed for an Oceangate disk operating at 20,000 rpm(new series for the Christmas promotions) which has a seek time of 0.5 milliseconds? This disk has 800 sectors of 512 bytes each on each track.

  What could you do to kill more mutants

What are the implications related to suite of unit test cases when some mutants are not killed and What could you do to kill more mutants?

  Write a on the popularity of java

Write a 4-5-page research-oriented paper in APA format that focuses on the "Popularity of Java". The paper must cite at least 5 references, not including the textbook or the Bible.

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