Question: Seating Exam Write the code for the following GUI in Figure 1 . The GUI is produced to manage student seating for the MCQ exam.

Seating Exam
Write the code for the following GUI in Figure 1. The GUI is produced to manage student
seating for the MCQ exam. The instructor will assign seats according to the number of MCQ
exam students. This system involves student and chair objects. The input data is from the
console, and the object is created based on the input data. The instructor will input the
students' data and the chair number (figure 2). If the chair number already sets to another
student, an error message will be displayed on the console (figure 3). The instructor can view
the student's assigned seat by clicking the button of each chair on the GUI display, as shown
in Figure 4.(Set frame size 600,350).
Figure 1
Figure 2
Enter the number of students :
2
Name :
Ali Abu Bakar
Matric Number :
A123456
Choose the chair number (1-20) :
1
Name :
Siti Asiah
Matric Number :
A145667
Choose the chair number (1-20) :
1
Another student is already set to the chair
Figure 3
n Student In The Chair w
Subsom Alocaton For Mca Exam
Chair =1: Emph
Chair *2 Studert: Ahmed Dhani (A123456) is harg,
Chair w5? Student: Lim Kuan Mend (K179996) is here.
Chair wa: Student: Aminah Abu Bakar (A.145778) is here
Char wa. Emple
Figure 4
Seating Exam Write the code for the following GUI

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!