Bank account program

havin trouble with a bank account program i've got to write, anyone want to av a look at it

> havin trouble with a bank account program i've got to
write, anyone want to av a look at it
First I'd like to make a withdrawal of $500,-
But seriously, if you have a specific (Java related) question, ask it here. Also post the compiler/runtime errors you got, and the code responsible for the errors (not hundred of lines!). When posting code use code-tages as discribed here: http://forum.java.sun.com/help.jspa?sec=formatting
Good luck.

Similar Messages

  • Bank Account Program (using netbeans)

    Can someone please help me with this program I'm trying to create, I'm new to java and am a bit stuck ..
    I created a BankAccount class and want the following capabilities. The bank will be charging a fee for every deposit and withdrawal. Supply a mechanism for setting the fee and modify the deposit and withdraw methods so that the fee is levied. Test your resulting class and check that the fee is computed correctly.
    The bank will allow a fixed number of free transactions (7 deposits or withdrawals) every month, and charge for transactions exceeding the free allotment. The charge is not levied immediately but at the end of the month.
    Supply a new method deductMonthlyCharge to the BankAccount class that deducts the monthly charge and resets the transaction count.
    Produce a test program that verifies that the fees are calculated correctly over several months.
    Enable user input for each program. The input will be used to create the objects.
    Program continues to loop until user chooses to Quit.
    My current code:
    //Main
    package bank;
    import java.util.Scanner;
    public class Main {
        public static void main(String[] args) {
            Scanner in = new Scanner(System.in);
          BankAccount david = new BankAccount();
            System.out.println(david.getBalance() + " is the balance!");
            System.out.println("how much d");
            String deposit =  in.next();
            david.makeDeposit (double deposit)
            david.makeWithdrawl(50);
            System.out.println(david.getBal/ance() + " is the balance!");
            BankAccount jonathan = new BankAccount(125779, 768.34, "Jonathan", "Checking");
            System.out.println(jonathan.getBalance() + " is the balance!");
    //Class
    package bank;
    public class BankAccount {
        private int accountNumber;
        private int fee=20;
        private double balance;
        private String name;
        private String typeOfAccount;
        public BankAccount()
            accountNumber = 0;
            balance = 0;
            name = "No Name";
            typeOfAccount = "None";
        //Default constructor
        public BankAccount(int accountNumber, double balance, String name,
                String typeOfAccount)
             this.accountNumber = accountNumber;
             this.balance = balance;
             this.name = name;
             this.typeOfAccount = typeOfAccount;
        //Deposit!
        public double makeDeposit(double deposit)
            balance = balance + deposit - fee;
            //balance += deposit;
            return balance;
        //Withdrawl!
        public void makeWithdrawl(double withdrawl)
            balance = balance - withdrawl - fee;
        //Get balance!
        public double getBalance()
            return balance;
    }As you can see I'm probably way off :/ please helps me I would really like to get this done by Monday or as soon as possible.. Thank you very muchs :]

    Thank you :] scanner.nextDouble(); worked :]
    But my if else don't work is the format on them wrong?
    New code:
        package bank;
    import java.util.Scanner;
    public class Main {
        public static void main(String[]args)
            Scanner in = new Scanner(System.in);
            System.out.println("What is your account number?");
          String accountNumber =  in.next();
         if (accountNumber = 125778)
            BankAccount david = new BankAccount(125778, 800.34, "david", "Checking");
            System.out.println("Acount Number:" + accountNumber +"   "+ "Current Balance:" + "$" +david.getBalance());
            System.out.println("How much do you want to deposit");
            double deposit =  in.nextDouble();
            david.makeDeposit (deposit);
            System.out.println("How much do you want to withdrawl");
            double withdrawl =  in.nextDouble();
            david.makeWithdrawl (withdrawl);
            System.out.println(david.getBalance() + " is the new balance!");
            if (accountNumber = 125779)
            BankAccount john = new BankAccount(125779, 768.34, "john", "Checking");
            System.out.println("How much do you want to deposit");
            double deposit =  in.nextDouble();
            john.makeDeposit (deposit);
            System.out.println("How much do you want to withdrawl");
            double withdrawl =  in.nextDouble();
            john.makeWithdrawl (withdrawl);
            System.out.println(john.getBalance() + " is the new balance!");
            else
            System.out.println("Wrong acct");
    public BankAccount()
            accountNumber = 0;
            balance = 0;
            name = "No Name";
            typeOfAccount = "None";
        //Default constructor
        public BankAccount(int accountNumber, double balance, String name,
                String typeOfAccount)
             this.accountNumber = accountNumber;
             this.balance = balance;
             this.name = name;
             this.typeOfAccount = typeOfAccount;
        //Acoount
        public int getAccountNumber()
            return accountNumber;
        //Deposit!
        public double makeDeposit(double deposit)
            balance = balance + deposit - fee;
            //balance += deposit;
            return balance;
        //Withdrawl!
        public void makeWithdrawl(double withdrawl)
            balance = balance - withdrawl - fee;
        //Get balance!
        public double getBalance()
            return balance;
    }

  • AUtomatic Payment Program - Unable to make payment to Foreign Vendor having bank account in home country and home currency

    Hi
    We have company code in India. Payment method C is configured. Now we have a requirement that we have to make a payment to a vendor in Bangladesh who is having Bank account in India in INR. Already I have ticked the foreign payments as shown below
    Now when we have to make a payment to bangladeshi Vendor , I am unable to generate any payment.
    Please Find the error detail as shown below:
    >            Payment method selection additional log
    > Payment method selection for items due now to the amount of INR          100,00-
    > Payment method "C" is being checked
    > Street or P.O. box entry is missing
    > No permitted payment method exists
    Information re. vendor 9021121 / paying company code 1021 ...
    ... payment not possible because of reported error
    End of log
    Step 002 started (program SAPFPAYM_SCHEDULE, variant &0000000001176,
    Step 003 started (program RFFOEDI1, variant &0000000000398,
    Program RFFOEDI1: No records selected
    Step 004 started (program RFFOUS_C, variant &0000000000784,
    Program RFFOUS_C: No records selected
    Job finished
    Anybody having any idea. Please Help

    Hi Raj,
    Please check the following things once.
    1. Check the vendor pyt method in XK03. Vendor should not be blocked at any level.
    2. Also check - FBZP - Pyt methods under country level - what are the mandatory parameters ? - Street, P.O. BOX or box pst code or bank acc.no, swift code, IBAN No.- check those parameters are maintained or not? If no, pls maintain the same.
    3. Doc currency - You have to maintain the INR currency in invoice. Also maintain the entry for INR currency in FBZP - Bank determination- ranking order & bank accounts. Else not psbl to make payment in foreign currency.
    I hope it clears else revert us with your issue.
    Thanks & Regards,
    Lakshmi S

  • Automatic Payment Program-which of the bank accounts is chosen for payment

    Hi Gurus,
    I have a question related to Automatic Payment Program(F110). When Automatic Payment Program is run which bank account is chosen?
    Is it the
    1. Main Acount
    2. Payment Sub account?
    Also, why?
    Kindly answer.
    Regards,
    Sagar

    Hi Sagar,
    In F110, the Payment Sub Account is selected for Payment(The Outgoing Bank Account). This is defined in FBZP in the node bank determination> Bank Selection> Bank Accounts.
    The reason why this GL is selected is :-
    1. When you make Payment: -
    Vendor A/C...Dr.
    To Outgoing Bank Account
    2. Bank Reconciliation
    Outgoing Bank Account Dr.
    To main bank Account
    The entry to the main bank Account is posted only when the information that the cheque is encashed by the vendor is sent by Bank in Bank Statement. The Main bank Account is the balance as per Bank Books. So, till the time, we do not receive info from bank that the cheque is encashed, the amount lies in Outgoing bank Account and it is transferred to main bank account only upon final confirmation from bank.
    Regards,
    SAPFICO

  • Payment program F110 - select wrong Bank Account ID

    Hi,
    I have created a new bank account for an existing House bank (in trans. fi12)
    When we run the payment program F110, the wrong bank account is mentioned in the DME file.
    It shows the first one on the list and not the last one.
    How can I create a DME file with the new bank account?
    Thank you for your feedback.
    Kind regards,
    Linda

    Hi Eric,
    When I go in transaction FBZP, and drill down to Bank accounts, I only find the first bank account ID (which is the wrong one).
    I assume that if I add the new one, it will work?
    Kind regards,
    Linda

  • Payment program rules for selecting Bank accounts

    Hi !!
    Anyone that know the rules for payment program to select Vendor Bank accounts from XK03
    when
    - more then one row exist in Vendor bank accounts (XK03)
    and
    - Field Partner bank type is "blank" (LFBK-BVTYP) for all bank account rows
    The rules seems not to be crystal clear for me
    Any place to find more documentation about these rules especially when LFBK-BVTYP is "blank"
    Thanks in advance !!
    BR Tomas Hagberg

    Hi,
    Please refer to following link. This may help.
    http://help.sap.com/saphelp_46c/helpdata/en/47/8bf634b576bc4ee10000009b38f83b/frameset.htm
    Regards,
    Harish

  • What is a good banking finance program for personal accounting?

    What is a good banking finance program for personal accounting?

    One that I use and like is iBank. http://www.iggsoftware.com/ibank/

  • F110 Payment Program - Payee Bank Account

    Hi,
    When we do payment run, is there any place that stores that payee bank account number. Currently we have populated the vendor bank details but we cannot find the bank account saved in the payment tables - REGUH-ZBNKN? Is there any config/settings missing?
    The issue we need to resolve is that the payment run is done, then the vendor bank account is changed. When we print the payment advice, we do not want to retrieve the changed bank account but the one done during payment run. However we don't see any information on the account number being stored.
    Please advise. Thanks in advance.
    Regards,
    Janet

    Hi
    Normally the vendor bank details are stored in REGUH table, if payment run happened after the same were made available in Vendor master. Once the payment run is done, even if the bank details are changed, it will not change the same in REGUH table for that payment run.
    Probably you need to select the "Bank details" in the particular payment method/Country in FBZP, even though I believe it will not be the case. Try that.
    Jayaram

  • Payment program and bank accounts

    Hello,
    As a part of new implementation, i am creating new bank accounts and Bank GL accounts.
    I would like to get the payment run functionality working as well.
    what other information should i get from the customer and What other steps do i need to do?
    Thanks

    Hi,
    For APP Configuration you need to get below information from your client:
    1 - Bank Clearign & Payment GL Accounts
    2 - House Bank Code & Discription
    3 - Bank Account ID & Discription with Branch Address
    4 - How many Currencies allowed to pay
    5 - IBAN no (Transfer amount to other countries)
    6 - Bank Account No
    7 -  Confirm client would like to use IDoc functionality ( if clinet required IDoc, then configure WE20 - partner profile & assign payment method in house bank master)
    8 - Advances payment through APP / not
    9 - APP using outgong / incomming or both (if both crate diffrent payment methods)
    10 - Confirm Payment through CHECK / Bank Transfer or any other method.
    11 - Confirm Ranking orders Etc.............
    Regards
    Viswa

  • When I sign in to my bank account this pops up: na3zz.playnow.dollfield.eu and a bunch of numbers. Also it says update now, though I never click on it. Help.

    As soon as I sign in to the bank but before I put in my secure passwords, I look and there is another Mozilla tab saying update 7 drivers, or update now. Above is one of the lines I saw in my browser. This doesn't seem to be happening on any other website and so far my bank account is fine. But this worries me. I tried my partner's computer and the same thing happened. I just did it again and this came up. (I have already updated to the newest firefox by the way.) This message came with the Mozilla logo too but it wouldn't copy over to this letter.
    http://www.lpmxp2.com/393C7C213B2057557D61273D212C7B545FA8850C068E5598E2EDD7F75F9913F870BFCBF4F7F14D2E3903E1A8BA4DE53F?tgu_src_lp_domain=www.allsoftdll.com&ClickID=12824897611400706742&PubID=274944
    Recommended
    You are currently browsing the web with Firefox and it is recommended that you update your video player to the fastest version available.
    Please update to continue.
    OK
    You are currently browsing the web with Firefox and your Video Player might be outdated
    Please update to the latest version for better performance
    LEGAL INFORMATION
    ATTENTION! PLEASE READ THIS AGREEMENT CAREFULLY BEFORE ACCESSING THE SITE AND DOWNLOADING ANY CONTENT. IF YOU USE THE SITE OR DOWNLOAD CONTENT YOU AGREE TO EACH OF THE FOLLOWING TERMS AND CONDITIONS.
    This is a legally binding contract between you and the installer. By downloading, installing, copying, running, or using any content of allsoftdll.com, you are agreeing to be bound by the terms of this Agreement. You are also agreeing to our Privacy Policy. If you do not agree to our terms, you must navigate away from our Sites, you may not download the Content, and you must destroy any copies of the Content in your possession.
    If you are under 18, you must have your parent or guardian's permission before you use our Sites or download Content. In an effort to comply with the Children's Online Privacy Protection Act, we will not knowingly collect personally identifiable information from children under the age of 13.
    This Agreement may be modified by us from time to time. If you breach any term in this Agreement your right to use the Sites and Content will terminate automatically.
    1. The Download Process.
    Your download and software installation is managed by the Installer. The installer(i) downloads the files necessary to install your software; and (ii) scans your computer for specific files and registry settings to ensure software compatibility with your operating system and other software installed on your computer. Once the installer has been initiated, you will be presented with a welcome screen, it allows you to choose to install the software or cancel out of the process. We may show you one or more partner software offers. You are not required to accept a software offer to receive your download. We may also offer to: (i) change your browser's homepage; (ii) change your default search provider; and (iii) install icons to your computer desktop. Software we own and our partner's software may include advertisements within the application.
    2. Delivery of Advertising.
    By accessing the Sites and downloading the Content, you hereby grant us permission to display promotional information, advertisements, and offers for third party products or services (collectively "Advertising"). The Advertising may include, without limitation, content, offers for products or services, data, links, articles, graphic or video messages, text, software, music, sound, graphics or other materials or services. The timing, frequency, placement and extent of the Advertising changes are determined in our sole discretion. You further grant us permission to collect and use certain aggregate information in accord with our Privacy Policy.
    TREATMENT OF PERSONAL INFORMATION
    In compliance with Act15/1999, 13 December, of Protection of Personal Information and development regulation (hereinafter, the Company), holding company of this Web Site,(hereinafter, the Portal) informs you that the information obtained through the Portal will be handled by the Company, as the party in charge of the File, with the goal of facilitating the requested services, attending to queries, carrying out statistical studies that will allow an improvement in service, carrying out typical administrative tasks, sending information that may result of your interest through bulletins and similar publications, as well as developing sales promotion and publicity activities related to the Portal.
    The user expressly authorizes the use of their electronic mail address and other means of electronic communication (e.g., mobile telephone) so that the Company may use said means of communication and for the development of informed purposes. We inform you that the information obtained through the Portal will be housed on the servers of the company OVH, SAS, located in Roubaix (France).
    Upon providing your information, you declare to be familiar with the contents here in and expressly authorize the use of the data for the informed purposes .The user may revoke this consent at any time, without retroactive effects.
    The Company commits to complying with its obligation as regards secrecy of personal information and its duty to treat the information confidentially ,and to take the necessary technical, organizational and security measures to avoid the altering, loss, and unauthorized handling or access of the information, in accordance with the rules established in the Protection of Personal Information Act and the applicable law.
    The Company only obtains and retains the following information about visit our site: The domain name of the of the provider (ISP) and/or the IP address that gives them access to the network.
    The date and time of access to our website. The internet address from which the link that that leads to our web site originated. The type of browser client. The client's operating system. This information is anonymous, not being able to be associated with a specific , identified user. The Portal uses cookies, small information files generated on the user's computer, with the aim of obtaining the following information: The date and time of the most recent visit to our web page. Security control elements to restricted areas.
    The user has the option of blocking cookies by means of selecting the corresponding option on their web browser. The Company assumes no responsibility through if the deactivation of cookies supposes a loss of quality in service of the Portal.
    If you would like to contact us via e-mail, please send a message here
    Download and Install Now
    Accept and Install
    Terms & Conditions
    Privacy Policy
    Contact Us
    Another one appeared too:
    http://hjpzz.playnow.dollfield.eu/?sov=412093510&hid=hllxrtplhvhh&id=XNSX.1282489761.242716.bcd1066d14.5716.753da997a17f9f6fe278b4412637784f%3A%3Apc
    Thanks for any help.

    What you are experiencing is 100% related to Malware.
    Sometimes a problem with Firefox may be a result of malware installed on your computer, that you may not be aware of.
    You can try these free programs to scan for malware, which work with your existing antivirus software:
    * [http://www.microsoft.com/security/scanner/default.aspx Microsoft Safety Scanner]
    * [http://www.malwarebytes.org/products/malwarebytes_free/ MalwareBytes' Anti-Malware]
    * [http://support.kaspersky.com/faq/?qid=208283363 TDSSKiller - AntiRootkit Utility]
    * [http://www.surfright.nl/en/hitmanpro/ Hitman Pro]
    * [http://www.eset.com/us/online-scanner/ ESET Online Scanner]
    [http://windows.microsoft.com/MSE Microsoft Security Essentials] is a good permanent antivirus for Windows 7/Vista/XP if you don't already have one.
    Further information can be found in the [[Troubleshoot Firefox issues caused by malware]] article.
    Did this fix your problems? Please report back to us!

  • Vendor with multiple bank details....paid to the 1st bank account while inv

    Hello Experts,
    We have a vendor with two bank accounts in the vendor master. Now while making the payment, I mean, which account will the money goes? at the time of F110 , we paid to the 1st bank account in the vendor master..
    Settings in vendor master:
    I 'name' the bank accounts in the vendor master, in the field Bank Type. While posting through MIRO, insert this code into the line item 'Patner bank' and the payment program will pick up the bank account accordingly BUT If I don't add this information to the Patner bank account, than always the first bank account will be picked up..
    I want that even if don't add any info in partner bank in the line item,  at the time of F110 , it should paiy to the 2nd bank account in the vendor master..
    This is a very stupid requiremnt but our users wants like this only.
    Kindly show me some light in this dark tunnel...please.
    regards,
    nupur

    Hi Nupur,
    In vendor master data under 3rd tab where we record all bank details of the vendor left hand side you will find one column 'C' .i.e., Collection authorisation......kindly check this option for your second bank to which you want to make the payment.
    Hope this helps you.
    Regards,

  • Clearing of open items from one Bank Account to one or several customer A/C

    The requirement herein is to do the Posting & clearing of open items from one Bank Account to one or several customer Accounts. We will have to use the Standard program RFBIBL00 to achieve this because the program can do the posting and clearing of open items. I know that we will have to use the structures BSELK (Header) & BSELP (item) to get the clearing functionality as well. Now the question is to which field we will map the Bank A/C No. and the Customer Clearing A/C. I need help on mapping the data to correct structure fields. I thought about it and I think the data should be arranged like the following:
    BGR00- Session Header
    BBKPF- Header
    BBSEG- Doc. data (Bank Account BBSEG-BANKN )----Can you confirm ??
    BSELK-AGKON (Customer A/C- open item/ Header )
    BSELP - Line Item
    BSELK-AGKON (Customer A/C- open item/ Header )
    BSELP - Line Item
    BSELK-AGKON (Customer A/C- open item/ Header )
    BSELP - Line Item
    I know that the clearing can happen from one Bank A/C to several customer accounts. I am thinking on building up data in this format & then writing it to a file to sumbit the file data to RFBIBL00. Can anybody help me in building up the data. Kindly provide your helpful insights. I want to be sure if this is correct or not ?? One more question how to fill the BSELP structure ??

    Solved Through forum

  • Update supplier bank account details using open Interface

    In R12, how do you update/create the supplier bank accounts for existing supplier and supplier site? Is it correct that the bank account details cannot be
    imported individually and it can only be imported along with the supplier or supplier site? Please provide the steps if we can update the bank account details (like the import program and all that?)
    Thanks in advance!
    -Shirish

    One of the reason of this error is incorrect object_version_number. In API iby_ext_bankacct_pub.update_ext_bank_acct there is a parameter p_ext_bank_acct_rec, in this record type one field is object_version_number. Pass the correct version number which is same as for the given bank account.
    Below is the query to find the correct object_version_number --
    SELECT object_version_number
    FROM IBY_EXT_BANK_ACCOUNTS
    WHERE ext_bank_account_id = <bank_account_id>;
    Thanks,
    PC

  • I'm an American living on a timed (though long-term) assignment in Ireland. I have both American and Irish bank accounts and addresses. I have two Qs. 1. Can I use the US Adobe site when in Ireland? Or will my physical location prevent me from doing so? 2

    I'm an American living on a timed (though long-term) assignment in Ireland. I have both American and Irish bank accounts and addresses. I have two Qs. 1. Can I use the US Adobe site when in Ireland? Or will my physical location prevent me from doing so? 2. I am working for a not-for-profit organization. Is there a special pricing plan for non-profits, similar to the plans for students, small business, etc? Thanks for whatever help you can give me. (P.S. As a potential customer and past user of Adobe products for 15  years, I find it INCREDIBLY FRUSTRATING that I cannot speak with any Adobe representative, but am continually re-routed instead to a public forum to get what I hope will be accurate information. Not good, Adobe. Your products are amazing. Your customer service leaves a lot to be desired. I don't mean that with disrespect, but as honest feedback.)

    Hi bookchic
    Thanks for your feedback.
    Non-profit pricing is available to eligible institutions via the VIP program which is sold by resellers - see Eligibility guide
    For details of resellers please check here: Adobe Platinum Partners – Value Incentive Plan
    If you wish to purchase an individual plan via Adobe.com the country of your Adobe ID will determine which site you order from.
    Kind regards
    Bev

  • One Bank account for Multiple company codes

    Hello, Is it posible to have one Bank account assigned to mulitiple company codes ??
    isn't it be a problem when we do BAI reconciliation.
    Becuase all we get from bank is bank account number and transactions, and how reconciliation works in this situation if we had mulitiple company codes assigned to same bank account number.
    Can you please suggest me, if this is possible at all.(assigned to mulitiple company codes).
    Thankyou.

    Hi. For bank statement configuration you can only assign one bank account to one company code as mentioned by Akhil. The scenario you've described above is a pay-on-behalf process. If your payments are through AP, you create the bank account in the true legal entity and then when you configure the Company Codes (x,y, and z) in F110 payment program, then you set the Paying Company Code to be entity A. You don't need to configure the bank account in company codes x, y and z. When you run the AP payments, the system will know to check company A for the banking details. You will also be establishing an intercompany relationship with this so you would need OBYA setup as well. However, if you are trying to process payment requests, I do not think that the program adheres to this piece of config. It'll try to find the bank account in the respective company code's config. So sometimes in-house cash is implemented to this. hope that helps a bit.

Maybe you are looking for

  • Changing a Message type on Purchase Order

    Hi guys, How can I change a standard message type on Purchase Order ? For example : On Purchase Order, when a insert a new Contract item number, occurs the Error message below : 'Contract vendor 610065 differs from vendor 610195' But, I neet to chang

  • Macbook Constantly Loses Internet, but not Wireless Signal

    I have a black 2008 Macbook (don't have the full specs on me since I'm on my work computer) and it constantly loses internet connection (i.e. I can no longer visit websites), however Airport continues to show full signal strength to my wireless netwo

  • Annoying screen flicker on my Y2P

    I purchased my 13" Y2P earlier this year and am satisfied with it except for this one annoying problem. Every now and then the screen turns off for a few seconds and comes back on. This will happen two or three times every incident it happens and the

  • Complete Novice (my personal challenge)

    Hi, I am looking to fastrack myself to learn the basics of Oracle to enable me to do a small test Project. The parameters are to give myself 2 weeks to find some free hosted Oracle Area (for thr Project) then somehow create an ERD that can be mapped

  • How to update payment information

    I want to update my payment information but it wont let me edit??