posted 11 years ago
So, I am supposed to write a program that calculates the total annual compensation for a salesman using user input for the salary, sales, and commission rate (list of 3 predefined commission rates. have to display in dollar format the amount of commission and total annual salary.
CommCalc class
CalcTest method
I know that i have to fix some of the semantics .
I have this code that I made earlier, is there an easy way to make it into a GUI interface? Or will I have to go throughthe code lines to add the JOptionPane?
And I am a little confused on how to make a list (array) for the commission rate.