Reference no: EM132109210
PROGRAMMING IN MATLAB
WORD SEARCH PROGRAM
IGOLCQNRKSXT
LXHSRNKANSAS
MPAYAWCSAXET
MNDUFLNNIBMS
APISOXAOJKJA
IVSCDCWSDAND
NHLKRACJKFGA
EAOREGONCABV
KWTLBOHOLELE
PAJBBAHAGDEN
VILFDIYKTGAX
XIKVOWPCLUYW
Write an m-file in Matlab which can perform a word search, such as what you might find in a puzzle book. Words will be located somewhere in a two-dimensional array of letters. The instructor will provide an array for the groups to use to help test their program. This array contains all of the states in the United States that are six characters in length or less. Each group should store the word search file on their own disk or P-drive.
Each group will provide the following for this lab:
A working program: The program code should be commented in sufficient detail to allow the reader to understand the coding approach.
A write-up which includes:
a high-level flowchart of the operation of the program
an attachment to your Word document of the m-file code
include a cover sheet, with name(s), class, date and lab number
include this signed-off page scanned as an attachment if your program has been successfully demonstrated
the write-up should convey how the program was developed, what issues were encountered, whether the program was successful (and if not, why not), etc.
Lab Details
1. The program should be able to read in the following data files:
The word search file - this file contains the word search array
The file of words to be searched - the executed program should be able to scan for each word (state) in this file and locate that word in the word search.
Note that words in the word search may go in any of eight directions.
2. The result of executing the word search program should clearly indicate where each word begins in the word search array (row and column), and which direction it travels (e.g., up and to the right, straight down, etc.).
The word search should be flexible such that if the words are placed in a different word search of the same grid size (12x12), the new word locations will still be found.
Create a method that determines a score for each
: Using the helper class and text files described above, load the 20 movie names and the movie ratings from 30 people into two arrays in memory.
|
Code a program with functions to search and sort an array
: Code a program with functions to search and sort an array, along with a print menu function and a dispatch function.
|
What is a programming language
: Answer the following Question : What is a programming language?
|
Demonstrate the class with a driver program
: In a course, a teacher gives the following tests and assignments: A lab activity that is observed by the teacher and assigned a numeric score.
|
Write an m-file in matlab which can perform a word search
: Convey how the program was developed, what issues were encountered, whether the program was successful (and if not, why not), etc.
|
Create a patron class for the library
: The class will have a user's name. library card number, and library fees (if owed). Have functions that access this data, as well as a function to set the fee.
|
Print out an error message that contains the first non-digit
: This function accepts a C-string parameter (null-terminated char array) and return true if the C-string contains only digits.
|
Write a public static method named static long tribonacci
: Write a public static method named static long tribonacci(int n, long a, long b, long c)
|
Create an sql or access database with all your friends
: Create an SQL or Access database with all your friends' information and write a program to load the names in the combo box and also search the database.
|