Algorithm 2
Algorithm 2
Step 1: Declare the instance variables as String variables s and wkd, String array wkar
and integer variable d. Initialize wkar with the names of the days available in a week.
PAGE 2.2
Step 1: START OF FUNCTION.
Step 2: Create an object ob of the class.
Step 3: Invoke the function accept() as ob.accept().
Step 4: Invoke the function calc_n_disp() as ob.calc_n_disp().
Step 5: END OF FUNCTION.
PAGE 2.3