Question
please help, the first is our teacher given to us, and it should become the last part in the picture. THANK YOU!! import java.util.Scanner; //
please help, the first is our teacher given to us, and it should become the last part in the picture. THANK YOU!!
import java.util.Scanner; // import the Scanner class to gain access to make our Scanner object
public class Assignment1 { public static void main(String[] args) { Scanner keyboard = new Scanner(System.in); // keyboard is now how we will prompt for input String userName; double income,taxable,retire,ftax,stax,ltax,ptax,takehome; // these are the variables you will need to set or calculate // name income 401k //calc taxable (income -retire) //calc 10% fedtax, 3.07% statetax, 1%localtax, 6.2% payroll tax //calc takehome (taxable - all the taxes) // Enter username and press Enter System.out.print("Enter your name income and 401k contribution on the same line separated by an empty space i.e. mike 12000 2500: "); } }
For handing in your project, you will need to upload at least 2 files. 1. Your java source file, the .java file not the class file 2. A screenshot of your program showing output after entering data. This can be the same as the info shown below in the sample or different. Test for accuracy prior to hand in. Ideally, you have done manual calculations for your test person to verify the accuracy. At minimum, check it against the 2 sample people I have run below. 1. Make sure math is accurate 2. Make sure ALL output is similar, you can change wording but all values shown must be included - just like the video shows the 8 values needing to be output. Enter your name income and 401k contribution on the same line separated by an empty space i.e. mike 12000 2500: Emily 23000 1700 Taxpayer name is: Emily Their income was: 23000.0 Their taxable income was: 21300.0 Their fedtax amount due is: 2130.0 Their state tax amount due is: 653.9100000000001 Their local tax amount due is: 213.0 Their payroll tax amount due is: 1320.6 Their takehome amount is: 16982.49
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started