Loading...

Messages

Proposals

Stuck in your homework and missing deadline? Get urgent help in $10/Page with 24 hours deadline

Get Urgent Writing Help In Your Essays, Assignments, Homeworks, Dissertation, Thesis Or Coursework & Achieve A+ Grades.

Privacy Guaranteed - 100% Plagiarism Free Writing - Free Turnitin Report - Professional And Experienced Writers - 24/7 Online Support

How to code a word search

14/10/2021 Client: muhammad11 Deadline: 2 Day

Pseudo Code For Wordsearch Java

A popular diversion in the United States, “word find” (or “word

search”) puzzles ask the player to find each of a given set of words in a square table filled with single letters. A word can read horizontally (left or right), vertically (up or down), or along a 45 degree diagonal (in any of the four directions) formed by consecutively adjacent cells of the table; it may wrap around the table’s boundaries, but it must read in the same direction with no zigzagging. The same cell of the table may be used in different words, but, in a given word, the same cell may be used no more than once. Write a computer program for solving this puzzle.

Trying to write it java first and then pseudo code. Need help.

public class WordSearch {

private static ArrayList board = new ArrayList()

private static Scanner scanner

public static void readBoard() {

while (true) {

line = input next line

if (line equals NULL)

exit from loop

Delete all spaces in line, convert to Uppercase and add to board } }

public static void printBoard() {

rows = getRows();

for (row=0 to rows)

print board.get(row); }

public static int getRows() {

return the number of rows }

public static int getCols() {

return the number of columns }

public static void createScanner() {

try {

scanner = new Scanner(new java.io.File("WordSearchInput.txt")); }

catch (Exception e) {

exit from program } }

public static void processWords() {

while (scanner has a next word) {

word = scanner.next();

findWord(word); }

public static void findWord(String word) {

rows = get the number of rows

cols = get the number of columns

for (row=0 to rows)

for (col=0 to cols)

findWord(word,row,col); }

public static void findWord(String word, int row, int col) {

for (drow=-1 to 1)

for (dcol=-1 to 1)

findWord(word,row,col,drow,dcol); }

public static void findWord(String word, int row, int col, int drow, int dcol) {

rows = get the number of rows

cols = get the number of columns

for (offset=0 to word.length) {

targetRow = row + offset*drow;

targetCol = col + offset*dcol;

if ((targetRow is less than 0) OR

(targetRow is greater than equal to rows) OR

(targetCol is less than 0) OR

(targetCol is greater than equal to cols))

return

boardChar = board.get(targetRow).charAt(targetCol);

wordChar = word.charAt(offset);

if (boardChar not equal to wordChar)

// mismatch, so we're done

return }

print (word, row, col, drow, dcol); }

public static void main(String[] args) {

createScanner();

readBoard();

printBoard();

processWords(); } }

}

Homework is Completed By:

Writer Writer Name Amount Client Comments & Rating
Instant Homework Helper

ONLINE

Instant Homework Helper

$36

She helped me in last minute in a very reasonable price. She is a lifesaver, I got A+ grade in my homework, I will surely hire her again for my next assignments, Thumbs Up!

Order & Get This Solution Within 3 Hours in $25/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 3 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 6 Hours in $20/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 6 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 12 Hours in $15/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 12 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

6 writers have sent their proposals to do this homework:

Homework Guru
Accounting Homework Help
Engineering Exam Guru
ECFX Market
Peter O.
Financial Assignments
Writer Writer Name Offer Chat
Homework Guru

ONLINE

Homework Guru

I will provide you with the well organized and well research papers from different primary and secondary sources will write the content that will support your points.

$42 Chat With Writer
Accounting Homework Help

ONLINE

Accounting Homework Help

After reading your project details, I feel myself as the best option for you to fulfill this project with 100 percent perfection.

$49 Chat With Writer
Engineering Exam Guru

ONLINE

Engineering Exam Guru

I will be delighted to work on your project. As an experienced writer, I can provide you top quality, well researched, concise and error-free work within your provided deadline at very reasonable prices.

$15 Chat With Writer
ECFX Market

