create program on eclips java

profileGhost90
scan1.pdf

eose 210 -Object Oriented and GUI Programming Assignment 3 Problem Statement

Bulletin boards/forums, such as the forums on moodle, provide a means for individuals to ask questions in the form of a post. Others may then post replies to the initial post, and/or to other replies. All communication in a forum is typically performed on-line and recorded. For this assignment it is desired to provide reports of all communication that has been recorded in a forum. Since the report is to be printed on paper that has a fix width, the text of a post needs to be printed in a word wrapped format. Furthermore, replies need to be printed with 4 space indentation to the parent post.

Develop classes to represent forums, posts, and members. A forum is to have a short one line title to the forum, and the member owning the forum. Have the constructor for a member consists of ONE argument which is the member's full name (i.e., first name followed by middle initial and then last name). A post contains a subject line, content (which can be a very long string of text), the member creating the post, and the date/time of the post.

In your forum class provide two print methods, one to print a summary of posts and the other to print the entire contents. A sample for the report produced by the summary of posts is as follows:

Assignment Discussion Forum Summary Report

Owned by: David T Smith No Discussions: 3

Discussions By #Rs On

o or blank BTJ Problems with formatting. CJH Reminder - javadoc and format DTS

3 1 o

2/16 /15 08: 30pm 2/12/15 01: 52pm 2/07/15 04:59pm

For this report: • The number of columns is 50. • The title for the forum is to be printed in the center of the page. • If needed, truncate the length of the subject line of a post to 30 characters. • The first By is the initials of the member making the post. • #Rs is the total number of replies in response to this post (includes nested replies) • The On is the date and time of the initial post. • This report does not show the replies themselves.