Tax payment system

hi!
I wondered if someone could help me, we are required to do this as part of an excercise for a course but I havn't got a clue where to start. The task is to:
Write a program that calculates how much tax someone should pay according to the following rules;
* People pay no tax if they earn up tp �4,000.
*They pay tax at the rate of 20% on the amount they earn over �4,000 but up to �20,000
*They pay tax at the rate of 25% on the amount they earn over �20,000 but up to �29,000
*They pay tax at the rate of 40% on the amount they earn over �29,000.
e.g. if someone earns �35,000 they will pay
0% on the first �4000
20% on the next �16000 = �3200
25% on the next �9000 = �2250
40% on the last �6000 = �2400
= �0 + �3200 + �2250 + �2400
= �7850
The program should then output the amount of tax to be paid.
I would be really greatful if someone could help me out of start me off.
thanks
Maria

Sorry - i am asking a bit much there. I have started this, the best I thought I could do was to add the code in a stage at a time. so far I have
import java.util.*;
//A Program to compare the ages of Tom and Jerry and output who is older
public class lecture10c
     public static void main (String[] args)
          //Set up data input and declare varibles
          Scanner data_input = new Scanner (System.in);
          String name;
          int amount_earned, tax_owed;
          //Get amount earned by person
          System.out.print ("Please enter the amount earned: ");
          amount_earned = data_input.nextInt ();
          //Determine if they should pay tax
          if (amount_earned <= 4000)
               System.out.printf ("%nNo tax is payable");
          //If they should pay tax
          else
               //Calculate tax to pay
               tax_owed = (amount_earned * 0.20);
               System.out.printf("Tax to be paid = %d%n", tax_owed);
}However, it won't compile and i get this error:
found : double
required: int
               tax_owed = (amount_earned * 0.20);
^
1 error
Anyone any ideas why I am getting that message?