ONLINE

ECFX Market

I can assist you in plagiarism free writing as I have already done several related projects of writing. I have a master qualification with 5 years’ experience in; Essay Writing, Case Study Writing, Report Writing.

$36 Chat With Writer
Peter O.

ONLINE

Peter O.

This project is my strength and I can fulfill your requirements properly within your given deadline. I always give plagiarism-free work to my clients at very competitive prices.

$20 Chat With Writer
Financial Assignments

ONLINE

Financial Assignments

I am an experienced researcher here with master education. After reading your posting, I feel, you need an expert research writer to complete your project.Thank You

$25 Chat With Writer

Let our expert academic writers to help you in achieving a+ grades in your homework, assignment, quiz or exam.

Similar Homework Questions

Gaia cs umass edu wireshark labs - Assignment: The Nurse Leader as Knowledge Worker - View of toledo painter crossword clue - Pr 2 3a journal entries and trial balance - Standard cost and variance analysis matrix - Factless fact table tutorialspoint - Discusion post 7 - Milestone taxi insurance contact number - Tombro industries is in the process of automating - Busschaert racing pigeons for sale - Speech #2 - Informative Speech Country Choice and 3 Research Sources - Ista 2a vs 3a - Chope jumbo riverwalk - Care plan for nutritional needs - Patton fuller community hospital networking project - Reaction of lime water with carbon dioxide - Http www transparency org research cpi overview - Aviary plans free download - Discussion 15 - 67/416 st kilda road - Scan sampling animal behaviour - Alan and marcus go forth and multiply - Mkt 571 researching marketing questions - Empirical formula of a hydrate lab answers - Nick and the candlestick - Brainpop atoms quiz answer key - Benefits of yoga ppt - Research, identify, and briefly describe at least four ways that networks contribute to business success. - How to read literature like a professor irony - Geek squad customer service hours - Prentice hall world history chapter 18 - Trail making test free - Oil and gas structural engineering - Door knocking sound prank link - Second ionisation energy equation - Cango week 8 final report - Wk 4 time traveler - Go absent without permission crossword clue - Kn mm2 to mpa - Writing Seminar for Criminal Justice - Round white pill 153 r - Nfpa 70e training powerpoint - Neher mcgrath calculation excel - MIPS project 2 - Stepmother from snow white - Case in point consulting - Inferno Summary - How to calculate book value per share of common stock - Iec 62271 100 2008 free download - Conflict resolution plan template - Pre lab questions answers biology - Tesla strategic audit - West coast vets hokitika - Advantages and disadvantages of promotion mix - Rectangular tray using sheet metal - Nestle case study managing organizational change - No 7 bus milton keynes - Managerial economics and other disciplines - A total asset turnover ratio of 2.8 indicates that - Us tariffs on tire imports from china case study answers - Discussion - International Expansion - Business Intelligence: Week 1: Discussion 1 - The flying machine theme - Sociology observation assignment - Http www bbc co uk news technology 34066941 - Please enter your pin followed by the hash key myntra - David soutar plastic surgeon - Health Org D1 - The serial position effect occurs when people - 30 second commercial examples - Cannon-bard theory of emotion - Azalea monocot or dicot - Personal essay revision - How to measure 3 phase power - Application for admission of securities to the official list - Draw the structure of dimethylethyl cyclopentane - You can grow your intelligence answers - Discussion Question - Advanced Industrial Hygiene - Sonnet 42 petrarch analysis - Assignment 7-1 - Rohm and haas harvard case study - PP5 - In the painting white clouds over xiao - Wk 5 - Apply: Backup Policies - Charis bible college colorado - Sociology how do people in america today define poverty? - Newcastle university risk assessment - Human Needs Theory and Psychosexual Theory - IG Micrososft Issue - 100 pair telephone cable color code - Who wants to be a millionaire movie - Act 3 scene 2 macbeth themes - Assignment, use 2 sources other than the video - Need Thursday morning - Theme of what you pawn i will redeem - Alarm eighteen books for sale - Royal north shore private maternity - Psa po box 593 - Cba merchant services phone number