” EBU4201语言编程 辅导、 写作Java程序EBU4201 Introductory Java Programming (2020/21) Page 1 of 6School of Electronic Engineeringand Computer ScienceMini-Project Coursework: A workshop check in using Java programModule code: EBU4201Module title: Introductory Java ProgrammingHand-out date: 17th May 2021Hand-in date: 4th June 2021Marks available: 50Feedback: Individual marking sheet including feedback comments and a mark out of 50.Introduction:You are asked to write a Java program that handles a check in process for a workshop event. Atotal of 30 participants have registered for the workshop. Participants use the check in programin order to be successfully enrolled onto the Workshop event. The development of the Javaprogram includes the following two phases:a. Developing the interfaceb. Improving the interface interactivityEBU4201 Introductory Java Programming (2020/21) Page 2 of 6a. Developing the interfaceTask 1 [14 marks]Once the program is launched with the command java CheckIn, the interface should looklike in Figure 1:Figure 1Your task: Complete the Java Graphical User Interface (GUI) as shown Figure 1 for theexpected look of the interface. See the notes below for details.1) Create the class file named as MyFrame.java to design the GUI;2) Create the main class file CheckIn.java as the entry point to the Java application;3) Use GridLayout to arrange the GUI components in rows and column such that introws = 9, column = 1;4) Create instances of JFrame and JPanel to make a frame and panels;5) Make widgets in the interface using JLabel, JTextField, JComboBox, JCheckBoxand JButton.6) Four JComboBox accept the Array of strings such that:i) Date of birth (month) from January to December;ii) Date of birth (year) from year 1998 to 2005;iii) Programme all available BUPT Undergraduate courses;iv) Programme (year) from year 1 to 4.7) When the JButton Clear is clicked, the program will erase the entered information;8) When the JButton Exit is clicked, the program will exit;EBU4201 Introductory Java Programming (2020/21) Page 3 of 69) The JButton Next step is placed as a placeholder for Task 1 and more instructionsare available in Task 2.Note: You do not require to record the information and Task 1 is just about building the GUI.Task 2 [12 marks]Once the user clicks on the Next step button from the Figure 1, your interface should look likein Figure 2. This is where the user completes the check in progress.Figure 2Your task: Complete the GUI as shown in Figure 2 when the JButton Next step is clicked.See the notes below for details.1) Create the class file named as AnotherFrame.java to design the GUI;2) Use BorderLayout to hold components in three regions: NORTH, CENTER and SOUTH.3) Create instances of JFrame and JPanel to make a frame and panels;4) Make widgets in the interface using JLabel, JTextArea and JButton.5) The JTextArea in the middle panel displays the information entered by the user fromMyFrame.java.6) When the JButton Finish is clicked, the program will exit.7) You need to store the information in an Array once the users input information isobtained successfully.b. Improving the interface interactivityNow that the GUI design is completed. The Java program, however, needs severalimprovements to enhance the end users experiences in using the program.Task 3 [12 marks]Your task: The Java program should now ensure the user completes the requested informationso that the check in process can be completed successfully. As an example, as shown in Figure3a, when a user does not provide the email address information:1) an error dialog box will display prompting the user to complete the missing information(see the left panel of Figure 3a);2) The incomplete session is highlighted in red so that user can easily check the missinginformation to be completed (see the right panel pf Figure 3a);EBU4201 Introductory Java Programming (2020/21) Page 4 of 63) The Java program now will not proceed to the check in completion stage(AnotherFrame.java), as the information is/are incomplete;4) Your program should also Prompt the user to complete the missing information for otherparts (including the CheckBox).Figure 3a5) If all the information is entered by the user, your program should pop-up a dialog boxas shown in Figure 3b to confirm with the user for the final confirmation before thecheck in process is completed.Figure 3bHint:1. You need to import the class JOptionPane of the javax.swing package to make thestandard message dialog box.EBU4201 Introductory Java Programming (2020/21) Page 5 of 6Documentation [12 marks]Your submitted work must include:a. Automatically generated Javadoc files.b. Comments (both internal and Javadocs) in your code.c. User Manual; this should be a document1 with no more than two A4 pages which mustinclude instructions on how to run the program (i.e. both how to start it, and how to use it).Note: All documentation files must be placed in a directory called Documentation.Marking SchemeMarks will be awarded for the following:1. a clearly laid out interface2. correctly functioning code3. clearly structured code including comments and sensible variable, class, and method names4. you should NOT use any other Java packages except .awt, .swing and .util packages5. properly designed classes following object-oriented principles. E.g. do NOT writeeverything in the main method, keep code repetition to a minimum (i.e. use methods), doNOT use static methods unless there is a good reasonNote 1: The main program file must be called CheckIn.java, and it must compile and runfrom the command line; Otherwise, it will NOT be possible to give marks for any implementedfunctionality.Note 2: OpenJDK 15 must be used, as instructed in Teaching Block 1 (click here for moreinformation).Note 3: All documentation files should be placed in a directory called Documentation.1 Accepted document formats include: .txt, .docx and .pdf.EBU4201 Introductory Java Programming (2020/21) Page 6 of 6Submission InstructionsYou must zip all the following files:1. The directories created from Task 1 to Task 3 including all .java files produced2.2. The Documentation directory, including all Javadoc comments and the User Manual.Notes: You must name your .zip file 201921xxxx.zip, where 201921xxxx is your BUPT studentnumber. You must submit your .zip file to the EBU4201 course area in QMplus 3 , under theassignment activity Mini-Project (submission).IMPORTANT: This is an individual piece of assessed coursework; therefore, students mustNOT work in groups and must not share code solutions. Students must not post (partial) codesolutions when asking questions About the Mini-Project in QMplus.2 It will not be possible to mark your work if you only provide .class files.3 Any work sent via email will be ignored and not marked.请加QQ:99515681 或邮箱:99515681@qq.com WX:codehelp
“
添加老师微信回复‘’官网 辅导‘’获取专业老师帮助,或点击联系老师1对1在线指导。