public class ssssss {
public static void main(String[] someVariableName) {
float hrsWorked = 40;
double payRate = 10.00;
double taxRate1 = 0.25;
double taxRate2 = 0.50;
double grossPay = 0.00;
double taxAmt = 0.00;
Double netPay = 0.00;
System.out.println("hrsWorked = " + hrsWorked); // prints the variable
//name,
System.out.println("payRate = $" + payRate); // the equal sign, and the
System.out.println("taxRate1 = " + taxRate1); // and the value stored in it
System.out.println("taxRate2 = " + taxRate2);
System.out.println("grossPay =$" + grossPay);
System.out.println("taxAmt = $" + taxAmt);
System.out.println("netPay = $" + netPay);
//
// use arithmetic operators to turn data into information
//
grossPay = payRate * hrsWorked; // puts the results from the
boolean bigGrossPay = (grossPay >= 500);
taxAmt = grossPay * taxRate1; // right-hand side of the equal sign
boolean littleGrossPay = grossPay <= 500; // into the variable on the left-hand
taxAmt = grossPay * taxRate2; // side of it
netPay = grossPay - taxAmt;
System.out.println("hrsWorked = " + hrsWorked); //prints new values
System.out.println("payRate = $" + payRate);
System.out.println("taxRate1 = " + taxRate1);
System.out.println("taxRate2 = " + taxRate2);
System.out.println("grossPay =$" + grossPay);
System.out.println("taxAmt = $" + taxAmt);
System.out.println("netPay = $" + netPay);
System.out.println("Skeleton code");
}
}
clear it from errors
Answers
Answered by
0
what are you asking I can't understand send questions in correct form
Similar questions
India Languages,
3 months ago
Accountancy,
3 months ago
Science,
6 months ago
English,
6 months ago
English,
11 months ago
Math,
11 months ago