To conserve water, Las Vegas assigns each of its households to a group and allows each group’s members to water their yards only on certain days. There are six possible groups, A through E, and the watering schedule is shown in the following chart:
Design and implement a class that uses one or more switch statements and one or more enumerations to determine whether the residents in a given watering group may water their yards today.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here