Q: WAP IN JAVA TO CRAETE THE CLASS NAMED AS BANKINGSYSTEM. WHICH ACCEPTS TWO DATA MEMBERS LIKE: ACCOUNT NUMBER AND BALANCE AND CREATE METHODS TO PERFORM WITHDRAW AND DEPOSIT. AND CREATE THE OBJECT AND ACCESS THESE FEATURES OF THE CLASS (APP). package AshokIT.IO.Java; class BankingSystem{ private long accounNumber; private double balance; BankingSystem(long accountNumber,double balance) { this.accounNumber = accountNumber; this.balance = balance; } void deposit(double amount) { System.out.println("Welcome To XYZ Bank"); System.out.println("Account Balance before the deposit = "+balance); balance += amount; System.out.println("Account Balance after the deposit = "+balance); } void withdraw(double withdraw_amount) { if(balance > withdraw_amount) { System.out.println("Welcome To XYZ Bank"); System.out.println("Account Balance before the withdraw = "+balance); System.out.println("The Withdraw amount = "+withdraw_amount); balance -= withdraw_amount; System.out.println("Account Balance after the withdraw = "+balance); } else { System.out.println("Welcome To XYZ Bank"); System.out.println("Account Balance before the withdraw = "+balance); System.out.println("The Withdraw amount = "+withdraw_amount); System.out.println("Insufficient funds."); System.out.println("Withdraw Cancelled."); } } } public class ClassImplementation { public static void main(String[] args) { BankingSystem user1 = new BankingSystem(573602010007620l,35000.0); user1.deposit(50000.0); user1.withdraw(95000.0); } } ======================================================= WAP IN JAVA TO CREATE A CLASS NAMED AS SALARY. DEFINE THE DATA MEMBERS BASIC, HRA, TA AND DA. CREATE METHODS TO CALCULATE GROSS AND ANNUAL SALARIES. Salary ==> 30000 gross salary = Basic + HRA + DA + TA gross salary X 12 ==> Annual salary package AshokIT.IO.Java; class Salary{ private double basic; private double HRA; private float da; private float ta; public Salary(double basic, double HRA, float da, float ta) { this.basic = basic; this.HRA = HRA; this.da = da; this.ta = ta; } double grossSalary() { double salary = basic + HRA + da + ta; return salary; } void annualSalary() { double gross = grossSalary(); double annual = gross * 12; System.out.println("Gross Salary = "+gross); System.out.println("The Annual Salary = "+annual); } } public class SalaryCalculation { public static void main(String[] args) { Salary emp1 = new Salary(35000.0,22000.0,2200.0f, 1800.0f); emp1.annualSalary(); } } ====================================== Q: WAP IN JAVA TO CREATE A CLASS "STUDENT GRADE". DEFINE DATA MEMBERS ARE: NAME, ID, TOTAL-MARKS. CREATE A METHOD TO CALCULATE THE STUDENT GRADE. HINT: tm >= 85 ==> "A" 75 >= tm < 85 ==> "B" 60 >= tm < 75 ==> "C" 50 >= tm < 60 ==> "D" 40 >= tm < 50 ==> "E" < 40 ==> Fail.