CSD201 PE INSTRUCTIONS
Read the instructions below carefully before start coding.
Students are ONLY allowed to use:
Materials on his/her computer (including JDK, NetBeans).
For distance learning: Google Meet, Hangout (for Exam Monitoring Purpose).
Follow the steps below to complete PE:
1. Create a folder to save given projects, e.g. CSD_given (1). Download the given materials to (1).
2. Complete the requirements of the test.
3. Before submission:
Clean and Build Project (Shift+F11),
Then rename the folder dist to run. (If the folder run already exists, delete it before renaming).
4. Submission:
Zoom
To submit the project Q1, at first you must select the Question No: 1
Browse and select the project folder (e.g. Q1, or Q1A, or Q2, ...)
Then click the Submit button.
5. Do not use accented Vietnamese when writing comments in programs.
6. Do not add new import statement(s) to given files.
7. Software tools must be used: NetBeans IDE 8.x and Java JDK 1.8.
If at least one of the above requirements is not followed, the exam will get ZERO.
Notes:
The input and expected output below are only used to test your codes.
The input and expected output in the real testcases (for marking) are different with in the examples below.
Do not hardcode with the given expected results.
Troubleshooting:
If the given project (e.g. Q1) runs with error, you need to run "Clean and Build Project" (Shift+F11). If still error, try to rename or copy the project to other one, e.g. from Q1 to Q1X or Q1Y.
Questions: (10 marks)
The given files already contain statements to implement a program for managing a Hotel. The structure of
the main classes:
Class Room: contains information about a Room object, including:ocode (001, 002, 003, ...)
o status: is 0 (if the Room is empty/available), or 1 (if there is/are customer(s) in the
Room)
homberofaecale continabusing this Doom
+ 100%
Close