Question: How to fix this code and get out put? Create a Customer class that encapsulates the concept of a customer, assuming that a customer has

Create a Customer class that encapsulates the concept of a customer, assuming that a customer has the package customerclass; public class Customerr { public static void main(String[] args) { public String name; How to fix this code and get out put?

Create a Customer class that encapsulates the concept of a customer, assuming that a customer has the following attributes: a name and a credit score. Include a constructor and setter/getter methods for name and credit score. Create a Customer Creator class to test all the methods in your class. Customer Class Include a name and creditScore class fields (instance variables). Initialize the name variable to null and the credit score variable to 300. (2 points) Include a constructor to set the name and creditScore of the customer when the object is created. The constructor should take in two parameters and should call setter methods for name and creditScore. (2 points) Create a setName method that sets the value of the customer's name. (1 point) Create a getName method that returns the name of the customer. (1 point) Create a setCreditScore method. (1 point) Add validation to the setCreditScore method. Credit score must be at least 300, otherwise it should be set to 300. (2 points) Create a getCreditScore method that returns the credit score of the customer. (1 point) Create a getCreditRating method that returns the rating of the credit score this will be based on the credit score field. (5 points) Bad (Score 200-629) . Fair (Score 630-689) . Good (Score 690-719) Excellent (Score 720-850) Customer Creator Class Create a customer object including a name and a credit score. (2 points) . Call the getName, getCreditScore, and getCreditRating for this student and print the results. (3 points)

Step by Step Solution

3.46 Rating (156 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Please attach the images r... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!