Java Programming

Completed Posted Sep 4, 2014 Paid on delivery
Completed Paid on delivery

Programming Assignment - Files

You are the owner of a hardware store and need to keep an inventory that can tell you what different tools you have, how many of each you have on hand and the cost of each one. Write an MDI GUI based hardware inventory application that utilizes a random-access, binary file called "hardware.dat." On startup the program will check for the existence of the [url removed, login to view] file. If it does not exist the program will initialize the random-access file "[url removed, login to view]" to 100 empty records. The program should have a menu which allows you to do the following: Add a new tool, input the data concerning each tool, list all your tools, delete a record for a tool that you no longer have and update any information in the file for an existing tool. Each tool record should consist of the following fields: Tool ID (record number), tool name, quantity on hand, and unit cost of the tool. The following is some data for you to use:

Tool ID Tool Name Quantity Unit Cost

3 Electric sander 18 35.99

19 Hammer 128 10.00

26 Jigsaw 16 14.25

27 Lawn mower 10 79.50

28 Power saw 8 89.99

76 Screwdriver 236 4.99

81 Sledgehammer 32 19.75

88 Wrench 65 6.48

Additional Notes:

• Remember that in order for a random-access file to work you must make all records fixed length. This means you must trim or pad all String fields so that they are a fixed length when written to the file.

• Assign Tool ID numbers from 1-100 and use the tool ID to determine which record in the random access file will store the tool. Note that record 1 will go at offset 0 so the location of the record (file offset) will be (ToolID – 1) * RECORD_LENGTH.

• This is a transaction processing program. You may NOT read the entire file into memory and process the records in memory. You must read an individual tool record from the file, process that record, then write the processed record back to the file.

• Use Tool ID of zero for an empty tool record so when you initialize the [url removed, login to view] file with the 100 blank records all the records will have a tool ID of zero.

• When listing the tools you will list only the tools with a non-zero tool ID. Don’t list blank tool records.

• For an MDI GUI interface create a main window with a standard menu bar containing menu items for the required operations. Create internal windows for the transactions (use JInternalFrame).

Java

Project ID: #6413683

About the project

4 proposals Remote project Active Sep 4, 2014

Awarded to:

it2051229

Hi, I would like to do this project please. let me know if you are interested so I can start. Thanks.

$30 USD in 1 day
(383 Reviews)
6.7

4 freelancers are bidding on average $73 for this job

momirsarac90

Text me .

$90 USD in 1 day
(6 Reviews)
3.8
VnBestSolutions

Dear Sir. We claim to get it done perfectly for you EXACTLY in the way you want it - Kindly give we a chance and we will prove myself - Ready to prove our words, let's get it done right away and I mean RIGHT AWAY !! More

$126 USD in 3 days
(1 Review)
2.5
sooryaprakash13

A proposal has not yet been provided

$30 USD in 3 days
(0 Reviews)
0.0