Gaddis-ch1


        News     Lecture Notes     Lab Assignments     Lab News     Solved Problems     Calendar


1-1 Payroll.java

posted Jan 11, 2014, 3:25 AM by Karwan Jacksi   [ updated Jan 11, 2014, 3:25 AM ]

//1-1 Payroll.java
public class Payroll
{
public static void main(String[] args)
int hours = 40;
double grossPay, payRate = 25.0;
grossPay = hours * payRate;
System.out.println("Your gross pay is S" + grossPay);
}

1-1 of 1