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.
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
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](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F580d0402-ef69-4ce2-a2d8-aae8e3a6e5d3%2Fc84fc9b1-4f72-4343-b086-af3b40113229%2F40xzn_processed.jpeg&w=3840&q=75)
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](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F580d0402-ef69-4ce2-a2d8-aae8e3a6e5d3%2Fc84fc9b1-4f72-4343-b086-af3b40113229%2Fz5q3zft_processed.jpeg&w=3840&q=75)
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
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps with 4 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
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.Recommended textbooks for you
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
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)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
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)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education