ࡱ> @B?[ }bjbj -ΐΐ}   &;;;;;N&P&P&P&P&P&P&$),8t&t&;;&   ";;N& N&  %h&;`µbw8%:&&0&&,R, &,&$ t&t& &, : CPSC 315 Programming Studio Individual Assignment 1 : Reading, Storing, and Presenting Information Due February 3, 2009 5:00 p.m. This assignment counts for 10% of your overall grade. The assignment is to be implemented in JAVA. You will be given an input file that lists information about people engaging in activities as part of a particular online community. The community allows people to play a variety of games, and each time a person completes a game, they get points to spend in the communitys virtual world. Each line of the file indicates either that a person has joined the community, or that a person has completed one of the games. People can get points for playing a game more than once. You are to read in the input file, and produce a set of HTML profiles for each player and each game with an index page (index.html) linking to each profile. The profiles for each user should include (at a minimum): the user's name, when the user joined, what games the user has completed, and how many points the user has. The profiles for each game should include (at a minimum): the game's name, how many points a community member earns for completing it, and who has completed the game. In addition to the HTML profiles you must create a separate application with a simple graphical user interface to allow a user to query information about the games. Examples of these queries would be: Given a users name, give a user report including things like a list of the games that person has completed, the persons join date, how many points the person has accumulated, etc. Given a game, find all users who have completed the game List all users/games Get overall statistics regarding number of users, number of games completed, etc. Anything else you can think of (try to add one or two other simple things) Since the application will gather similar information from the log file for the HTML profiles and queries remember to write your code with reusability in mind. The input file itself will contain lines with one of the two formats: For the first type of input line, the username will be a unique name of no more than 8 alphanumeric characters, starting with a letter. The date will be of the form MM/DD/YYYY. Action will be either the string JOIN if it is the date the person joins the community, or else will be the name of a game (game names may be up to 40 characters long). For the second type of input line, information about a game is given, including the number of points the game is worth (a positive integer) and the name of the game. The file will end with a line: 0 END Lines may be in any order. Only players who have joined will have ever completed games. An example input file would be: Keyser 01/01/1994 JOIN JimBob 03/13/2004 Super Fun Game JimBob 10/12/2000 JOIN Keyser 05/05/2005 Not So Fun Game Keyser 07/07/2007 Super Fun Game 10 Not So Fun Game 40 Super Fun Game 0 END Your grade will be determined primarily by how well you follow good naming, layout, and commenting practices. Specifically, 40% of the grade will be determined based on whether the program works, while 60% of the grade will be based on how well you communicate with the code. Deliverables: HTML index page and profiles Querying application w/GUI (Graphical User Interface) m; F x    m v '(8NPpr|}h h ^Jh OJQJ^Jh h B*^Jph hB[^Jh h 5^J h ^J h 5^Jh;rh 56^J(8 ;     > \    & F   & F   & F gdB[  & F   & F  gd  gd t]y8Pr^gd ^  & F (F|} ^gd  & F gd  & F +;0/ =!n"7#7$7%77 ^ 666666666vvvvvvvvv66666686666666666666666666666666666666666666666666666666hH6666666666666666666666666666666666666666666666666666666666666666662 0@P`p2( 0@P`p 0@P`p 0@P`p 0@P`p 0@P`p 0@P`p8XV~_HmH nHsH tHb`b Normal VVVV*$1$]V^VOJPJQJ_HmH sH tH^AR^  Heading 1@& & F & F5CJ0OJPJQJ\^JaJ0DA D Default Paragraph FontViV 0 Table Normal :V 44 la (k ( 0No List </< Endnote Characters>/> Footnote Characters6U 6  Hyperlink >*B* ph>/!> BulletsCJOJPJQJ^JaJ:/1: Numbering SymbolsNRN Heading $CJOJ PJQJ ^JaJNB@RN  Body Text"]^`$/Qb$ ListD"rD Caption xx $6CJ]aJ** Index $^R^ Horizontal Line"$d%d&d'dCJ F%F Envelope Return 68Q8 Table Contents6 6 Footer (% $66 Header (% $PK![Content_Types].xmlj0Eжr(΢Iw},-j4 wP-t#bΙ{UTU^hd}㨫)*1P' ^W0)T9<l#$yi};~@(Hu* Dנz/0ǰ $ X3aZ,D0j~3߶b~i>3\`?/[G\!-Rk.sԻ..a濭?PK!֧6 _rels/.relsj0 }Q%v/C/}(h"O = C?hv=Ʌ%[xp{۵_Pѣ<1H0ORBdJE4b$q_6LR7`0̞O,En7Lib/SeеPK!kytheme/theme/themeManager.xml M @}w7c(EbˮCAǠҟ7՛K Y, e.|,H,lxɴIsQ}#Ր ֵ+!,^$j=GW)E+& 8PK!Ptheme/theme/theme1.xmlYOo6w toc'vuر-MniP@I}úama[إ4:lЯGRX^6؊>$ !)O^rC$y@/yH*񄴽)޵߻UDb`}"qۋJחX^)I`nEp)liV[]1M<OP6r=zgbIguSebORD۫qu gZo~ٺlApl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^JaJ^`CJOJQJ^JaJII^I`CJOJQJ^JaJ  ^ `CJOJQJ^JaJ  ^ `CJOJQJ^JaJ^`CJOJQJ^JaJUU^U`CJOJQJ^JaJ^`CJOJQJ^JaJ^`CJOJQJ^JaJ^`CJOJQJ^JaJ^`CJOJQJ^JaJII^I`CJOJQJ^JaJ  ^ `CJOJQJ^JaJ  ^ `CJOJQJ^JaJ^`CJOJQJ^JaJUU^U`CJOJQJ^JaJ^`CJOJQJ^JaJ^`CJOJQJ^JaJ^`.^`.II^I`.  ^ `.  ^ `.^`.UU^U`.^`.^`.^`^`^`^`^`^`^`^`^`;r B[}  @@U} X@Unknown G*Ax Times New Roman5Symbol3. *Cx Arial7. [ @Verdana?= *Cx Courier New[ ThorndaleTimes New Roman]HG Mincho Light JmsminchoI. ??Arial Unicode MS_ StarSymbolArial Unicode MSA&AlbanyArialA BCambria MathBAhrf+|цQ-z z !20w w 2QHP $PB[! xxshipman      Oh+'0d    , 8DLT\Normalshipman3Microsoft Office Word@xA@pSc>@VRv@rbwz ՜.+,0 hp|  w   Title  !"#$%&'()*+,-.012345689:;<=>ARoot Entry F pĵbwCData 1Table,WordDocument-SummaryInformation(/DocumentSummaryInformation87CompObjy  F'Microsoft Office Word 97-2003 Document MSWordDocWord.Document.89q