Question
Asked by:
$15.00 Help Please 2
- From Computer-Science: Object-Oriented-Programming
- Closed, but you can still post tutorials
- Due on Jul. 08, 2009
- Asked on Jul 05, 2009 at 4:15:02PM
Q:Develop an application that reads the products.txt file created in Phase 1 DB and prints the contents of the file to the screen. This application should not recreate the products.txt file to start with. It is assumed the products.txt file has already been created. Your application should be written with flexibility in mind. This means that no absolute pathnames to the location of the products.txt file should be hardcoded in your application. Your application can let the user enter the pathname of the location of the products.txt file or assume the products.txt file will be found in the current working directory (in your NetBeans project folder). The output to the screen should be in the following format:
1001 Rake 20.00
1002 Hose 15.00
1003 Lawnmower 200.00
Each product's information should be on a separate line. Product id should be first, followed by the one word product description, followed by the price in dollars and cents. White space should be used as delimiter (no commas).
When you submit your zipped NetBeans project folder, be sure you include the products.txt file you used to test your application.
Before you write any Java code, start with planning comments also known as pseudocode. These comments will serve as the outline of your logic for each method including your test application. The comments should be left in your code and part of your grade will come from these comments.



