**I'm to the point I think where I can ask a user to input a string value,
answer is Hourly.
if hourly the user enters hours, then the program prints out value in currency format
answer is Salary
user enters which salary level
Level 1 is for recent college grads
Level 2 is for executives
level one and level 2 have different salary levels and pay is calulated on a bi-weekly pay schedule**
import java.io.*;
public class Payroll
{
public static void main( String args[] )throws IOException
{
System.out.println("Are you an Hourly or Salary worked?");
BufferedReader br;
br = new BufferedReader( new InputStreamReader( System.in ) );//gathers data from user
String line = br.readLine();
if(line.equals("Hourly"))
{
System.out.println("Enter Hours Worked");
System.out.println("Enter Pay Rate");
}
[COLOR="Red"] //a. If hourly then ask for the following
//i. Hours worked
//ii. Pay Rate
//1. If the hours worked is greater than 40 hours then you must calculate total
//pay for the first 40 hours at the pay rate given and then calculate hours
//above 40 at time and a half[/COLOR]
//
else if(line.equals("Salary"))
{
System.out.println("Enter a Salary level 1 or 2");
} //Level 1 is for recent college grads
//Level 2 is for executives
else
{
System.out.println(" ");
}
}
}
//iii. The bottom line is just set to constant variables with the yearly
//salary for either level and calculate the pay based on bi-weekly pay schedule.
//4. Be able to print/show the results for the date taken in after all data has been entered.
//5. Please put this into a loop that will allow more than one entry.
//FORMAT THE RESULT AS A CURRENCY (w/ a $ sign in front of it)