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

Figurative language worksheets with answers - Tradeoffs for Southwest - Nucor success factors - 1 starch solution preparation - Reflective Journal - Flinders university bedford park map - Essay - ORGAN THEORY DQ 4 - Brain train review center tuition fee - 01.04 service learning project part a - Is a compilation a nonattest service - Name the physical property hardness color streak etc - European group for the study of deviance and social control - Balbirnie oral care glenrothes - Dynamic cart physics lab - Staffing in principles of management - NEED IN 15 HOURS or LESS - They say i say sparknotes - 32 bit multiplication in 8086 assembly language program - Discussion: Presidential Agendas - Homework kills trees t shirt - Manning v grimsley case brief - A classic experiment by psychologist george sperling demonstrated that - Heineken marketing mix 4p - Stepsmart fitness case analysis - 350 words - Best intermediate hypertrophy program - Act 1 scene 3 macbeth analysis - Security+ guide to network security fundamentals - Computer work science - Order 2189405: Social media use and its relationship with collaborative learning and students motivation IN ABUDHABI SCHOOLS, - 978 1284107852 - Rolling wave planning example - Discuss this - Nutri quiz questions with answers - The old guitarist picasso - Landgate power of attorney form - Models for writers 12th edition answers - Touchstone 3.2: Draft an Argumentative Research Essay - Week 5 Slides , Dashboard/Outcome Report exercise - Tableau Visualization + Explanation, Dashboard or Outcome Report - Describe and explain - Investigating refraction of light experiment - CJUS 420 DB FORUM 2.... 2 replies due 9/07/2020 - Iacp code of ethics pdf - How many square miles are there in china - Locke and lathams goal setting theory - Katy perry firework lyrics in spanish - Is macconkey agar chemically defined - Frozen river diablo 2 - Hexadecimal calculator - The developing person through the lifespan 10th pdf - Kn mm to joules - Dba vs dbc osha - Alwaysrain irrigation inc would like to determine capacity requirements - Lumbar lateral shift correction - Kobo touch case uk - What is a theoretical orientation in counseling - How to build a static consolidation in excel - Dau tst 102 homework answers - ASSESSMENT Aptitude Test - Once upon a time family tree - Case study teamwork in the workplace - Health Assessments - Mkt 571 week 5 - 11 pages. Of this, a minimum of 7 pages must be written text. $5 per page . - Poetry makes nothing happen julia alvarez poem - Discsussion - Journey to the west word count - Wordly wise 3000 book 10 lesson 12 answer key - Country garden malaysia career - Coursed rubble masonry definition - Hist Blog - How many islands in the philippines - Dc dc converter capacitor selection - Becks workforce - Air france klm case study - Nepal health professional council - Stolen by jane harrison essay - Criminal Justice - Phone number type in sql - Draw the demand curve of eskom - Southwest airlines competitive advantage case study - E commerce solutions using iis architecture - Fall protection rescue plan doc - Creating a company culture for security example - Left neglected book club discussion questions - Read articles and answer questions - Help writing paper - Cite this for me uts harvard - Week 3 Discussion: SPECIAL TOPIC: WEEK 4 ASSIGNMENT - Psychologyy - Unisa online study material - Where is the love lyrics black eyed peas - Formal method model in software engineering - Security+ guide to network security fundamentals 4th edition review questions answers - Ritz carlton target customers - Which of the following goods belong in a competitive market - Which communication method would score highest in channel richness - Arches national park is located in southern utah - The texas consolidated electronics company is contemplating - Bacterial Pneumonia Research Paper