Similar Messages

  • Service Tax On Down Payment and Tax Payment Wizard

    Hi All,
    We would like to make a down payment and apply service tax to it.
    Once i create a AP Down payment invoice with the service tax, make an outgoing payment against it, create AP Invoice and adjust the down payment, now after following this procedure, when i run the tax payment wizard, the service credit available becomes zero.
    It works well in case of partial payment but not 100% advance.  Has anyone faced this issue??
    How can this be resolved?
    Thanks,
    Joseph

    Hi Rahul,
    Exactly! The system doesnt consider the tax on DP when we check through Tax Payment Wizard.
    I guess this is a missing functionality? What do you think? Because there may be a chance that the service tax may get deducted at down payment! What is your take on this?
    Looking for valuable responses from other experts too!
    Thanks,
    Joseph

  • Amount in the tax payment wizard Against PLA remaining for BED is negative

    Hi All,
    I have made an outgoing payment selecting PLA radio button for BED,Ecess & Hecess in order to deposit the amount againg BED,EcEss,Hecess in PLA account.
    Now when i am trying to run the tax payment wizard ,system is showing me the -ve amount in the PLA remaining column against the BED,Ecess,Hecess.
    I am facing the problem to move ahead to the next step in the tax payment wizard as system is showing the error and not not allowing to move ahead.
    PLease suggest how can i proceed.
    Regards,
    Atif Mian

    Hi Atif
    The problem is with your date selection criteria.
    With what date range you are trying do run Tax Payment Wizard differs with the date when you fill PLA Account via Outgoing payment.
    Just check and let us know please.
    Regards,
    Rahul

  • Tax Payment Wizard-VAT Payment error

    Hi friends,
    I am trying to do VAT payment using Tax Payment Wizard.System calculates and displays VAT Payable amt,Credit Amt and Payment amt.Then I enter the Direct Payment amt in the Payment means.Then I click 'Next' button.In Step 6 of Tax Pmt Wizard ,General Parameters window opens.Here after filling all the parameters when I click on Next button ,system shows following error message -
    In "Value" field, enter number greater than 0 [Outgoing Payments - Accounts - Paid][line: 2]  [Message 131-22]
    What is the reason? Your expert advice will be a great help.Please reply.
    Thanks & Regards
    Sudhir Jadhav

    Hi Sudhir,
    What is your B1 version & PL? There is known bug in certain versions.
    Thanks,
    Gordon

  • Tax Payment Wizard - Country India - Version 2007 B PL 08

    Hi All,
    I am using SAP B1 2007 B PL 08 in country India.
    In order to use / test the Tax Payment Wizard,
    I have posted following documents
    Sequence for the Location.
    A/R Invoice and A/P Invoice with ware house for above Location.
    Respective incoming and out going payment documents giving reference of respective A/R Invoice and A/P Invoice.
    Now when I execute Tax Payment Wizard,
    In second step of Tax Payment Wizard, after entering all required information, when I select the Location, system gives following error message.
    Sequence is not defined for the Location [Message 80072-11]
    Please do let me know what could be the reason for it.
    Best Regards,
    Samir Gandhi
    Edited by: Palak Shah on Feb 13, 2009 1:39 PM
    Edited by: Palak Shah on Feb 13, 2009 1:42 PM
    Edited by: Palak Shah on Feb 13, 2009 1:45 PM
    Edited by: Palak Shah on Feb 13, 2009 1:51 PM
    Edited by: Palak Shah on Feb 13, 2009 3:55 PM

    Dear Palak,
    Have you defined sequence number for Tax payment wizard for this location?
    Please see the following from online help:
    http://help.sap.com/saphelp_sbo2007b/helpdata/en/b1/8fe14910cf46b9b2ff2de2f315e5a2/frameset.htm
    Please also see documentation on India Localization:
    https://websmp102.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_HIER_KEY=701100035871000529280&_OBJECT=011000358700000267942008E&_SCENARIO=01100035870000000183&
    Regards
    Preety Goel
    SAP Business One Forums Team

  • ALERT: CVS disabled NFC terminal to block Apple Pay in support of other Moblie payment systems

    CVS has shut down their NFC machines in an attempt to block Apple Pay and Google wallet to support QR code wallet system with other major retail partners like Walmart and BestBuy.
    Their technology not even close to being secure. Be sure to file complaints to CVS customer relations online. Just an FYI for you Apple pay folks who are trying to pay in CVS. It won't work. Lol. Plenty of articles online about it. Just a heads up for all you Apple Pay enthusiast.

    I filed my complaint Friday with CVS due to the Retailer's own interest driving the Merchant Customer Exchange CurrentC Mobile Payment Product.  The Retailers primary focus is to reduce their payments to Visa and MasterCard.  The CurrentC Mobile Payment System is cumbersome at the Point-of-Sale, require QR Codes to be scanned by the Store Clerk or the Customer.  A second major focus of CurrentC is to collect personal information about the Customer for use in Retailer Marketing, unfortunately this data even includes personal Health Data.  I don't see Consumers flocking to the Retail Arena to use CurrentC.  The CurrentC Mobile Payment System began design and development back in 2011, but is not to market as yet. 

  • Payment System

    Hi
    1.i ve created outgoing excise invoice.But on selecting that Vendor in outgoing payment form it does not show that invoice for payment.but if i make A/P invoice for that Goods receipt it shows.
    Does it mean that for every transaction A/P and A/R invoices needed.Though we have made Excise invoice.
    2. And if i have paid 500 rs for a vendor though it was to paid 1000, then it does not give me option to pay rest of 500 rs.
    Thanks

    Hi,
    Answer for 1) After creating Incoming/Outgoing excise invoice, you only make entries for excise but the liability / asset i.e your Customer & vendor accounts hits only after creating AR / AP invoices respectively. So, if you creating Incoming/ Outgoing payment, system will not show the payment due unless you create the AR/ AP invoice.
    Answer for 2)
    Please see the following link -
    Partial Payment
    hope this will help you.
    Regards,
    Abhishek

  • Amendments to Outgoing Payments (System)

    Hi All,
    I need to amend the outgoing payment (system) report such that it shows the journal enteries that this payment is creating.
    As an example.
    I am making a payment to account :123120 - VAT payable by cheque.
    I would like the outgoing payment report to include (along with the information already present) the following
    DR Account Name (Text Field)  VAT Payable     £xxxxxxx
    CR Account Name (Text Field)  Main Bank Account (£xxxxxx)
    can anyone tell me which database fields I need, and how to link them on the report?
    Thanks
    Dan

    Hi Dan,
    Try to change system default PLD is too risky. The result could be negative no matter how you try. My suggestion would be try it by SQL query.  If you can create your query for this purpose, the time spend might be less.
    Thanks,
    Gordon

  • How to integrate iReceivables with third party payment system?

    Hi,
    My requirement is to integrate iReceivables with third party payment system.
    Can anyone guide me to achieve this.
    Thanks & Regards,
    Sunita

    Hello Prasad,
    <b>Connection with an External Payroll System</b>
    Payroll Outsourcing functionality allows you to compile master data or payroll data in the SAP system to submit to a third-party service provider in an electronic format. The Outsourcing solution available in the United States and Canada provides a generic interface which writes data into an IDoc (Intermediate Document) for transport to a third-party system. In order to transport data into and out of the SAP system, you must set up a logical system, partner definition, and outsourcing ports.
    If you have built your own payroll interface, using the Interface Toolbox, for example, you can use the Import section of this scenario. The Export section applies only to the transport of IDocs.
    For more information regarding outsourcing, refer to the SAP Library, Human Resources  -> PY Payroll  -> PY-US United States Payroll or PY-CA Canada Payroll  -> Outsourcing.
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/af/f4ea3444e9c47fe10000009b38f83b/frameset.htm
    Import Payroll Results from a Third-Party System
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/0a/e62481feaf11d1a5500060087832f8/frameset.htm
    regards
    Prasad
    Message was edited by:
            prasad chintala

  • Witholding Tax Information system (J1INMIS) Not updating (FICA)

    Hi Experts,
       We are using ECC 6.0 recently we upgrated with EHP 5. And the current system (FICO) is working fine with TDS calculations and Witholding Tax Information system (J1INMIS) gets updated perfectly.
    We are implimenting FICA (student Accounting). FICA has a provision to calculate the TDS so all TDS Calculations done in FICA.
    While we transfer the data from FICA to FICO all GL's gets update even TDS GL also getting update. But when I Check the Report Witholding Tax Information system (J1INMIS) the TDS calculated from FICA is note appearing in this report. But appearing in TDS GL's.
    I assume  FICO system will not have any Vendor information because In FICO all vendor balances will get update to only reconciliation key as vendor are in FICA system.
    Another problem is how I can take TDS Certificates for vendors If the Tax Information system doesn't update.
    Please suggest.....
    Kind Regards,
    Shivaji

    To get TDS certificate we use T code J1INMIS, Pls dont go to This T code: Follow this:
    1. J1INCHLN
    2. J1INBANK---Bank no, will be Check Issue A/C.
    3. J1INCERT----In this document date should be end of the month date exampl=31/03/2011
    After giving all the details in J1INCERT
    select - Ctrl S (Save the document_
    you will see the below screen (Variant) give variant name XXX Description (Check Printing)
    save, you will get 16A Form.

  • Payment System Unavailable

    I'm also having the "Payment System Unavailable" problem. It's a U.S. license and a U.S. credit card. It then tells me
    "We're sorry, but we're having trouble processing your order. Please come back and try again later or call us at +1 800-585-0774. If you're not in North America, you can look up a local number here."
    I dialed the 800 number and found out that you're only open 5am-7pm PST Mon-Fri. So I tried online help and got to this:
    "The best way to contact us...Call an agent Monday-Friday, 5am-7pm PST"
    But, it's Saturday here.

    We are investigating on this end. Which plan are you trying to purchase from the Creative Cloud Plans page at https://creative.adobe.com/plans? Feel free to email me directly at [email protected] or reply here.

  • Assets Disposal Payment System - F107_START

    Our Client have new requirement - " Asset Disposal Payment system " Specfic to Japan Only. Its new accounting Principle thas has been added to Japan Accounting Principle.
    Is any one have experience on this. Please let me know.
    I went through some SAP standrad Documents for this New functionality. As i got that for the implementation of this functionality, we need to have the New GL Functionality. But our client doesnt have the New GL Functionality. So please let me know, can it be possible with out NEW GL functionality.
    As per SAP standrad functionality, we need to check to use the following Program :
    F107_START
    F107_PROVISIONS
    Please let me know, if any have any information for that one.
    Sachin Garg

    I would suggest you to create a SAP message and ask SAP directly on this matter.
    blaz

  • On line payment system in java

    Hi all,
    I have to build a on-line payment system for a web application in Java.
    I have no idea of it? Can any of you help me ...
    Thanks in advance ...

    user10316500 wrote:
    And which are the possible payment gateway?It depends, and varies from client to client, i suggest to get these details from your client. For example, if i am client i'll say use Citi banks payment getway. even if it is credit card/ debit card payment, then citi gateway will interanly takes care of it, like validating the card number, pin , expiry date etc.

  • Fix your payment system

    "We are currently experiencing difficulties..."
    Well...you better UNexperience them. Do you want paid or not?
    Fix you website.
    Fix your payment system.
    Hire human beings.
    Hire English speaking human beings -- from the United States of America

    mrk1178 wrote:
     ... Hire English speaking human beings -- from the United States of America ...
    <IRONY ALERT>
    My Aunt Lillian from Surrey in the UK is a permanent US resident looking for work.  Does this mean she should try Comcast?
    </IRONY ALERT>

  • Horrible Payment System

    My co-worker is in China, I ask her to get subscription with my credit card, but China region only offer region payment options that I can't use my Master card for business reimburanment.  It seems China Skype is totally seperate from standard Skype account.  I tried to gift my friend skype e-gift card, yet my credit card couldn't go through as well (confirmed my card doesn't have any issue as I was able to make other online pruchase at the same time).  These payment systems all has different interface, seems like it is develop by different team?  I end up using Paypal to fill in credit for my account (not my preferred option for reimburnacement), but my co-worker in China is still unable to use skype still.  
    Come on Microsoft!  Smooth payment is fundenmetnal for good business.   Not to mention Skype is dealing with global connection.  If I can't get my co-worker to have money talking to me on Skype, how can you expect me to use Skype for my family use?  My mom don't even know how to shop online with credit card at all.  
    ps1. By the way, Skype needs to provide invoice for all transcation.  First online purchase that doesn't offer me printed PDF invoice at all.
    ps2. I am not looking for solution here, as my co-worker is now seeking Skype alternative.  This post is for my emotional expression on Skype payment system.  

    Hi Inge Raemaekers,
    Please refer the link and contact our chat support: http://helpx.adobe.com/in/contact.html.
    Regards,
    Romit Sinha

Maybe you are looking for

  • Calling Stored Procedure with Windows Authentication SSIS 2012

    We are upgrading to SQL Server 2012 and our SSIS Packages are failing with: "The operation cannot be started by an account that uses SQL Server Authentication. Start the operation with an account that uses Windows Authentication. Error on line 215: (

  • SSRS Reporting : Fill Cell Color according to the Location of the Cell in the Matrix

    Hello, I am trying to achieve below result in the SSRS but facing issues with Cell color Fill Expression when Detail value is NULL. If you look at the image, it should show exact same colors of the cell irrespective of the values. But in my case it i

  • Can't delete project service application instance

    Hi! First, sorry for my english. I'm trying to delete project service application instance with no luck. I tried to delete service app accordingly with this topic (http://social.technet.microsoft.com/Forums/en-US/d03219d0-9748-43ef-9c5e-b9006bcaf354/

  • Firefox doesn't remember the window size

    I recently upgraded my monitor and got a larger one. Now when I open FF it opens at a maximized window that doesn't fill the entire screen. So I'm forced to "minimize" it and "re-maximize" it. But when I close it does not remember the true maximized

  • Logmier info needed immediately

    Hi i have a replication program that is using the logminer to replicate transaction from one database to another. We tried its performance but the after implicating it on the performance database the response time shooted to almost 6 times the actual