Question: This time, you will create two classes: FeeInvoice and DriverClass . 1 ) The FeeInvoice class has the following fields and methods:studentName and studentId: Stringcrn
This time, you will create two classes: FeeInvoice and DriverClass The FeeInvoice class has the following fields and methods:studentName and studentId: Stringcrn creditHours crn and creditHours: intNote that data is to be set as private! Setters and getters for all the fileds. Note that you may choose not to invoke the setters and the getters, but have them in all cases. One constructor: FeeInvoicestring studentName string studentid int crn int creditHoursint crnint creditHours private double calculateTotalPayment to return the total payment amount. public void printFeeInvoice to print the invoice as shown in the sample run below. Note that this method should call calculateTotalPayment to get the total amount A skeleton for the DriverClass and FeeInvoide classes is provided below DriverClassjava Once done, submit your DriverClass.javaOnce again, submit one jave file
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
