Study the scenario and complete the question(s) that follow: 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 Material Category e.g., Drills Store Location e.g., Pretoria Central (iii) (iv) (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 Ln 1, Col 1 100% Windows (CRLF) UTF-8 X Figure 1- Materials file Create a Java Program in NetBeans 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 to the screen as shown in Figure 2 below:

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Code should be in Java. Output should also be shown
Study the scenario and complete the question(s) that follow:
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
Material Category e.g., Drills
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:
(iii)
(iv)
X
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
100% Windows (CRLF) UTF-8
Ln 1, Col 1
Figure 1- Materials file
Create a Java Program in NetBeans 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 to the screen as shown
in Figure 2 below:
Transcribed Image Text:Study the scenario and complete the question(s) that follow: 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 Material Category e.g., Drills 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: (iii) (iv) X 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 100% Windows (CRLF) UTF-8 Ln 1, Col 1 Figure 1- Materials file Create a Java Program in NetBeans 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 to the screen as shown in Figure 2 below:
D
Output - BuildersWarehouseApp (run) X
run:
Builders Warehouse:
ID
Name
Category
Store
Price
BUILDO1 Bosch Drill Press Drills Pretoria Central 17000.0
BUILD02 Afrisam 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
BUILD05 Multipurpose Glazing Putty Glass accessories Mafikeng 23.45
BUILD SUCCESSFUL (total time: 0 seconds)
Figure 2-LinkedList details
Transcribed Image Text:D Output - BuildersWarehouseApp (run) X run: Builders Warehouse: ID Name Category Store Price BUILDO1 Bosch Drill Press Drills Pretoria Central 17000.0 BUILD02 Afrisam 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 BUILD05 Multipurpose Glazing Putty Glass accessories Mafikeng 23.45 BUILD SUCCESSFUL (total time: 0 seconds) Figure 2-LinkedList details
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY