Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Platinum (4000 achievement points or more), Gold (3000 achievement points), Silv

ID: 3537978 • Letter: P

Question

Platinum (4000 achievement points or more), Gold (3000 achievement points), Silver (2000 achievement points), Bronze (1000 achievement points), are used to represent levels of achievement in a day camp. Create an enumerated type to represent the achievement levels. Write a Camper class that will include a method to assign the right type to a private variable of that type and another method to return a String telling the calling class the points achieved based upon the enumerated type. Demonstrate the class in a program. Include appropriate methods and constructors

Explanation / Answer


public enum Medal {


Platinum ,Gold , Silver , Bronze ;

}