Question: Write a program that displays the number of students in each department in a pie chart and a bar chart, as shown in Figure 32.27b.
Write a program that displays the number of students in each department in a pie chart and a bar chart, as shown in Figure 32.27b. The number of students for each department can be obtained from the Student table (see Figure 32.4) using the following SQL statement:


select deptId, count(*) from Student where deptId is not null group by deptId;
Step by Step Solution
3.49 Rating (172 Votes )
There are 3 Steps involved in it
Program Plan Create a class ChartModel which has properties as subjectId and count of people in the subject Create methods in this class to add an ActionListener remove an ActionListener and execute a... View full answer
Get step-by-step solutions from verified subject matter experts
