Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Would like to see the program compiled in eclipse and screenshots of the outputs. Here is the link for the remaining files the two .yanks

image text in transcribed

Would like to see the program compiled in eclipse and screenshots of the outputs. Here is the link for the remaining files the two .yanks files are included as is the .java file.

https://drive.google.com/file/d/0BwgLuvJjoLrcelBzeEJCeFZMWE0/view?usp=sharing

yanifilejol(2) () Microsoft Word Hom ne Pge Layout References Malngs Rviw View cut Change Replace StylesSelect PasteCopy Subtrle Subtie Em.. Emphasis intense StrongQuote I Nomal TNo Spaci... Heeding Hesding 2 Clipboard Paragraph Edting YANKEES FILE You will write a program that will convert a file of objects to a plain ASC character text file yankees.txt (using plain character streams of individual characters). Copy the attached yankees yanks object input file and save into your ciss241 project folder. Copy the attached yankees java class definition file and save into your files13 package You will then create a main program that will read an entire record (an object from this yankees.yanks file), get each field separately and convert each field into a separate character stream, and write the character streams of individual characters (in a loop)to a plain ASCII outputtext file called yankees.tct (you can open it in Eclipse from your ciss241 project folder) Each field value will be a separate loop and you will only write one character at a time from each field (note: the only output to the yankees.txt file will be to write one individual plain ASC text character at a time). In the output file, put each yankees record on a separate line with a space character between each field and a new line or retum character at the end of each record Contimme reading objects until you reach the eof (at which point you will read a null, so you can read until you throw and catch an EOFException but you don't have to print anything,just exit). Include catch blocks for any kinds of exceptions that might occur (print the stack trace and exit). Input: Read yankees objects from yankees yanks in form of yankees java Output: Write individual ASCII characters from fields ofyankees objects to yankees.txt. Add a full paragraph of documentation (at least 4 lines each) to your main program Supply extra documentation (at least 5 comments) throughout for all of the not easily understandable lines of code for your main program Run your program and submit your main program and yankees.txt output file by attaching the files. Page 1 of1 Words: 322 A 622 PM yanifilejol(2) () Microsoft Word Hom ne Pge Layout References Malngs Rviw View cut Change Replace StylesSelect PasteCopy Subtrle Subtie Em.. Emphasis intense StrongQuote I Nomal TNo Spaci... Heeding Hesding 2 Clipboard Paragraph Edting YANKEES FILE You will write a program that will convert a file of objects to a plain ASC character text file yankees.txt (using plain character streams of individual characters). Copy the attached yankees yanks object input file and save into your ciss241 project folder. Copy the attached yankees java class definition file and save into your files13 package You will then create a main program that will read an entire record (an object from this yankees.yanks file), get each field separately and convert each field into a separate character stream, and write the character streams of individual characters (in a loop)to a plain ASCII outputtext file called yankees.tct (you can open it in Eclipse from your ciss241 project folder) Each field value will be a separate loop and you will only write one character at a time from each field (note: the only output to the yankees.txt file will be to write one individual plain ASC text character at a time). In the output file, put each yankees record on a separate line with a space character between each field and a new line or retum character at the end of each record Contimme reading objects until you reach the eof (at which point you will read a null, so you can read until you throw and catch an EOFException but you don't have to print anything,just exit). Include catch blocks for any kinds of exceptions that might occur (print the stack trace and exit). Input: Read yankees objects from yankees yanks in form of yankees java Output: Write individual ASCII characters from fields ofyankees objects to yankees.txt. Add a full paragraph of documentation (at least 4 lines each) to your main program Supply extra documentation (at least 5 comments) throughout for all of the not easily understandable lines of code for your main program Run your program and submit your main program and yankees.txt output file by attaching the files. Page 1 of1 Words: 322 A 622 PM

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spatio Temporal Database Management International Workshop Stdbm 99 Edinburgh Scotland September 10 11 1999 Proceedings Lncs 1678

Authors: Michael H. Bohlen ,Christian S. Jensen ,Michel O. Scholl

1999th Edition

3540664017, 978-3540664017

More Books

Students also viewed these Databases questions

Question

Q.1. Taxonomic classification of peafowl, Tiger and cow ?

Answered: 1 week ago

Question

Q .1. Different ways of testing the present adulterants ?

Answered: 1 week ago

Question

Q.1. Health issues caused by adulteration data ?

Answered: 1 week ago

Question

1. Traditional and modern methods of preserving food Articles ?

Answered: 1 week ago

Question

4. What actions should Bouleau & Huntley take now?

Answered: 1 week ago