Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

https://www.chegg.com/homework-help/questions-and-answers/cosc-1p03-assignment-1-puzzling-due-jan-31-2020-4-00-pm-late-date-feb-3-4-00-pm-objective--q43944897 Please check URL for question DO ASCIIDisplayer File Help TPIRCSAVAJLEXIPIGE LIAMEMORYMMOUSENIL CRABKSATXINUYHSTEG DNDIRECTORY ETA OE OO POWER SUPPLYNIRERLO U COASAEVASS CREINDG KIROP KIYP SHRUNWEEL

https://www.chegg.com/homework-help/questions-and-answers/cosc-1p03-assignment-1-puzzling-due-jan-31-2020-4-00-pm-late-date-feb-3-4-00-pm-objective--q43944897

Please check URL for questionimage text in transcribedimage text in transcribedimage text in transcribed

DO ASCIIDisplayer File Help TPIRCSAVAJLEXIPIGE LIAMEMORYMMOUSENIL CRABKSATXINUYHSTEG DNDIRECTORY ETA OE OO POWER SUPPLYNIRERLO U COASAEVASS CREINDG KIROP KIYP SHRUNWEEL C DDEC PREEA HYCA AIRM ANRIMALLIDR PERREAT BOLENMEIEKEISEEPH H RCKIPRAFCVRI IR SULM EEBEIARRIABOOIMBOR N SIWRAPRGRINWBINGO NOOSGNDLOODINTIOIS ANGMAKAULARAOTEANR CA EASPILIAIPON RNDU SN FIREWALL WREIKOOC IFDPRDHI OOTEULBYTE JAVASCRIPT Found (left) at (0,9) PIXEL found (left) at (0,14) INTERNET found (down) at (0,15) GIF found (down) at (0,16) GOOGLE found (up) at (5, 17) LCD found (down) at (1,0) EMAIL found (left) at (1,4) MEMORY found (right) at (1,3) MOUSE found (right) at (1,10) SHAREWARE found (down) at (1,13) TASKBAR found (left) at (2,7) UNIX found (left) at (2,11) SECURITY found (up) at (9,12) SOFTWARE found (down) at (2,14) FOLDER found (down) at (2,16) ICON found (up) at (6,1) Close Hints Thc puzzle can be represented as a right-sized two-dimensional array of characters (cha). ASLring can be converted into a right-sized array of characters via the Str:rg method cochaArray A word can occur in any of 8 directions starting from a square in the puzzle: o to the right (normal text: MEMORY above) o to the left (backwards: PIXE) o downwards (INTERNET) o upwards (GOOGLE) o diagonally downwards to the right (APPLICAZION) o diagonally downwards to the left (CTAT) o diagonally upwards to the right (WIRELESS) o diagonally upwards to the left (PROGRAMMER) Consider writing separate methods such as: privale boolean search:kigt... ( inl. x, ir:LY, SLsing word) { that look for a word starting from position (x, y) in the puzzle and proceeding in the designated direction (right in this case). The method returns true if the word is found in the designated direction starting from the indicated position. You would have 8 suich methods. Lach of these methods will be quite similar. A word cannot occur starting from (x,y) if there isn't enough room from (x, yto the edge of the puzzle in the designated direction. For example, if the puzzlc is 10x10, we are checking from position (3,7! to the right and the word is more than 3 characters in length, Consider developing the solution in phases such as: 1. read and display puzzle 2. check for a single word in one direction only (eg, right) 3. repeatedly add the ability to check for a single word in each of the other 7 directions 4. add the ability to search for multiple words. Don't lise the big puzzle for testing. Make special small puzzles to test each of the 8 search methods above such as the included puzzle right.txthat has only one word written to the right. Submission: Details regarding preparation and submission of assignments in COSC 1P03 are found on the COSC 1P03 Sakai Site as Assigrmont Guidelires under Course Docurer:Ls. This document includes a discussion of assignment preparation, programming standards, evaluation criteria and academic conduct (including styles for citation) in addition to the detailed assignment submission process copied below. To prepare and submit the assignment electronically, follow the procedure below: 1. Ensure your folder (say Assign -) for the assignment is accessible on your computer and contains the Dr. Java project and all associated java and c_ass files for your assignment. 2. Create a .zip file of your submission by right-clicking on the top level folder (i.e. Assigr: ) and selecting Serd to/Compressed 12.oped folder. A zipped version of the folder will be created. Use the default name (Assign_1.zip). It is important that you only submit a .zip file, notraz or, tar or any other type of compression. If you use a type of compression other than .zio your assignment may not be marked. 3. Log on to Sakai and select the COSC IPO3 site. 4. On the Ass-9acer...s page select Assignmen.. 1. Allach your .zio lilo (eg. Assign_1.zip) to the assignment submission (use the Add AllachsenLs bullon and select Browse). Navigate to where you stored your assignment and select the .zip file (eg. Assign 1,7:9). The file will be added to your submission. Be sure to check the fono: Pledge checkbox, Press Submit to submit the assignment. 5. Assignments incorrectly submitted will lose marks. Assignments without the required files may not be marked. DrJava The .zip folder you submit should contain the project folder including all files relevant to the project - the .drava, java and .class files for the assigninent. If your project requires any special instructions to run, these instructions must be included in a read me lilc. Other Platforms Students must create their project using an IDE that is available on the Brock Computer Science lab computers. Currently, these are NetBeans, IntelliJ and Dr. Java, Markers must be able to open, compile and run your project on the lab computers. Assignments completed using some other IDE may not be marked. DO ASCIIDisplayer File Help TPIRCSAVAJLEXIPIGE LIAMEMORYMMOUSENIL CRABKSATXINUYHSTEG DNDIRECTORY ETA OE OO POWER SUPPLYNIRERLO U COASAEVASS CREINDG KIROP KIYP SHRUNWEEL C DDEC PREEA HYCA AIRM ANRIMALLIDR PERREAT BOLENMEIEKEISEEPH H RCKIPRAFCVRI IR SULM EEBEIARRIABOOIMBOR N SIWRAPRGRINWBINGO NOOSGNDLOODINTIOIS ANGMAKAULARAOTEANR CA EASPILIAIPON RNDU SN FIREWALL WREIKOOC IFDPRDHI OOTEULBYTE JAVASCRIPT Found (left) at (0,9) PIXEL found (left) at (0,14) INTERNET found (down) at (0,15) GIF found (down) at (0,16) GOOGLE found (up) at (5, 17) LCD found (down) at (1,0) EMAIL found (left) at (1,4) MEMORY found (right) at (1,3) MOUSE found (right) at (1,10) SHAREWARE found (down) at (1,13) TASKBAR found (left) at (2,7) UNIX found (left) at (2,11) SECURITY found (up) at (9,12) SOFTWARE found (down) at (2,14) FOLDER found (down) at (2,16) ICON found (up) at (6,1) Close Hints Thc puzzle can be represented as a right-sized two-dimensional array of characters (cha). ASLring can be converted into a right-sized array of characters via the Str:rg method cochaArray A word can occur in any of 8 directions starting from a square in the puzzle: o to the right (normal text: MEMORY above) o to the left (backwards: PIXE) o downwards (INTERNET) o upwards (GOOGLE) o diagonally downwards to the right (APPLICAZION) o diagonally downwards to the left (CTAT) o diagonally upwards to the right (WIRELESS) o diagonally upwards to the left (PROGRAMMER) Consider writing separate methods such as: privale boolean search:kigt... ( inl. x, ir:LY, SLsing word) { that look for a word starting from position (x, y) in the puzzle and proceeding in the designated direction (right in this case). The method returns true if the word is found in the designated direction starting from the indicated position. You would have 8 suich methods. Lach of these methods will be quite similar. A word cannot occur starting from (x,y) if there isn't enough room from (x, yto the edge of the puzzle in the designated direction. For example, if the puzzlc is 10x10, we are checking from position (3,7! to the right and the word is more than 3 characters in length, Consider developing the solution in phases such as: 1. read and display puzzle 2. check for a single word in one direction only (eg, right) 3. repeatedly add the ability to check for a single word in each of the other 7 directions 4. add the ability to search for multiple words. Don't lise the big puzzle for testing. Make special small puzzles to test each of the 8 search methods above such as the included puzzle right.txthat has only one word written to the right. Submission: Details regarding preparation and submission of assignments in COSC 1P03 are found on the COSC 1P03 Sakai Site as Assigrmont Guidelires under Course Docurer:Ls. This document includes a discussion of assignment preparation, programming standards, evaluation criteria and academic conduct (including styles for citation) in addition to the detailed assignment submission process copied below. To prepare and submit the assignment electronically, follow the procedure below: 1. Ensure your folder (say Assign -) for the assignment is accessible on your computer and contains the Dr. Java project and all associated java and c_ass files for your assignment. 2. Create a .zip file of your submission by right-clicking on the top level folder (i.e. Assigr: ) and selecting Serd to/Compressed 12.oped folder. A zipped version of the folder will be created. Use the default name (Assign_1.zip). It is important that you only submit a .zip file, notraz or, tar or any other type of compression. If you use a type of compression other than .zio your assignment may not be marked. 3. Log on to Sakai and select the COSC IPO3 site. 4. On the Ass-9acer...s page select Assignmen.. 1. Allach your .zio lilo (eg. Assign_1.zip) to the assignment submission (use the Add AllachsenLs bullon and select Browse). Navigate to where you stored your assignment and select the .zip file (eg. Assign 1,7:9). The file will be added to your submission. Be sure to check the fono: Pledge checkbox, Press Submit to submit the assignment. 5. Assignments incorrectly submitted will lose marks. Assignments without the required files may not be marked. DrJava The .zip folder you submit should contain the project folder including all files relevant to the project - the .drava, java and .class files for the assigninent. If your project requires any special instructions to run, these instructions must be included in a read me lilc. Other Platforms Students must create their project using an IDE that is available on the Brock Computer Science lab computers. Currently, these are NetBeans, IntelliJ and Dr. Java, Markers must be able to open, compile and run your project on the lab computers. Assignments completed using some other IDE may not be marked

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

Database Concepts

Authors: David M. Kroenke, David J. Auer

7th edition

133544621, 133544626, 0-13-354462-1, 978-0133544626

More Books

Students also viewed these Databases questions

Question

3. Show your interest in your students as individuals.

Answered: 1 week ago