oh, ok. that makes a bit more sense, did you figure it out?
if not your current code would be very helpful to figure out what you need to do.
Thanks, keep in mind, I have no idea or understanding of java programming, so this is what I have:
import java.util.Scanner;// used to read keyboard input for integers
import java.io.*; // used to read keyboard input for characters
class PayrollCalculator
{
public static void main (String arg []) throws IOException
{
Scanner input = new Scanner (System.in);
String employeeName;
//String stop;
//TextIO.put ("Enter employee's name:");
//employeeName = TextIO.getln();
System.out.print ("Enter Employee's name or type stop to quit program:");
employeeName = input.next();
while (employeeName != "stop" )
{
System.out.print ("Enter employee's hourly pay rate:");
double payrate = input.nextDouble();// used to input real numbers
while (payrate <= -1)
{
System.out.print ("Please enter a positive number.");
payrate = input.nextDouble();
}
System.out.print ("Enter number of hours worked:");
double hours = input.nextDouble();
System.out.println ();// used for white space
while (hours <= -1)
{
System.out.print ("Please enter a positive number.");
hours = input.nextDouble();
}
double salary = payrate * hours;// pay calculation
System.out.print (employeeName );
System.out.print (" - your salary for the week is: ");
System.out.printf( "$%.2f\n", salary);// used to format currency output
System.out.println ();// used for white space
System.out.print ("Enter Employee's name or type stop to quit program:");
employeeName = input.next();
}
if (employeeName == "stop")
{
System.out.println ("Thank you, come again");
}
}
}