hi there i am stuck with a construct can anyone help???
write a constructor which sets the job's reference number, the staff name, number of pages, number of copies, whether double-sided and submission time. The submission time should be represented by two formal parameters of type int which are then passed on as actual parameters to a time constructor. the date the job is required should be set to null.
this is the constructor have to far
public Job(int jobRef, String memStaff, int numOfpages, int numOfcopies, boolean copiesDoubleSOrnot, Date dateOfJob,Time jobsubTime)
jobReferncesNumber = jobRef;
MemberofStaff = memStaff;
NumberofPages = numOfpages;
NumberofCopies = numOfcopies;
CopiesDoublesidedorNot = copiesDoubleSOrnot;
copiesDoubleSOrnot = copiesDoubleSOrnot;
JobsSubmissionTime = jobsubTime;
if (copiesDoubleSOrnot = true)
cost=0.03 * numOfcopies * numOfpages;
cost=0.02* numOfcopies* numOfpages;
i keep get this message when i try to compile" cannot find symbol-variable cost"
if anyone could help me with this constructor?????????????????