Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I need the functions such as (variables) of this code to be changed and add comm

ID: 3574512 • Letter: I

Question

I need the functions such as (variables) of this code to be changed and add comments! it is to be displayed in GUI java.

---------------------------------------------------------------------------------

public class Z_Client extends Y_methods{

  

   public Z_Client() {

       balanceCheck=3000;

       balanceSav=3000;

       loanPayment=10000;

   }

   public static double getBalanceCheck() {

       return balanceCheck;

   }

   public static double getBalanceSav() {

       return balanceSav;

   }

   public double getLoanPayment() {

       return loanPayment;

   }

   public static void setBalanceCheck(double a) {

       balanceCheck = a;

   }

   public static void setBalanceSav(double a) {

       balanceSav = a;

   }

   public void setLoanPayment(double a) {

       loanPayment = a;

   }

  

}

Explanation / Answer

public class Z_Client extends Y_methods{
  
public Z_Client() {
balChk=3000;
balSave=3000;
loanPay=10000;
}
public static double getBalanceCheck() {
return balChk; // it returns displays balance information
}
public static double getBalanceSav() {
return balSave; // it returns Savings Balance information
}
public double getLoanPayment() {
return loanPay; // it returns loan Payment balance
}
public static void setBalanceCheck(double a) {
balChk = a;
}
public static void setBalanceSav(double a) {
balSave = a;
}
public void setLoanPayment(double a) {
loanPay = a;
}
  
}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote