Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.

>> REGISTER NOW TO START POSTING

1. ## 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

And here is my program code please can you help me improve it.
```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);

}

}
}```
HAPPY BIRTHDAY JAVAFORUM.