Results 1 to 1 of 1
  1. #1
    BionicBunny is offline Member
    Join Date
    Nov 2012
    Rep Power

    Default Methods and parameter help

    Hey guys, I'm new to programming and need help with an assignment. I have the following method and for the assignment it wants us to create two parameters. The first one is a Salary, and the second one is based on a list of performance bonus (P1= 64%, P2= 60%, etc.) How do i approach this problem?

    PHP Code:
    	import com.nyt.exam02.IBonus;
    public class Bonus implements IBonus {
    float _Salary= 0; 
    	public float getBonus() {
    		// TODO Auto-generated method stub
    		int bonus = (this._Salary+ P1);
    		return 0;
    	float __Salary= 0; 
    	public float getTaxedBonus() {
    		// TODO Auto-generated method stub
    		return 0;
    	public String getVendorEmail() {
    		// TODO Auto-generated method stub
    		return "";
    	public void setUp(float Salary, String Performance) {
    		// TODO Auto-generated method stub
    		this._Salary= Salary;
    		this.__Salary= Salary;
    		double P1=  (Salary*.64);
    		double P2= (Salary*.60);
    		double P3=  (Salary*.56);
    		double P4=  (Salary*.52);
    		double P5=  (Salary*.48);
    		double P6=  (Salary*.44);
    		double P7=  (Salary*.40);
    		double P8= (Salary*.36);
    		double P9=  (Salary*.32);
    		double P10=  (Salary*.28);
    		double P11=  (Salary*.24);
    		double P12= (Salary*.20);
    		double P13=  (Salary*.16);
    		double P14= (Salary*.12);
    		double P15= (Salary*.8);
    		double P16= (Salary*.4);
    		double P17=  (Salary*0);
    Last edited by BionicBunny; 11-30-2012 at 05:08 PM.

Similar Threads

  1. Replies: 1
    Last Post: 07-12-2012, 11:04 PM
  2. Replies: 2
    Last Post: 07-12-2012, 11:04 PM
  3. Replies: 8
    Last Post: 04-16-2012, 11:00 PM
  4. Java Noob, trying to call methods from another methods
    By gabrielpr12 in forum New To Java
    Replies: 8
    Last Post: 11-17-2011, 09:07 PM
  5. Replies: 1
    Last Post: 10-23-2011, 12:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts