need help

• May 20th, 2010, 11:16 PM
james
need help
hey guys i really need some help with my program.here is the question:

You found an exciting summer programming job for 5 weeks. It pays \$15.50 per hour.
Suppose that the total tax you pay on your summer job income is 14%. After paying the
taxes, you spend 10% of your net income to buy new clothes and other accessories for the
next school year and 1% to buy school supplies. After buying clothes and school
supplies, you use 25% of the remaining money to buy saving bonds. For each dollar you
you. Write a program that prompts the user to enter the pay rate for an hour and the
number of hours worked each week. The program then outputs the following:
b. The money you spend on clothes and other accessories
c. The money you spend on school supplies
d. The money you spend to buy saving bonds
```import java.util.*; class Question1 { static Scanner console = new Scanner(system.in); public static void main(String[] args) {   final double RATE = 15.50; final double Total_Tax = 0.14; double hourwork,income,netincome,moneyclothes,moneysupplies,moneysavingbond,moneyparent,remaingmoney;     System.out.println("Enter the number of hour work each week:"); //assumpition maximum number of hours per week is 40 hours hourwoke = console.nextDouble();   if (hourwork <=40) { income = RATE * hoursworked   netincome = income - (income * Total_Tax) System.out.println("The total net income is :\$" + netincome);   moneyclothes = netincome * 0.10; System.out.println("The money spent on clothes and accessories:\$" + moneyclothes);   moneysupplies = netincome * 0.01; System.out.println("The money spent on school supplies:\$" + moneysupplies);   moneysavingbond = netincome * 0.25; System.out.println("The money spent to buy saving bonds:\$" + moneysavinmgbond);   moneyparent= netincome * 0.5; System.out.println("The money spent by parent to by additional saving bonds:\$" + moneyparent);     }   } }```