24.0k views
5 votes
4 classes are required. each class must be extended as specified, include the components noted and function as indicated. greetingpanel class extends the jpanel class and contains a single jlabel item to hold a greeting. routineservicespanel class extends the jpanel class and contains checkbox components for the routine services. this class defines a getservicescost method which returns the total cost of the routine services selected. optionalservicespanel class extends the jpanel class and contains radiobutton components for indicating whether or not any optional services were performed. a label and textfield components are also defined for the user input of the number of hours when optional services were performed. this class also defines a getservicescost method which returns the total cost of the optional services. client class extends the jframe class and is responsible for building the gui interface and responding to events. the window should display a greetingpanel, a routineservicespanel, an optionalservicespanel as well as two buttons components. one button will display the total cost of the items selected via a joptionpane with all dollar amounts formatted as currency. the second button will exit the program. this class should also define a main method.

User Matt Hill
by
7.2k points

1 Answer

3 votes
so each 4 classes requisite that an average should be divided so yea!!!!! good luck with that
User Ashy
by
6.9k points