Answer to Question #18684 in Java | JSP | JSF for ytn0mn3b

Question #18684
A file containing information about fruits is structured as follows. Apple Green Yellow Banana The file consists of tags and data. An opening and closing tag pair, ... , define a particular data element. Each fruit has a type and a color. Notice that either may appear first within the ... tags.Your program should read a file called “fruit.txt” with the above structure. The output of your program should be the number of each type of fruit, and the total pieces of fruit. For example, the output using the lines above is: Number of type Apple: 1 Number of type Banana: 1 Total pieces of fruit: 2 Your program should be flexible enough to handle a file containing an indeterminate number of fruit descriptions. However, you may assume that there will be no more than 100 different types of fruit.
Expert's answer
Unfortunately, your question requires a lot of work and cannot be done for free.
Submit it with all requirements as an assignment to our control panel and we'll assist you.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!


No comments. Be first!

Leave a comment

Ask Your question

New on Blog