Results 1 to 1 of 1
Thread: Methods and parameter help
- 11-30-2012, 04:33 PM #1
Member
- Join Date
- Nov 2012
- Posts
- 1
- Rep Power
- 0
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:@Override import com.nyt.exam02.IBonus; public class Bonus implements IBonus { float _Salary= 0; @Override public float getBonus() { // TODO Auto-generated method stub int bonus = (this._Salary+ P1); return 0; } float __Salary= 0; @Override public float getTaxedBonus() { // TODO Auto-generated method stub return 0; } @Override public String getVendorEmail() { // TODO Auto-generated method stub return ""; } @Override 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
-
Why and where abstract methods & classes and static methods used?
By ajaysharma in forum New To JavaReplies: 1Last Post: 07-12-2012, 11:04 PM -
Why and where abstract methods & classes and static methods are used?
By ajaysharma in forum Advanced JavaReplies: 2Last Post: 07-12-2012, 11:04 PM -
Trouble with static methods and boolean equals() methods with classes
By dreamingofgreen in forum New To JavaReplies: 8Last Post: 04-16-2012, 11:00 PM -
Java Noob, trying to call methods from another methods
By gabrielpr12 in forum New To JavaReplies: 8Last Post: 11-17-2011, 09:07 PM -
difference between static methods and instantce methods?
By venkatch in forum New To JavaReplies: 1Last Post: 10-23-2011, 12:37 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks