Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Java (https://www.askmehelpdesk.com/forumdisplay.php?f=440)
-   -   Java program using Bank Class (https://www.askmehelpdesk.com/showthread.php?t=820962)

  • Jan 26, 2016, 02:04 AM
    ritha
    Java program using Bank Class
    1. Declare Bank class with below attributes:
    a. Balance – float
    Write below methods in this class.
    DepositMoney(depostAmount) // adds amount to balance
    WithdrawMoney(withdrawAmount) // subtracts amount from balance
    CalculateInterest(interestPercentage) // calculates interest and adds to balance
    DisplayDetails() //displays the balance details

    Create object of Bank class and test above methods from main method in BankDemo class. Follow
    Class outline diagram as given below. Ensure class attributes are private and other methods are
    Public.

    Define attributes with same name and data type as given in class outline.
     Define constructors and getter setters as given in the class outline.
     Ensure attributes are private and other methods which will be called from main method,
    Getter-setter methods and constructor is public.
     Use main method only for input and output and testing object creation and object methods
  • Jan 26, 2016, 02:22 AM
    Curlyben
    What do YOU think ?
    While we're happy to HELP we wont do all the work for you.
    Show us what you have done and where you are having problems..
  • Jan 26, 2016, 08:08 AM
    CravenMorhead
    Hi. I could write this in about 10 minutes. I could, but I am not. This is a copy and paste of your programming homework. This is likely following either the class lectures or your Lab sessions. Regardless, you should have some examples of classes, defining classes, and the different permissions within a class.

    So, give it a shot and then show us what you got. We can help troubleshoot and debug.

  • All times are GMT -7. The time now is 05:36 AM.