Create an athlete class with event codes are t b s r and g


Problem

Create an Athlete class with the following characteristics:

This class contains public static arrays that hold codes and descriptions of events held in a championship organised by QUT Sports Faculty.

The event codes are T, B, S, R and G, corresponding to categories Tennis, Badminton, Swimming, Running and Gymnastics.

The class contains an auto-implemented property that holds a participant's name.

The class contains fields for event code and description. The set accessor for the code assigns a code only if it is valid. Otherwise, it assigns I for Invalid.

The event description is a read-only property that is assigned a value when the code is set.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Create an athlete class with event codes are t b s r and g
Reference No:- TGS03264426

Expected delivery within 24 Hours