count = [17 18 20 23 24];

figure(1);
pie(count, {'1', '2', '3', '4', '5'});
title('Figure 2.3: Pie Chart A');

figure(2);
bar(1:5,diag(count),'stacked');
title('Figure 2.3: Bar Chart A');

count = [20 20 19 21 20];

figure(3);
pie(count, {'1', '2', '3', '4', '5'});
title('Figure 2.3: Pie Chart B');

figure(4);
bar(1:5,diag(count),'stacked');
title('Figure 2.3: Bar Chart B');

count = [23 22 20 18 17];

figure(5);
pie(count, {'1', '2', '3', '4', '5'});
title('Figure 2.3: Pie Chart C');

figure(6);
bar(1:5,diag(count),'stacked');
title('Figure 2.3: Bar Chart C');
