{ "key_pair_value_system": true, "answer_rating_count": "", "question_feedback_html": { "html_star": "", "html_star_feedback": "" }, "answer_average_rating_value": "", "answer_date_js": "2024-09-13T00:09:26-04:00", "answer_date": "2024-09-13 00:09:26", "is_docs_available": "", "is_excel_available": "", "is_pdf_available": "", "count_file_available": 0, "main_page": "student_question_view", "question_id": "10524488", "url": "\/study-help\/questions\/java-a-completed-program-areafilltclass-is-provided-for-your-testing-10524488", "question_creation_date_js": "2024-09-13T00:09:26-04:00", "question_creation_date": "Sep 13, 2024 12:09 AM", "meta_title": "[Solved] JAVA A completed program: AreaFillT.class | SolutionInn", "meta_description": "Answer of - JAVA A completed program: AreaFillT.class is provided for your testing. To testing this program, enter coordinates in | SolutionInn", "meta_keywords": "java,completed,program,areafilltclass,provided,testing,enter,coordinates,argument,list,input,area", "question_title_h1": "JAVA A completed program: AreaFillT.class is provided for your testing. To testing this program, enter coordinates in the argument list input area. For example, 2", "question_title": "JAVA A completed program: AreaFillT.class is provided for your testing. To testing", "question_title_for_js_snippet": "JAVA A completed program AreaFillT class is provided for your testing To testing this program, enter coordinates in the argument list input area For example, 2 3 means for the third row and fourth column Then use one of the data file area txt, area2 txt, and area3 txt to test this program For example enter 2 3 area2 txt in the Cmd argument list then run AreaFillT class, you should get the following results AreaFillT class Results 00 0 0000 000000000 0000 000 00000 after filling 00000 Given Files area txt 15 32 xxxx xx xxxxxxxxxxxx x xxxxxxx x 0000xxxx xxxxxxxxxxxx0 000 xxxxxxxxx 0 00 0000000 xx 0000000000000 xxxxxxxxx 0 xx 00000 xx 00 xxxxxxxxxxxxxxxxxx 00 xx 00 xxxx00000 0000 area2 txt 9 12 00 0 0000 000000000 0000 000 00000 area3 txt 4 3 Several text files (area txt, area2 txt, and area3 txt) contain two integers followed by rows and columns filled with different characters Study the format of the text file area2 txt 9 12 00 0 0000 000000000 0000 000 00000 First, read and display the contents of this matrix to the screen Second, prompt the user for (row col) coordinates (what are passed to your program through command line argument list) Note the character that is stored in that position Replace that character with a ' ' Then recur up, down, left, and right, (but NOT diagonally) and replace similar characters with ' Study these two examples Filename area2 txt Enter ROW COL 1 3 Filename area 2 txt Enter ROW COL 1 2 00 0000 000000000 0 000 TE HO 00000 Display this new matrix Hints Filling an area, which is similar to escaping a maze, is naturally recursive What are the base cases Several text files (area txt, area2 txt, and area3 txt) contain two integers followed by rows and columns filled with different characters Study the format of the text file area2 txt 9 12 00 0 0000 000000000 0000 000 00000 First, read and display the contents of this matrix to the screen Second, prompt the user for (row col) coordinates (what are passed to your program through command line argument list) Note the character that is stored in that position Replace that character with a ' ' Then recur up, down, left, and right, (but NOT diagonally) and replace similar characters with ' Study these two examples Filename area2 txt Enter ROW COL 1 3 Filename area 2 txt Enter ROW COL 1 2 00 0000 000000000 0 000 TE HO 00000 Display this new matrix Hints Filling an area, which is similar to escaping a maze, is naturally recursive What are the base cases", "question_description": "

JAVA<\/p>

\"image<\/p>

A completed program: AreaFillT.class is provided for your testing. To testing this program, enter coordinates in the argument list input area. For example, 2 3 means for the third row and fourth column. Then use one of the data file: area.txt, area2.txt, and area3.txt to test this program. For example: enter 2 3 *area2.txt in the Cmd argument list then run AreaFillT.class, you should get the following results: AreaFillT.class: Results ..........00 ...0....0000 ...000000000 0000.....000 ............ ..#########. ..#...#####. ......#####. ...00000.... after filling ..........** ...*....**** ...********* ****.....*** ............ ..#########. ..#...#####. ......#####. ...00000.... <\/pre> 

<\/p>

Given Files: <\/p>

* area.txt:<\/p>

15 32 xxxx............................ ...xx........................... ..xxxxxxxxxxxx.................. ..x.........xxxxxxx............. ..x...........0000xxxx.......... ..xxxxxxxxxxxx0..000............ ..xxxxxxxxx...0...00.....0000000 ..........xx.......0000000000000 .....xxxxxxxxx........0......... ....xx.................00000.... ....xx.....................00... .....xxxxxxxxxxxxxxxxxx....00... ......................xx...00... .......................xxxx00000 ............................0000 <\/p>

* area2.txt:<\/p>

9 12 ..........00 ...0....0000 ...000000000 0000.....000 ............ ..#########. ..#...#####. ......#####. ...00000.... <\/p>

* area3.txt<\/p>

4 3 +++ @+@ @+@ @@@ <\/p> Several text files (area.txt, area2.txt, and area3.txt) contain two integers followed by rows and columns filled with different characters. Study the format of the text file area2.txt: 9 12 ..........00 .0....0000 000000000 0000.....000 . . = . = .. = - 00000 First, read and display the contents of this matrix to the screen. Second, prompt the user for (row.col) coordinates (what are passed to your program through command line argument list). Note the character that is stored in that position Replace that character with a '*'. Then recur up, down, left, and right, (but NOT diagonally) and replace similar characters with '*. Study these two examples: Filename: area2.txt Enter ROW COL: 1 3 . . Filename: area 2.txt Enter ROW COL: 1 2 **********00 *******0000 ***000000000 0...-:.000 + + * . + + * . + * . . . . . TE # #. # #. . HO # # . 00000 . ! . . Display this new matrix. Hints: Filling an area, which is similar to escaping a maze, is naturally recursive. What are the base cases? Several text files (area.txt, area2.txt, and area3.txt) contain two integers followed by rows and columns filled with different characters. Study the format of the text file area2.txt: 9 12 ..........00 .0....0000 000000000 0000.....000 . . = . = .. = - 00000 First, read and display the contents of this matrix to the screen. Second, prompt the user for (row.col) coordinates (what are passed to your program through command line argument list). Note the character that is stored in that position Replace that character with a '*'. Then recur up, down, left, and right, (but NOT diagonally) and replace similar characters with '*. Study these two examples: Filename: area2.txt Enter ROW COL: 1 3 . . Filename: area 2.txt Enter ROW COL: 1 2 **********00 *******0000 ***000000000 0...-:.000 + + * . + + * . + * . . . . . TE # #. # #. . HO # # . 00000 . ! . . Display this new matrix. Hints: Filling an area, which is similar to escaping a maze, is naturally recursive. What are the base cases", "transcribed_text": "", "related_book": { "title": null, "isbn": null, "edition": null, "authors": null, "cover_image": null, "uri": null, "see_more_uri": "" }, "free_related_book": { "isbn": "", "uri": "", "name": "", "edition": "" }, "question_posted": "2024-09-13 00:09:26", "see_more_questions_link": null, "step_by_step_answer": "The Answer is in the image, click to view ...", "students_also_viewed": [ { "url": "\/study-help\/business-communication\/d-discuss-the-value-of-identifying-just-a-few-takeaway-2005383", "description": "D. Discuss the value of identifying just a few takeaway messages.", "stars": 0 }, { "url": "\/milwaukee-metallurgy-corporation-mmc-has-two-divisions-the-fabrication-division", "description": "Milwaukee Metallurgy Corporation (MMC) has two divisions. The Fabrication Division transfers partially completed components to the Assembly Division at a predetermined transfer price. The Fabrication...", "stars": 3 }, { "url": "\/study-help\/questions\/java-a-completed-program-areafilltclass-is-provided-for-your-testing-10524488", "description": "JAVA A completed program: AreaFillT.class is provided for your testing. To testing this program, enter coordinates in the argument list input area. For example, 2 3 means for the third row and fourth...", "stars": 3 }, { "url": "\/study-help\/questions\/which-network-device-would-be-the-most-appropriate-to-provide-8694175", "description": "Which network device would be the most appropriate to provide stateful packet filtering, email filtering, and VPN services? endpoint management server router proxy server TPM UTM", "stars": 3 }, { "url": "\/study-help\/questions\/a-9digit-phone-number-cannot-start-with-0-assume-that-1056905", "description": "A 9-digit phone number cannot start with 0. Assume that there are no restrictions on the remaining 8 numbers. How many telephone numbers are possible in which all 9 digits are different? The possible...", "stars": 3 }, { "url": "\/study-help\/questions\/question-the-following-data-set-represents-the-amount-spent-in-1034976", "description": "Question The following data set represents the amount spent, in billions of dollars, each year on national defense by the U.S. government over the course of a 16-year period. Find the five-number...", "stars": 3 }, { "url": "\/study-help\/questions\/the-graph-illustrates-the-supply-and-demand-for-blue-jeans-1045963", "description": "The graph illustrates the supply and demand for blue jeans. If the actual price of blue jeans is $ 3 0 , we would expect the price of blue jeans to _ _ _ _ _ _ _ _ , the quantity demanded of blue...", "stars": 3 }, { "url": "\/study-help\/questions\/after-collecting-an-arterial-sample-it-is-necessary-to-remove-1042645", "description": "After collecting an arterial sample, it is necessary to remove any air bubbles from the syringe because... After collecting an arterial sample, it is necessary to remove any air bubbles from the...", "stars": 3 }, { "url": "\/study-help\/questions\/case-2-picking-the-best-lottery-payoff-option-congratulations-you-5430226", "description": "Case #2 Picking the Best Lottery Payoff Option Congratulations! You have won the $ 1 million lottery grand prize. You have been presented with several payout alternatives, and you have to decide...", "stars": 3 } ], "next_back_navigation": { "previous": "\/study-help\/questions\/johnny-cash-operates-a-music-store-for-children-he-sells-10524487", "next": "\/study-help\/questions\/delila-waverly-manages-a-fleet-of-300-delivery-trucks-for-10524489" }, "breadcrumbs": [ { "name": "Study help", "link": "https:\/\/www.solutioninn.com\/study-help\/questions-and-answers" }, { "name": "Computer Science", "link": "https:\/\/www.solutioninn.com\/study-help\/questions-and-answers\/computer-science" }, { "name": "Databases", "link": "https:\/\/www.solutioninn.com\/study-help\/questions\/computer-science-databases" }, { "name": "JAVA A completed program: AreaFillT.class is provided for your testing. To testing", "link": "https:\/\/www.solutioninn.com\/study-help\/questions\/java-a-completed-program-areafilltclass-is-provided-for-your-testing-10524488" } ], "skill_details": { "skill_id": "656", "skill_name": "Databases", "parent_id": "8" } }656", "skill_name": "Databases", "parent_id": "8" } }