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

Assisting Tutor

Related Homework Solutions

Floyd-Warshall's Algorithm - Behavioral Analysis
Homework Solution
$50.00
Floyd
Warshall
Algorithm
Analysis
Java
Benchmark
Directed
Weighted
Graph
Complexity
Big-O
Documentation
Computer Science
Data Structures
Algorithms
Sorting Algorithms in C++
Homework Solution
$25.00
Computer Science
Sorting Algorithms
C++
Selection Sort
Heap Sort
Counting Sort
Integers
Time Complexity
Dataset
Report
Maximal Element
Range
Statements
Variables
Loops
Get help from a qualified tutor
Live Chats