Question

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.

Solution Preview

This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.

Design of Algorithm –CASE IF structure was used
TRANSACTION_RECORD_ALGORITHM
1 READ RETAIL_PRICE,TRANSACTION_CODE, NO_OF_EMP
2 CASE OF TRANSACTION_CODE
‘A’: COMISSION=RETAIL_PRICE*0.06
‘B’:COMISSION=RETAIL_PRICE*0.08...

This is only a preview of the solution. Please use the purchase button to see the entire solution

$28.00

or $1 if you
register a new account!

Assisting Tutor

Related Homework Solutions

Three Algorithm Design Questions with Full Steps
Homework Solution
$33.00
Algorithm
Design
Input
Question
Elementary
Operation
Size
Pseudocode
Big-O
Asymptotic
Complexity
Image
2-dimensional
Array
Pixel
Rotate
Clockwise
Set
Circle
Radius
Center
Intersect
Collection
Integer
Inversion
List
Get help from a qualified tutor
Live Chats