I have been trying to run the following code and it compiles but somehow it does not show the cost as stored. So here is the code below;
public Job(int ref, String nam, int pago, int copo, int hour, int minute, boolean doubleSide)
{
reference = ref;
name = nam;
pageno = pago;
copyno = copo;
doubleSides = doubleSide;
setTime = new Time(hour, minute);
Date = null;
}
/**
*
*/
public void calCost(boolean doubleSide, int pago, int copo)
{
if (doubleSides == true)
{
int c = pago * copo * 2;
}
else
{
int c = pago * copo * 3;
}
}
and this is what i have been requiring to do;
The Job class must store the following information about a job: the job's reference number as an int, the name of the member of staff submitting the job as a String, the number of pages and the number of copies to be made as int, whether the copies are to be double sided or not.
&
Write an accessor getCost which returns the cost of the job as specified above

