• 沒有找到結果。

2Requirements 1Description Homework#1

N/A
N/A
Protected

Academic year: 2022

Share "2Requirements 1Description Homework#1"

Copied!
2
0
0

加載中.... (立即查看全文)

全文

(1)

Object Oriented Software Design (NTU, Class Even, Fall 2008) instructor: Hsuan-Tien Lin

Homework #1

TA in charge: Weichih Hwang RELEASE DATE: 02/24/2009 DUE DATE: 03/10/2009, 14:20

As directed below, you need to upload your submission file to the designated place on the course website.

Any form of cheating, lying, or plagiarism will not be tolerated. Students can get zero scores and/or fail the class and/or be kicked out of school and/or receive other punishments for those kinds of misconducts.

Discussions on course materials and homework solutions are encouraged. But you should write the final solutions alone and understand them fully. Books, notes, and Internet resources can be consulted, but not copied from.

Since everyone needs to write the final solutions alone, there is absolutely no need to lend your homework solutions and/or source codes to your classmates at any time. In order to maximize the level of fairness in this class, lending and borrowing homework solutions are both regarded as dishonest behaviors and will be punished according to the honesty policy.

Both English and Traditional Chinese are allowed for writing any part of your homework (if the compiler recognizes Traditional Chinese, of course). We do not accept any other languages.

1 Description

The POO BBS is starting its Christmas celebration. You, as its core programmer, want to paint a Christmas Tree on the login page. That is, before starting the login process, the system will show something like

*

***

*****

*******

*********

***********

*************

by b86506054 Hsuan-Tien Lin Welcome to POO BBS. Merry Christmas.

To make our first work simple, we assume that your tasks stop here. Write a Java program that does the tasks above. An empty shell of your program should look like

public class POOLoginPage {

public static void main(String[] args) { //start your own code here

} }

2 Requirements

• Read the relevant Java API documents on System.out.

• Generate the Christmas Tree with a loop dynamically instead of using stored String constants.

• Show the by b86506054 Hsuan-Tien Lin string. Replace the contents with your own school ID and name.

• Show the welcome message.

1 of 2

(2)

Object Oriented Software Design (NTU, Class Even, Fall 2008) instructor: Hsuan-Tien Lin

• Write some comments for your code, and generate the document with javadoc. In your comments, explain what future programmers need to change if they want a Christmas Tree with a different height.

Other than the basic tasks above, you can use your creativity to design a better login page. For instance, you do not really need to use English in your messages/comments.

3 Submission File

Please upload a single ZIP encrypted file to CEIBA. The zip file should be like b86506054.zip, where the file name should be changed to your own school ID. The ZIP file should contain the following items:

• POOLoginPage.java, which is your source code

• POOLoginPage.class, which is the compiled from POOLoginPage.java

• doc/*, which is the file generated from javadoc -d doc/ POOLoginPage.java

• README, which contains directions on how to compile your file

2 of 2

參考文獻

相關文件

Since everyone needs to write the final solutions alone, there is absolutely no need to lend your homework solutions and/or source codes to your classmates at any time.. In order

Since everyone needs to write the final solutions alone, there is absolutely no need to lend your homework solutions and/or source codes to your classmates at any time.. In order

Since everyone needs to write the final solutions alone, there is absolutely no need to lend your homework solutions and/or source codes to your classmates at any time.. In order

In this homework, you are asked to implement k-d tree for the k = 1 case, and the data structure should support the operations of querying the nearest point, point insertion, and

Since everyone needs to write the final solutions alone, there is absolutely no need to lend your homework solutions and/or source codes to your classmates at any time.. In order

Since everyone needs to write the final solutions alone, there is absolutely no need to lend your homework solutions and/or source codes to your classmates at any time.. In order

Since everyone needs to write the final solutions alone, there is absolutely no need to lend your homework solutions and/or source codes to your classmates at any time.. In order

Use your MATLAB codes with various time steps (e.g., of the form 2 −k ) to see whether the results of your numerical experiments correspond to the theory.. Present your results in