Question: This time, you will create two classes: Feelnvoice and Driverclass. The Feelnvoice class has the following fields and methods: studentName and studentId: String crn 1
This time, you will create two classes: Feelnvoice and Driverclass.
The Feelnvoice class has the following fields and methods:
studentName and studentId: String
crn creditHours crn and credithours: 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:
FeeInvoicestring studentName, string studentid,
int crni,
int creditHours
int
int 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.java
Once 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
