Results 1 to 9 of 9
  1. #1

    Default NetBeans 6.5.1 running on a Linux platform for the development of C++ applications;


    Help!!! Nawala ko sa ako code: hehehe
    tabang please...

    Here's the start, if anyone can help, ill appreciate it and will maybe give you comission....
    The aims of this assignment are to:

    • Provide experience in the use of a modern Integrated Development Environment (specifically NetBeans 6.5.1 running on a Linux platform) for the development of C++ applications;
    • Provide additional experience in the design and implementation of simple C++ classes;
    • Introduce the "Test Driven Development" style for program development;
    • Use program testing tools including unit testing (cppUnit)

    Objectives
    The assignment involves implementing “Screen Scraping” application. You are required to create a class which parses a web page generated from the Yahoo! financial web page (http://finance.yahoo.com) for specific information about the market indices, including the Dow Jones, FTSE, etc. This will require the class to do selective parsing, much like screen scraping, of the html page. The page will be assumed saved in a file prior to parsing by the class. At the same time, you are to generate unit tests for the class, according to the test-driven development paradigm (TDD) as introduced in the lecture notes. You are to submit the implemented class, unit tests and a short report on the experience of using TDD. The primary development language would be C++ using Netbeans 6.5.1 IDE. On completion of this assignment you should be able to:

    • Make effective use of an IDE for C++ development.
    • Develop a simple project in "test driven development" style.
    • Utilize the cppUnit unit test framework to run test suites on new components of application code;

    Task details
    You are to use a “test driven” approach to create a simple Screen Scraping program that will extract “relevant info” from a raw HTML file saved from an instance of Yahoo!'s financial web page Yahoo! Finance - Business Finance, Stock Market, Quotes, News. The system may consist of one or more search engines that will extract the desired information. The intended users are programs which will use this code, much like a component in a larger program.
    Functional Requirements

    1. The system is to parse plain text (.txt) or HTML (.htm and .html) files and extract “relevant info” from the text in a selected file.
    · HTML files can be handled either by invoking a utility application that strips the HTML markup tags from the file’s content leaving just content text (there are several such utilities available for Linux environments), or simply by extracting relevant info based on searching certain key words such as “<h1>”, id attributes, from the html file.
    2. You will need to implement a number of classes. For this assignment you can identify at least two application specific classes – MatchPattern and Parser. (You can if you wish undertake your own design for the application; you might create a different set of classes.) In addition to application specific classes, you will need some standard classes from the STL and iostream libraries. Of course, there is no need for you to do any testing of such standard classes.
    3. The document file that is to be processed will be specified in input given to the system (either on the command line, or as response to a prompt from the system).
    4. The eventual “relevant info” can either be saved into a file or displayed on screen after executing the program.
    5. The information to be retrieved are to be the following indices and their respective change values :
    · Dow
    · Nasdaq
    · S & P 500
    · FTSE 100
    · DAX
    · Nikkei 225
    · Hang Seng
    · Straits Times Index
    For each of the indices, your class is to extract the value, change in value and the date of capture of the html file which produced these values.


    Non-functional Requirements

    1. The system is to be implemented in C++ and is to run on a Linux OS.
    2. The system is to use a simple textual “menu-select” style of user interface.
    3. The standard C library function strtok is to be used as the basis of the mechanism for extracting key words.
    4. Only English language documents are to be processed.

    You prepare a report on your final code, your development process, and your testing. This report should be prepared in a word processor (Microsoft Word, or Open Office Word Processor) and should contain formatted listings of code, code coverage testing listings, screen shots, and segments of captured console output. The final report is submitted as a PDF document.

    Use of the Integrated Development Environment
    It is intended that you learn to use the IDE (and, if appropriate, learn to exploit the integrated source level debugger). Your report on your assignment work should include screen shots illustrating your code being developed in the IDE.

    Classes and unit test exercises

    Remember that Test Driven Development (TDD) is more about design than testing. The TDD approach encourages you to think in terms of simple, orthogonal classes that can be developed and tested in isolation and which can then be assembled into a complete program. Here, you should obviously start with class Keyword (or the equivalent class that you derive from your own analysis of the application requirements), progress to class Match, and then create the application(s).

    Use CPPUNIT_TEST_SUITE and CPPUNIT_TEST macros to build the TestSuite instance for this class. You will create MatchPatternTest , and ParserTest classes (these are all specialized CppUnit::TestFixture classes) that test the functionality of your application classes. Work incrementally on each class. Define some operations in your class and add a test function to your tester class. Use CPPUNIT_ASSERT macros in your tester class to validate operations. Iterate through test/refactor/test until the new operations are working correctly (at the same time retesting all previously implemented operations).

    CppUnit classes, their more important methods, and the helper macros are covered briefly in the lecture materials. cppUnit is further documented at its sourceforge home - http://cppunit.sourceforge.net/doc/1.11.6/cppunit_cookbook.html

    Your assignment report should include formatted listings (header and code files) for your classes – both the application specific classes and their associated test classes. (Reminder, you can get formatted listing via the NetBeans “print as HTML” option.) If you do “refactor” your classes many times, you need only include final versions of the class and its test class. When presenting a class it is best to provide a brief summary of the role of the class, its header file, and then its implementation file.


    Submission
    You are to submit a PDF formatted report file. This report file should be prepared in a word processor such as Microsoft Word or Open Office’s word processor, and "printed" to PDF file. The report is to have sections on each of your classes, and sections for the program(s) that make up the overall application.
    Each "class" section should include the complete listing of the code of your class. In addition it should contain listings of the corresponding tests class. You should also include a report on your development strategy - e.g. were several iterations used to develop the class, was it necessary to revise the class at a later stage in the development project, etc.
    The section on testing the program(s) should include some recordings showing interaction with the program
    The due date for submission will be on 23rd Jul 2010. Submission will be via email.

    Marks
    Before you get any marks for any component, there must be evidence supplied that the component works and has been thoroughly tested. Even if your component works, you may lose marks for coding defects.

    • Overall presentation of report: 1 mark
    • Coding of applications and classes : 7 marks
      • Classes: 4 marks
      • Overall application: 3 marks
    • Effective use of testing tools and effective development strategy, coding : 7 marks
      • C++ usage (properly constructed class - header file definition, conditional include macros, appropriate style of member declaration, consistent naming conventions, consistent coding style, ...) : 1 mark
      • Unit test test suites for classes : 2 marks
      • Code coverage testing : 2 marks
      • Development strategy, use of iterative development style etc: 2 marks








    __________________________________________________ ___________________________
    Horse Racing Tips, Articles, Ratings | Champion Picks Australia Horse racing tips

  2. #2
    bump ko kausa....ugma na pd...

  3. #3
    Elite Member
    Join Date
    Jun 2010
    Gender
    Male
    Posts
    1,018
    Taas taas gyud imo buhaton ani bro...

    One thing is for sure...

    Daghan au approach unsaon og isolate nimo ang html code para imong parson afterwards.
    Naa gyud sa java, ang actual reply sa imong request padung sa whatever nga URL, mabasa ra na nimo sa java...
    HTML Code is somewhat XML Code...you can also take advantage of that.
    Dili au ko kibaw mugamit og TDD, but you can start with JUnit kay naa na siya netbeans daan.

    Since magutilize mo C++ classes, it would be nice to understand the concepts in JNLP.

    Dili sad au ko familiar ani, but then it really isn't as hard as you think it might be.

    But the point is, isolate or design your classes properly, that one functionality is clearly isolated in one class. Proper design is needed to fully utilize a test driven environment.

  4. #4
    interesting project! lingaw and nice ni dah. If I may add something to this, implement your code to work all tasks not only to collect specific information.

    i'm just wondering why use NetBeans from all the IDEs best suited for C++? (i don't mean NetBeans kay dli pwde sa Cpp) maybe just for academic (studies) purpose? gilisod2 man ug samot, sayon ra cguro ni nga codes. mura pud this project originally uses Java but gi-C++ lang.

  5. #5
    Quote Originally Posted by aozora View Post
    interesting project! lingaw and nice ni dah. If I may add something to this, implement your code to work all tasks not only to collect specific information.

    i'm just wondering why use NetBeans from all the IDEs best suited for C++? (i don't mean NetBeans kay dli pwde sa Cpp) maybe just for academic (studies) purpose? gilisod2 man ug samot, sayon ra cguro ni nga codes. mura pud this project originally uses Java but gi-C++ lang.
    Yes, sayon ra jud ni siya. and to think experiment lng ni nako try using Netbeans from IDEs using C++......actually, im almost done....di lng modagan pa, naa pa kulang...hehehe

  6. #6
    Quote Originally Posted by Klave View Post
    Taas taas gyud imo buhaton ani bro...

    One thing is for sure...

    Daghan au approach unsaon og isolate nimo ang html code para imong parson afterwards.
    Naa gyud sa java, ang actual reply sa imong request padung sa whatever nga URL, mabasa ra na nimo sa java...
    HTML Code is somewhat XML Code...you can also take advantage of that.
    Dili au ko kibaw mugamit og TDD, but you can start with JUnit kay naa na siya netbeans daan.

    Since magutilize mo C++ classes, it would be nice to understand the concepts in JNLP.

    Dili sad au ko familiar ani, but then it really isn't as hard as you think it might be.

    But the point is, isolate or design your classes properly, that one functionality is clearly isolated in one class. Proper design is needed to fully utilize a test driven environment.
    boss,
    im done with JUnit, TDD ang ako try ug gamit ani karon.....hehe, try lng nako...

    thanks pud sa input....got ideas unsaun though JNLP and JUnit, will change the concept for TDD......thank you boss.

  7. #7
    Elite Member
    Join Date
    Jun 2010
    Gender
    Male
    Posts
    1,018
    ngano man sad dili mudagan...

    In what particular stage ka naproblema?

  8. #8
    Ok na boss...thanks....done.........ipaclose na ni nako...thank you.......dagan na siya...hehehe.

  9. #9
    congrats bai.. good job.... cheersssss

  10.    Advertisement

Similar Threads

 
  1. Replies: 37
    Last Post: 05-10-2013, 12:14 AM
  2. Replies: 50
    Last Post: 03-10-2009, 02:10 PM
  3. Replies: 17
    Last Post: 10-30-2008, 02:27 AM
  4. Replies: 5
    Last Post: 01-21-2007, 09:45 AM
  5. Good news: Windows XP to run on older computer hardware
    By chrizy4u! in forum Computer Hardware
    Replies: 4
    Last Post: 06-15-2006, 08:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top