Question: 1. TotalFees.java - This application will demonstrate overloading methods. Write an application that includes the following variables: tuitionFee, bookFee, techFee, and parkingFee, all of which
1. TotalFees.java - This application will demonstrate overloading methods. Write an application that includes the following variables: tuitionFee, bookFee, techFee, and parkingFee, all of which are double variables. You may simply initialize these variables with values that you make up rather than gather keyboard input. You may choose either GUI or console-based. All of this can be done in one program that includes a main method. (In other words it does not require that a class definition and driver be code separately.)
Create four overloaded computeTotal() methods:
a. When computeTotal() receives tuitionFee only, display console-based output that says Tuition only along with the tuitionFee.
b. When computeTotal() receives both tuitionFee and bookFee, display Tuition and Books along with the total of the two variables.
c. When computeTotal() receives tuitionFee, bookFee, and techFee display Tuition, Books and Technology along with the total of all three variables.
d. When computeTotal() receives all of the variables, display The Whole Package along with the total of all the variables
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
