Results 1 to 2 of 2
  1. #1
    Vinny is offline Member
    Join Date
    Jul 2009
    Rep Power

    Default Could someone help me to solve this problem...

    Hi all,

    As you can all see I am new in Java. I have a task which needs to be completed by Friday. Could someone help me please to solve this problem and have a solution as well.

    This is only for my gain to learn Java, and does not envolve any academic gains at all.

    Your help is masivele appreciated!!!

    ========= Domain problem scenario ===========

    Task: Given input file A, translate the content to produce output file B

    File A: Consists of multiple lines of data whereby each line is of form
    X;1.9,2;3,4.3; 5,6

    Output file B, should consists of one line per shape and should be formatted as follows.
    Shape[TRIANGLE], Points[[[3.0,3.0], [5.0, 8.0], [8.0,4.0]]], Area[9.0]

    This should be supporting 4 shape types: Circle, Square, Triangle, Rectangle.

    This should demonstrate OO principle and use Factory design patten and Unit tests.

    Note: Input File A has these cartisean coordinates which have to be read;

    t: 3,3; 5,8; 7,4
    s:-1,-6; -1,-3; 2, -3; -2, -6
    c: -4, -3; -2,-1
    r:-1,1;4,1; -5; -1,-5

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Blog Entries
    Rep Power


    Regardless if this is for academic gain or not, you will gain more by doing as much as possible yourself and then asking us as specific a question as possible. On that note, please post your best attempt at a solution, and let's work from there. Best of luck.

Similar Threads

  1. help to solve tis problem in method
    By alrebatsd in forum New To Java
    Replies: 4
    Last Post: 06-07-2009, 03:35 PM
  2. Help me to solve problem
    By mansoorhacker in forum Forum Guides
    Replies: 8
    Last Post: 01-24-2009, 07:29 PM
  3. Factory problem: How to Solve it
    By rahul_capricorn in forum New To Java
    Replies: 2
    Last Post: 01-14-2009, 02:17 PM
  4. Solve my Problem
    By kyo in forum New To Java
    Replies: 1
    Last Post: 12-16-2008, 03:22 PM
  5. Help me to solve problem
    By mansoorhacker in forum New To Java
    Replies: 3
    Last Post: 11-13-2008, 09:15 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts