Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Evaluate three pros and three cons of e-prescribing

Answered: 1 week ago