Step1-Study the scenario below and create a Java Program for Builders Warehouse, The program must consist of a class called Materials to handle the details of the materials. The program should read the materials details from the material.txt file then use a LinkedList to store the material details. Then finally the products stored in the LinkedList must be displayed like the sample code below step 2-There must be clear  code and a screenshot of the code running.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Step1-Study the scenario below and create a Java Program for Builders Warehouse, The program must consist of a class called Materials to handle the details of the materials. The program should read the materials details from the material.txt file then use a LinkedList to store the material details. Then finally the products stored in the LinkedList must be displayed like the sample code below

step 2-There must be clear  code and a screenshot of the code running.

 

순순
D
or
Wa
Output -BuildersWarehouseApp (run) x
run:
Builders Warehouse:
ID
Name
Category
BUILD01 Bosch Drill Press Drills Pretoria Central 17000.0
BUILD02 Afrisan Cement Cement Cape Town Central 150.0
BUILD03 Bevel Edged Paving Bricks Bricks Durban 3.1
BUILD04 Premier Galvanised Steel Board Roof Polokwane 350.5
Store
Price
BUILD05 Multipurpose Glazing Putty Class accessories Mafikeng 23.45
BUILD SUCCESSFUL Itotal time: 0 seconds!
Figure 2- LinkedList details
Transcribed Image Text:순순 D or Wa Output -BuildersWarehouseApp (run) x run: Builders Warehouse: ID Name Category BUILD01 Bosch Drill Press Drills Pretoria Central 17000.0 BUILD02 Afrisan Cement Cement Cape Town Central 150.0 BUILD03 Bevel Edged Paving Bricks Bricks Durban 3.1 BUILD04 Premier Galvanised Steel Board Roof Polokwane 350.5 Store Price BUILD05 Multipurpose Glazing Putty Class accessories Mafikeng 23.45 BUILD SUCCESSFUL Itotal time: 0 seconds! Figure 2- LinkedList details
Builders Warehouse is a company with many branches in South Africa. They specialise in selling
building materials. Its branch stores receive stock of building materials on a monthly basis
During stock taking, Builders Warehouse records the following properties per each building material:
(i) Material ID in the format BUILD01
(ii)
Material Name e.g., Bosch Drill Press
(iii) Material Category e.g., Drills
(iv)
Store Location e.g., Pretoria Central
(v) Material Price e.g., R17000
You have been hired as a Graduate Java developer for Builders Warehouse and have been provided
with a text file called materials containing five building materials received by one of the branch's stores.
Below is a screenshot of the text file:
materials txt - Notepad
File Edit Format View Help
BUILD01, Bosch Drill Press, Drills, Pretoria Central, 17000
BUILD02, Afrisam Cement, Cement, Cape Town Central, 150
BUILD03, Bevel Edged Paving Bricks, Bricks, Durban, 3.10
BUILD04, Premier Galvanised Steel Board, Roof, Polokwane, 350.50
BUILD05, Multipurpose Glazing Putty, Glass accessories, Mafikeng, 23.45
UTF-8
Ln 1, Col 1
100% Windows (CRLF)
Figure 1- Materials file
Transcribed Image Text:Builders Warehouse is a company with many branches in South Africa. They specialise in selling building materials. Its branch stores receive stock of building materials on a monthly basis During stock taking, Builders Warehouse records the following properties per each building material: (i) Material ID in the format BUILD01 (ii) Material Name e.g., Bosch Drill Press (iii) Material Category e.g., Drills (iv) Store Location e.g., Pretoria Central (v) Material Price e.g., R17000 You have been hired as a Graduate Java developer for Builders Warehouse and have been provided with a text file called materials containing five building materials received by one of the branch's stores. Below is a screenshot of the text file: materials txt - Notepad File Edit Format View Help BUILD01, Bosch Drill Press, Drills, Pretoria Central, 17000 BUILD02, Afrisam Cement, Cement, Cape Town Central, 150 BUILD03, Bevel Edged Paving Bricks, Bricks, Durban, 3.10 BUILD04, Premier Galvanised Steel Board, Roof, Polokwane, 350.50 BUILD05, Multipurpose Glazing Putty, Glass accessories, Mafikeng, 23.45 UTF-8 Ln 1, Col 1 100% Windows (CRLF) Figure 1- Materials file
Expert Solution
steps

Step by step

Solved in 2 steps with 4 images

Blurred answer
Knowledge Booster
Adjacency Matrix
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education