Name:- MIT Note:- Please type this java code and also need an output for this given Java program.  =>Also this is a whole one question. So please read carefully and then type the correc

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
icon
Concept explainers
Question

Name:- MIT

Note:- Please type this java code and also need an output for this given Java program. 

=>Also this is a whole one question. So please read carefully and then type the correct java code.

Wirte in java
You have been asked by a fashion company to create a program which will read a file of their clothing
inventory. The data file contains varied inventory items. The first character of the stockID field tells you
which data class the item is of. The file lay out follows the layout of each datatype. Your program will allow
the user to perform two functions. The first function will allow the user will be able to produce a report
displaying the contents of the file you read. The second function will allow the user to search for an item by
the stockID and let the user know the full description of the item and how many items are in stock.
Your program will allow the user to perform two functions:
1. The first function will allow the user to produce a report displaying the contents of the file you read. Each
detail line must report all of the day for the specific clothing type.
2. The second function will allow the user to search for an item by the stocklD and let the user know the full
description of the item and how many of the items are in stock.
The IT department has given you the following parameters to write the program
1. Clothing is an abstract class
2. Your data must be stored in a polymorphic array
3. Your search routine must be recursive.
4. If the item the user has entered for the search is not in the array your program will go through an exception
Clothing
String stockld
String displayName
int quantityOnHand
double price
Pants extends Clothing
int waistSlze
int pantLength
Dress extends Clothing
int slze
Shirt extends Clothing
int neckSlze
int armLengthLength
boolean tall
texta1.txt
Transcribed Image Text:Wirte in java You have been asked by a fashion company to create a program which will read a file of their clothing inventory. The data file contains varied inventory items. The first character of the stockID field tells you which data class the item is of. The file lay out follows the layout of each datatype. Your program will allow the user to perform two functions. The first function will allow the user will be able to produce a report displaying the contents of the file you read. The second function will allow the user to search for an item by the stockID and let the user know the full description of the item and how many items are in stock. Your program will allow the user to perform two functions: 1. The first function will allow the user to produce a report displaying the contents of the file you read. Each detail line must report all of the day for the specific clothing type. 2. The second function will allow the user to search for an item by the stocklD and let the user know the full description of the item and how many of the items are in stock. The IT department has given you the following parameters to write the program 1. Clothing is an abstract class 2. Your data must be stored in a polymorphic array 3. Your search routine must be recursive. 4. If the item the user has entered for the search is not in the array your program will go through an exception Clothing String stockld String displayName int quantityOnHand double price Pants extends Clothing int waistSlze int pantLength Dress extends Clothing int slze Shirt extends Clothing int neckSlze int armLengthLength boolean tall texta1.txt
S11111
Oxford Button-Down
10 25.00 17 35 R
D66666
Bodycon
12 63.00 18
S22222
Cuban Collar
12 45.00
P12345
Cargo
12 63.00
S33333
Flannel
21 15.00 16 30 R
D55555
Shift Dress
30 45.00 22
S44444
Classic Short Sleeve
15 35.00 20 37 T
D88888
A-Line
18 38.00 16
P45678
Jeans
12 63.00 42 34
P54321
Corduroy
12 63.00 40 32
T or R repent true or false
yes
Transcribed Image Text:S11111 Oxford Button-Down 10 25.00 17 35 R D66666 Bodycon 12 63.00 18 S22222 Cuban Collar 12 45.00 P12345 Cargo 12 63.00 S33333 Flannel 21 15.00 16 30 R D55555 Shift Dress 30 45.00 22 S44444 Classic Short Sleeve 15 35.00 20 37 T D88888 A-Line 18 38.00 16 P45678 Jeans 12 63.00 42 34 P54321 Corduroy 12 63.00 40 32 T or R repent true or false yes
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Operators
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