Revise the class TimeBook in Listing 7.14 to use an enumeration for the days of the week

Question:

Revise the class TimeBook in Listing 7.14 to use an enumeration for the days of the week instead of named constants.


Listing 7.14

Class that records the t ime worked by each of a company's employees during one five-day week. A sample application is in the main method. */ public class TimeBook { private int number0fEmployees; //hours[i][j] has the hours for //employee j on day i. private int[U] hours; private int[] weekHours; //weekHours

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: