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.1) The FeeInvoice class has the following fields and methods:studentName and studentId: Stringcrn1, creditHours1, crn2 and creditHours2: int(Note 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: FeeInvoice(string studentName , string studentid , int crn1, int creditHours1,int crn2,int creditHours2)- 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.2) A skeleton for the DriverClass and FeeInvoide classes is provided below (DriverClass.java). 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!