Answered step by step
Verified Expert Solution
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 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.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started