Exam Question – Professional TestNumber: #1Test topic: Java PracticeTe dịch - Exam Question – Professional TestNumber: #1Test topic: Java PracticeTe Việt làm thế nào để nói

Exam Question – Professional TestNu

Exam Question – Professional Test
Number: #1
Test topic: Java Practice
Test duration: 180 minutes
Test guides: develop an application as described below, package your outputs (the required ones are listed as below) into a zip file (named as “Java Practice Test Package_YouAccountName.zip”) and copy to the pre-defined server folder (provided by the test supervisor)
1. Full source codes; the codes should be prepared and built on JDK, Eclipse, deployed on Tomcat and should include all files necessary to build
2. Main screen shots of your own written application
3. Comments (and Design diagrams, if any) to explain the design decisions made (use a separate covering note if necessary)
Please use the HSQL as the database for the application, some guides on HSQL are as below:
1. Lấy file hsqldb.jar (cung cấp bởi người trông thi) copy vào thư mục WEB-INF/lib của project, add file đó vào classpath.
2. Driver class cho HSQL là: org.hsqldb.jdbcDriver
3. URL để connect vào chế độ in-memory là: jdbc:hsqldb:mem:sampledb (trong đó "sampledb" có thể thay bằng một tên tùy ý)
4. Default username là "sa", password trống
5. Nếu muốn đọc thêm, có thể xem document trong file « HSQL User Guide.pdf »
Project description:
Write classes to represent 3 different types of Animal – Dog, Rabbit, Fish
Each Animal has a boolean Hungry property, which is not writable externally and upon creation is set to a random value.
Each Animal has an Eat() method that takes a single string parameter as the name of the food that each animal eat. An Animal can’t eat if it isn’t one of the 3 types Dog, Rabbit, or Fish.
Each Animal will eat only if it is hungry;
- Dog can only eat meat, Rabbit can only eat plant, where Fish can eat both.
- After eating, the Animal will not be hungry anymore.
Define a new class named Food which contains the name and the type of food that Animal will eat; there are only two types of food, include “meat” and “plant”.
Your application will generate 10 foods randomly (with random values for the name and the type of food), those foods will be stored in the database; the user interface should show:
- An “Eat” command.
- Two lists of data which allow user to choose the relevant Animal and Food before or after “Eat” command:
o One is a fixed list with 3 values “Dog”, “Rabbit”, and “Fish”;
o Another is the list of the food names which are loaded from the database.
When the user “raises” an “Eat” command to a specific Animal on a specific Food, one of below three messages would be shown:
- “Sorry, I can’t eat this food”: in case the chosen Animal can’t eat the selected Food.
- “Thanks, I’m full already!”: in case the chosen Animal can eat the selected Food but it isn’t hungry.
- “OK, I’m eating now...”: in other cases

