JAVA help... Plzzzzzz

samila224

Banned
Jan 25, 2009
6,954
280
0
Melbourne VIC Australia
import java.util.*;
public class Assignment1
{
public static void main (String [] args)
{
String employeeName;
double totalSales;



Scanner keyboard = new Scanner(System.in);

System.out.print ("Enter employee's name :");
employeeName = keyboard.nextLine();

System.out.print ("Enter annual total of sales made by the " + employeeName +":");
totalSales = keyboard.nextDouble();

if (totalSales >= 100000)
{
System.out.println ("Empolyee "+ employeeName +"'s annual total of sales amount is "+ totalSales);
System.out.println ("Empolyee "+ employeeName + " will get 20% of bonus");
System.out.println ("And his/her bonus amount is" + " " + totalSales*0.2);
}
else if (totalSales >= 40000)
{
System.out.println ("Empolyee "+ employeeName +"'s annual total of sales amount is "+ totalSales);
System.out.println ("Empolyee "+ employeeName + " will get 10% of bonus");
System.out.println ("And his/her bonus amount is" + " " + totalSales*0.1);
}
else
{
System.out.println ("Empolyee "+ employeeName + " will not get any bonus");

}
}
}




Machanla menna mea prgm akata [FONT=&quot]algorithm & [/FONT] [FONT=&quot]test plan hadanna hlp akak denna koooo...!!!
[/FONT]