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

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter9: Using Classes And Objects
Section: Chapter Questions
Problem 1CP: In previous chapters, you have created programs for the Greenville Idol competition. Now create a...
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
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage