How does Google motivate its employees?October 29, 2020
Use situational analysis to segment markets.October 29, 2020
Create a class called Student and a Test class. The student class has the following variables and methods.
- String LastName
- String FirstName
- int regNumber (which must be auto-generated by incrementing the regNumber)
- double feesAmount
- double feesPaid
- double feesBalance
- feesAmount of $500 is the same for every Student
- a method calcFeesBalance() which calculates feesBalance by subtracting feesPaid from feesAmount.
- a method printStudentDetails() which prints LastName, FirstName, regNumber, double feesPaid, double feesBalance
The user must be able to create as many student objects as he/she wishes, and your program should display the details of every student using the printStudentDetails() method.