Question
Asked by:
mityguy23
mityguy23
Rating : No Rating
Questions Asked: 42
Tutorials Posted: 0
 

$8.00 Homework help Java

Q:
Develop an application that reads product id, product name and product price from an input text file.

Example input product text file should be in the format:

1001 Rake 20.00
1002 Hose 15.00
1003 Lawnmower 200.00
1004 Drill 150.00

Product id should be the first field, one word product description should be the second field, and the price in dollars and cents (no commas) should be the third field. White spaces (no commas) should be used as the delimiter between each field and a platform independent line separator should be used at the end of each product record. Your file may be used as input to a future application which is why the format is important.

If the price of the item is greater than or equal to 50.00 write the product information to a text file called WishList.txt. If the price of the item is less than 50.00 write the product information to a text file called GiftIdeas.txt.

If your output file(s) already exist, you should append to the file and not overwrite it. Your output text files should be in the same format as the input product text file. Product id should be the first field, one word product description should be the second field, and the price in dollars and cents (no commas) should be the third field. White spaces (no commas) should be used as the delimiter between each field and a platform independent line separator should be used at the end of each product record. Your output files may be used as input to a future application which is why the format is important.


I have added a code that has the product.txt file, was woondering if this code can be modified to add the requirements for sthis assignment
 
Attachments:
Mfrazer_IT271_IP1.zip (15K)


   
   
   
   
 
Available Tutorials to this Question
Posted by:
 

$8.00 A+ source code work correctly

  • This tutorial hasn't been purchased yet.
  • Posted on Jul 21, 2009 at 10:17:58PM
A:
Preview: ... print(i.getProductID());<br> fw.print(" " ...

The full tutorial is about 8 words long plus attachments.

Attachments:
phase1ip.zip (2K)
Posted by:
 

$8.00 Java products Application - Corrected code for you

  • This tutorial was purchased 1 time and rated A- by students like you.
  • Posted on Jul 21, 2009 at 11:33:22PM
A:
Preview: ... the corrected java product ...

The full tutorial is about 23 words long plus attachments.

Attachments:
Mfrazer_IT271_IP1_Corrected.zip (22K)
Posted by:
modulo51
modulo51
Rating (110): A-
Questions Asked: 1
Tutorials Posted: 353, earned $2,117.64
 

$7.00 Java, sort into 2 output files, append, NetBeans project, PrintWriter UseNotes

  • This tutorial was purchased 2 times and rated A+ by students like you.
  • Posted on Jul 22, 2009 at 01:55:00PM
A:
Preview: ... openOutputFiles();<br> firstCall = false;<br> }<br><br> if (errorCondition) {<br> return;<br> }<br><br> if (record.getProductPrice() >= 50.00) {<br> bigOutStream.println(<br> record.getProductID() + " " +<br> record.getProductName() + " " +<br> record.getProductPrice());<br> } else {<br> smallOutStream.println(<br> record.getProductID() + " " +<br> record.getProductName() + " " +<br> recor ...

The full tutorial is about 831 words long plus attachments.

Attachments:
SortProduct.java (2K) (Preview)
ProductSortUseNotes.txt (2K) (Preview)
phase1ip-sort.zip (22K)
   
Join Now or Log In
Get Tutoring
Get Paid
Academic Honesty