Technical Requirements:
1. Using Object-Oriented programming style.
2. Use only core Java functions and classes.
3. Naming using Fsoft’s standard Java coding convention, you are provided this document.
4. Remember to comment each class, methods, and members.
5. Your application should be Web-base application, apply Struts framework to your application (AND/OR).
6. Use JDBC for working with the database; the HSQL as the database for the application
7. You would get extra point for the cases when you draw a class diagram.
0/5000
Từ: -
Sang: -
Kết quả (Việt) 1: [Sao chép]
Sao chép!
Exam Question – Professional TestNumber: #1Test topic: Java PracticeTest duration: 180 minutesTest guides: develop an application as described below, package your outputs (the required ones are listed as below) into a zip file (named as “Java Practice Test Package_YouAccountName.zip”) and copy to the pre-defined server folder (provided by the test supervisor)1. Full source codes; the codes should be prepared and built on JDK, Eclipse, deployed on Tomcat and should include all files necessary to build2. Main screen shots of your own written application3. Comments (and Design diagrams, if any) to explain the design decisions made (use a separate covering note if necessary)Please use the HSQL as the database for the application, some guides on HSQL are as below:1. Lấy file hsqldb.jar (cung cấp bởi người trông thi) copy vào thư mục WEB-INF/lib của project, add file đó vào classpath.2. Driver class cho HSQL là: org.hsqldb.jdbcDriver3. URL để connect vào chế độ in-memory là: jdbc:hsqldb:mem:sampledb (trong đó "sampledb" có thể thay bằng một tên tùy ý)4. Default username là "sa", password trống5. Nếu muốn đọc thêm, có thể xem document trong file « HSQL User Guide.pdf »Project description:Write classes to represent 3 different types of Animal – Dog, Rabbit, FishEach Animal has a boolean Hungry property, which is not writable externally and upon creation is set to a random value.Each Animal has an Eat() method that takes a single string parameter as the name of the food that each animal eat. An Animal can’t eat if it isn’t one of the 3 types Dog, Rabbit, or Fish.Each Animal will eat only if it is hungry; - Dog can only eat meat, Rabbit can only eat plant, where Fish can eat both.- After eating, the Animal will not be hungry anymore.Define a new class named Food which contains the name and the type of food that Animal will eat; there are only two types of food, include “meat” and “plant”.Your application will generate 10 foods randomly (with random values for the name and the type of food), those foods will be stored in the database; the user interface should show:- An “Eat” command. - Two lists of data which allow user to choose the relevant Animal and Food before or after “Eat” command: o One is a fixed list with 3 values “Dog”, “Rabbit”, and “Fish”; o Another is the list of the food names which are loaded from the database.When the user “raises” an “Eat” command to a specific Animal on a specific Food, one of below three messages would be shown:- “Sorry, I can’t eat this food”: in case the chosen Animal can’t eat the selected Food. - “Thanks, I’m full already!”: in case the chosen Animal can eat the selected Food but it isn’t hungry.- “OK, I’m eating now...”: in other casesTechnical Requirements:1. Using Object-Oriented programming style.2. Use only core Java functions and classes.3. Naming using Fsoft’s standard Java coding convention, you are provided this document.4. Remember to comment each class, methods, and members.5. Your application should be Web-base application, apply Struts framework to your application (AND/OR). 6. Use JDBC for working with the database; the HSQL as the database for the application7. You would get extra point for the cases when you draw a class diagram.
đang được dịch, vui lòng đợi..
Kết quả (Việt) 2:[Sao chép]
Sao chép!
Câu hỏi thi - Kiểm tra Professional
Số: # 1
chủ đề Test: Java Thực hành
thử nghiệm Độ dài: 180 phút
thi hướng dẫn: phát triển một ứng dụng như mô tả dưới đây, gói đầu ra của bạn (những người cần được liệt kê như dưới đây) vào một file zip (được đặt tên là "Java Thực hành thử nghiệm Package_YouAccountName.zip ") và copy vào thư mục máy chủ được xác định trước (được cung cấp bởi người giám sát kiểm tra)
1. Mã nguồn đầy đủ; các mã nên được chuẩn bị và xây dựng trên JDK, Eclipse, triển khai trên Tomcat và nên bao gồm tất cả các file cần thiết để xây dựng
2. Ảnh chụp màn hình chính của ứng dụng bằng văn bản của riêng bạn
3. Comments (và sơ đồ thiết kế, nếu có) để giải thích các quyết định thiết kế được thực hiện (sử dụng một lưu ý phủ khác nếu cần)
Vui lòng sử dụng HSQL như cơ sở dữ liệu cho các ứng dụng, một số hướng dẫn về HSQL như dưới đây:
1. Lấy tập tin hsqldb.jar (cung cấp bởi người trông thi) sao chép vào thư mục WEB-INF / lib of dự án, thêm file into classpath.
2. Điều khiển lớp cho HSQL là: org.hsqldb.jdbcDriver
3. URL to kết nối vào chế độ trong bộ nhớ là: jdbc: HSQLDB: mem: sampledb (in which "sampledb" you can change with a tên tùy ý)
4. Mặc định username là "sa", mật khẩu trống
5. If you want to read more, you can xem tài liệu file trong «HSQL tài Guide.pdf»
Dự án Mô tả:
Viết các lớp học để đại diện cho 3 loại khác nhau của động vật - Chó, Thỏ, Cá
Mỗi động vật có một tài sản Hungry boolean, mà không ghi bên ngoài và khi tạo được đặt vào một giá trị ngẫu nhiên.
Mỗi động vật có một phương pháp ăn () mà phải mất một tham số chuỗi duy nhất là tên của thực phẩm mà mỗi con vật ăn. Một vật không thể ăn nếu nó không phải là một trong 3 loại Chó, Thỏ, hoặc cá.
Mỗi con vật chỉ ăn nếu nó là đói;
- Chó chỉ có thể ăn thịt, Thỏ chỉ có thể ăn thực vật, nơi mà cá có thể ăn . cả
- Sau khi ăn, các động vật sẽ không đói nữa.
Định nghĩa một lớp mới tên là thực phẩm trong đó có các tên và các loại thực phẩm mà con vật sẽ ăn; chỉ có hai loại thực phẩm, bao gồm "thịt" và "thực vật".
ứng dụng của bạn sẽ tạo ra 10 loại thực phẩm ngẫu nhiên (với các giá trị ngẫu nhiên cho các tên và các loại thực phẩm), những loại thực phẩm sẽ được lưu trữ trong cơ sở dữ liệu; giao diện người dùng nên cho thấy:
-. An "Ăn" lệnh
- Hai danh sách dữ liệu cho phép người dùng lựa chọn các động vật có liên quan và thực phẩm trước khi hoặc sau khi "ăn" lệnh:
o Một là một danh sách cố định với 3 giá trị "Dog", " Rabbit ", và" Fish ";
. o Một là danh sách những cái tên thực phẩm mà được nạp từ các cơ sở dữ liệu
khi người dùng "nâng" an "ăn" lệnh để một vật cụ thể về một thực phẩm cụ thể, một trong ba thông điệp dưới đây sẽ được hiển thị:
- "Xin lỗi, tôi không thể ăn thực phẩm này":. trong trường hợp động vật được lựa chọn không thể ăn các thực phẩm được lựa chọn
- "Cảm ơn, tôi là đầy đủ rồi đấy!": trong trường hợp động vật được lựa chọn có thể ăn được lựa chọn Thực phẩm nhưng nó không đói.
- "OK, tôi ăn bây giờ ...": trong các trường hợp khác Yêu cầu kỹ thuật: 1. Sử dụng phong cách lập trình hướng đối tượng. 2. Chỉ sử dụng các chức năng cốt lõi Java và các lớp học. 3. Đặt tên sử dụng tiêu chuẩn quy ước mã hóa Java của Fsoft, bạn được cung cấp tài liệu này. 4. Ghi nhận xét ​​từng lớp, phương pháp, và các thành viên. 5. Ứng dụng của bạn nên được ứng dụng Web-base, áp dụng khung Struts để ứng dụng của bạn (AND / OR). 6. Sử dụng JDBC để làm việc với cơ sở dữ liệu; các HSQL như cơ sở dữ liệu cho các ứng dụng 7. Bạn sẽ có được thêm điểm cho các trường hợp khi bạn vẽ một sơ đồ lớp.









