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
crn1, 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 crni,
int creditHours1,
int crn2,
int creditHours 2)
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 (Driverclass.java). Once done, submit your Driverclass.java
Once again, submit one.jave file
 This time, you will create two classes: Feelnvoice and Driverclass. The

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!