SHARE
TWEET

empleadoBaseMasComision

a guest May 22nd, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2.  *
  3.  */
  4. package pART;
  5.  
  6. /**
  7.  * @author dan_d_000
  8.  *
  9.  */
  10. public class empleadoBaseMasComision extends Object{
  11.     protected String nName;
  12.     protected String dadN;
  13.     protected String insNum;
  14.     protected double bruteSales;
  15.     protected double comisTarif;
  16.     protected double baseSalary;
  17.    
  18.     public empleadoBaseMasComision(String name,String dadn,String momn,String insnum,double bs,double tariffs,double salary) {
  19.         nName=name;
  20.         dadN=dadn;
  21.         insNum=insnum;
  22.         setBruteSales(bs);
  23.         setComisTarif(tariffs);
  24.         setBaseSalary(salary);
  25.     }
  26.    
  27.     public void setName (String N) {
  28.         nName=N;
  29.     }
  30.     public String getName () {
  31.         return nName;
  32.     }
  33.     public void setDadN (String N) {
  34.         dadN=N;
  35.     }
  36.     public String getDadN () {
  37.         return dadN;
  38.     }
  39.     public void setInsNum (String N) {
  40.         insNum=N;
  41.     }
  42.     public String getInsNum () {
  43.         return insNum;
  44.     }public void setBruteSales (double N) {
  45.         bruteSales=N;
  46.     }
  47.     public double getBruteSales () {
  48.         return bruteSales;
  49.     }public void setComisTarif (double N) {
  50.         comisTarif=N;
  51.     }
  52.     public double getComisTarif () {
  53.         return comisTarif;
  54.     }
  55.     public void setBaseSalary (double N) {
  56.         baseSalary=N;
  57.     }
  58.     public double getBaseSalary () {
  59.         return baseSalary;
  60.     }
  61.    
  62.     public double profits () {
  63.         return comisTarif*bruteSales;
  64.     }
  65.    
  66.     public String toString() {
  67.         return String.format("empleado por comisiĆ³n ",nName,dadN," Numero de seguro ",insNum," ventas brutas ",bruteSales," tarifa por comision ",comisTarif);
  68.     }
  69.    
  70. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top