Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Part 1: Create the Student class 1. Create a class called Student. It should have the following instance variables: Name of Instance variable Description of
Part 1: Create the Student class 1. Create a class called Student. It should have the following instance variables: Name of Instance variable Description of instance variable Student's first and last name name major numCreditsPassedTotal number of credit hours completed by the student (such as 72) Major of student (such as IT, Math", "Undecided" Make this an integer data t Make this an integer data t numCreditsCurrentTotal number of credit hours the student is enrolled in this semester. 2. Create a constructor for Student which does not have any parameters. Inside the constructor, initialize all the instance variables using your personal information. Create a constructor for Student which has 4 parameters. Use the parameter variables to set the instance variables. 3. 4. Create the getters and setters for all of the instance variales 5. Create the printData method that will SOP each of the instance variables 6. Create an instance method called isUpperclassmen. There are no parameters to this method. It returns true if number of credits passed is 60 or above. Otherwise, it returns false Create an instance method called calculateRemainingHours. There are no parameters to this method. It returns the number of hours the student must complete to earn a degree. Assume that all degrees require 123 credit hours for completion. So, remaining hours = 123-numCreditsPassed 7. 8. Create an instance method called calulateBill, There are no parameters to this method. It returns the cost for student attending classes for the current semester. This is calculated as shown in the following table Number of credit hours 0 to 6 Calculation of Bill $100.25 for each credit hour you are currently enrolled $100.25 for each credit hour you are currently enrolled PLUS a fee of $500 > 6
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