đang được dịch, vui lòng đợi..
 
Các ngôn ngữ khác
Hỗ trợ công cụ dịch thuật: Albania, Amharic, Anh, Armenia, Azerbaijan, Ba Lan, Ba Tư, Bantu, Basque, Belarus, Bengal, Bosnia, Bulgaria, Bồ Đào Nha, Catalan, Cebuano, Chichewa, Corsi, Creole (Haiti), Croatia, Do Thái, Estonia, Filipino, Frisia, Gael Scotland, Galicia, George, Gujarat, Hausa, Hawaii, Hindi, Hmong, Hungary, Hy Lạp, Hà Lan, Hà Lan (Nam Phi), Hàn, Iceland, Igbo, Ireland, Java, Kannada, Kazakh, Khmer, Kinyarwanda, Klingon, Kurd, Kyrgyz, Latinh, Latvia, Litva, Luxembourg, Lào, Macedonia, Malagasy, Malayalam, Malta, Maori, Marathi, Myanmar, Mã Lai, Mông Cổ, Na Uy, Nepal, Nga, Nhật, Odia (Oriya), Pashto, Pháp, Phát hiện ngôn ngữ, Phần Lan, Punjab, Quốc tế ngữ, Rumani, Samoa, Serbia, Sesotho, Shona, Sindhi, Sinhala, Slovak, Slovenia, Somali, Sunda, Swahili, Séc, Tajik, Tamil, Tatar, Telugu, Thái, Thổ Nhĩ Kỳ, Thụy Điển, Tiếng Indonesia, Tiếng Ý, Trung, Trung (Phồn thể), Turkmen, Tây Ban Nha, Ukraina, Urdu, Uyghur, Uzbek, Việt, Xứ Wales, Yiddish, Yoruba, Zulu, Đan Mạch, Đức, Ả Rập, dịch ngôn ngữ.

Copyright ©2024 I Love Translation. All reserved.

E-mail: