hey, guys i it's me again please can you help me with this program .But here is the requirements:
Here is a summer programming job for 5 weeks.it pay 15.50 per hour.Suppose that the total tax you pay on your summer job incomes is 14%.After paying the taxes, yoy spend 10% of your net income to buy new clothes and other accesories for the next school year and 1% to buy additional school supplies.After buying clothes and school supplies, you use 25% of the remaining money to buy saving bonds.For each dollar you spend to buy saving bond, your parents spend $0.50 to buy additional saving bonds for 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:
a.)Your income before and after taxes from your summer job
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
e.)The money your parents spend to buy additional saving bonds for you
Code :import java.util.*; class football {static Scanner console = new Scanner(System.in); public static void main(String[] args) { double wages ; double rate ; double hours; double taxes; double clothesexp; double twagesatax; double schsupply; double sbonds; System.out.print("Enter hours worked:"); hours = console.nextDouble(); System.out.println(); System.out.print("Enter pay rate:"); rate = console.nextDouble(); System.out.println(); wages = hours * rate; System.out.println("The wages are :" + wages); System.out.println(" Total wages before taxes:" + wages ); taxes = 14% * wages; System.out.println(" Total wages after taxes:" + twagesatax ); clothesexp = 10% * twagesatax; System.out.println("Total money spend on clothes and other accessories :" + clothesexp ); schsupply = 1% * (twagesatax + clothesexp); System.out.println("Total money spend on school supplies :" + schsupply ); sbonds = 25% * (twagesatax + clothesexp + schsupply); System.out.println("Total money spend on saving bonds :" + sbonds ); } }
