Question: write in java First class: NormalClient NormNo as an Integer (class field) ID as a String Name as a String Balance as a Double transFee



First class: NormalClient NormNo as an Integer (class field) ID as a String Name as a String Balance as a Double transFee as Double Constructors Getter & Setter deposit debit transFee Action A class called NormalClient and has the following field NorNo as an Integer (class field) ID as a String Name as a String Balance as a Double Fee as a Double is a constant filed that have the value 2.5 Your class should have a constructor that take the ID, Name and an initial Balance and use it to initialize the balance amount. Your constructor should validate that the initial Balance is greater than 0, otherwise balance should be initialized to the default value 0.0 Provide a set and a get method for each instant variable Add a method called deposit that add an amount to the account's balance. It also A class called Normalclient and has the following field Nor No as an Integer (class field) ID as a String Name as a String Balance as a Double Fee as a Double is a constant filed that have the value 2.5 Your class should have a constructor that take the ID, Name and an initial Balance and use it to initialize the balance amount. Your constructor should validate that the initial Balance is greater than 0, otherwise balance should be initialized to the default value 0.0. Provide a set and a get method for each instant variable Add a method called deposit that add an amount to the account's balance. It also should print the updated balance. Add a method called debit that withdraws money from an account. Ensures that the debit amount does not exceed the account's and less than or equal to 5000 if it does the method should keep the balance as it is and print a message to the user indicating that "The debit amount exceeded account balance". Then the method should ask the user to enter another amount or (0) to exit. If the withdraw amount is correct the method should print the updated balance. Add a method transFee that transfer an amount of money. Ensures that the required amount does not exceed the client balance. Also, the transfer fee should be deducting from the balance. Golden Client GldNo as an Integer (class field) ID as a String Name as a String Balance as a Double Constructors Getter & Setter deposit debito tranfer) . . A class called Golden Client and has the following field GldNo as an Integer (class field) ID as a String Name as a String Balance as a Double Your class should have a constructor that take the ID, Name and an initial Balance and use it to initialize the balance amount. Your constructor should validate that th initial Balance is greater than 0, otherwise balance should be initialized to the default value 0.0. Provide a set and a get method for each instant variable Add a method called deposit that add an amount to the account's balance. It also should print the updated balance. Add a method called debit that withdraws money from an account. Ensures that th debit amount does not exceed the account's and less than or equal to 1000 if it dou the method should keep the balance as it is and print a message to the user . . A . . ID as a String Name as a String Balance as a Double Your class should have a constructor that take the ID, Name and an initial Balance and use it to initialize the balance amount. Your constructor should validate that the initial Balance is greater than 0, otherwise balance should be initialized to the default value 0.0. Provide a set and a get method for each instant variable Add a method called deposit that add an amount to the account's balance. It also should print the updated balance. Add a method called debit that withdraws money from an account. Ensures that the debit amount does not exceed the account's and less than or equal to 1000 if it does the method should keep the balance as it is and print a message to the user indicating that "The debit amount exceeded account balance". Then the method should ask the user to enter another amount or (0) to exit. If the withdraw amount is correct the method should print the updated balance. . . . Will do in the class: In the class BankSystem with a main method, you will create array of 3 objects of the class NormalClient and another array of 3 objects of the class GoldenClient. Write a method that prompt the user to enter the Name and the initial balance and fill the array. Write a print method that prints all the objects in the array the main method. Then ask the user for the wanted operation (show balance, deposit or debit) and perform it
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
