Escolar Documentos
Profissional Documentos
Cultura Documentos
In one state, single residents are subject to the following income tax:
Write a program that asks the user to enter the amount of taxable income, then displays
the tax due. Please name your project as IncomeTax.
Notes:
You need to include the above MyInput.java with your other files
in order to allow users to input numbers.
2. Create the ShoppingCart project, use a while loop to ask user to enter the price and
units of each item (for example, 44.95, 1). After a user finishes entering the
information for one item, ask if he/she would like to continue. Calculate the total
payment at the end, including the 8.5% tax. At the end, please print out the total
payment of the shopping cart. The following example shows how the application
runs.
3. Create a project named MortgageTable using for loop that lets the user enter the
loan amount and loan period in number of years and displays the monthly and total
payments for each interest rate starting from 5% to 8%, with an increment of 1/8.
Suppose you enter the loan amount of $750,000 for 30 years, display the table as
the following: