Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask MATLAB Expert

Program: Using The 1-D Matrix Grade Level and Reading Ease Score

Overview:

In this assignment you will practice using 1-dimensional arrays in MATLAB. You will hard- code a set of data into multiple arrays. This data will be used to perform 2 basic computations and the results will be stored in 2 respective new arrays.

Concept Objectives:

• Initialize Array with hardcoded data
• Access individual elements of Array
• Assign individual elements of Array with computation results

Grade Level and Reading Ease Score:

Two ways to measure how difficult a piece of text is to read are Grade Level and Reading Ease Score. These quantities can be calculated using The Flesch formulas seen below. The number of words, the number of sentences, and the number of syllables contained in a piece of text are used to determine the reading ease score and the appropriate grade level required for the reader.Flesch-Kincaid Readability Test - Wikipedia

ReadingEaseScore = 206.835 - 1.1015 × ASL - 84.6 × ASW

GradeLevel = 0.39 × ASL + 11.8 × ASW - 15.59

with

ASL =average sentence length (number of words / number of sentences)

ASW= average word length in syllables (number of syllables / number of words)

Input Data : The table below shows sample data from 4 books. Your program will compute the Grade Level and Reading Ease Score for each book and save this information in 2 respective arrays.

Data for 4 books:

Name

# Words

# Sentences

# Syllables

Dr. Suess

57

10

58

IRS Code

86

2

162

Thermodynamics text

149

8

264

MATLAB text

127

5

199

Results for 4 books:

Name

Reading Ease Score

Grade Level

Dr. Suess

 

 

IRS Code

 

 

Thermodynamics text

 

 

MATLAB text

 

 

Assignment :

1. Initialize 3 arrays with the data from the table. Give the arrays descriptive names.

2. Calculate ASL and ASW for each book.

3. Calculate Reading Ease Score and Grade Level for each book. This data must be stored in 2 new arrays.

4. Print the results in an easily readable formatted table to the command window. It should be clearly labeled and should contain it Book Name, Reading Ease Score and Grade Level for each book.

5. Bonus Write a MATLAB program that can read a text file and extract the needed data to do the calculations in this lab.

MATLAB, Engineering

  • Category:- MATLAB
  • Reference No.:- M91695284
  • Price:- $90

Priced at Now at $90, Verified Solution

Have any Question?


Related Questions in MATLAB

What comparison of means test was used to answer the

What comparison of means test was used to answer the question

Assignment -matlab codes and simulated model in

Assignment - Matlab codes and simulated model in simulink/matlab and truetime. 1. Matlab codes and simulink model for pid controller optimization using particle swarm optimization (PSO) my plant is integer order 1000/(s^ ...

Question a safe prime is a prime number that can be written

Question : A safe prime is a prime number that can be written in the form 2p + 1 where p is also a prime number. Write a MATLAB script file that finds and displays all safe primes between 1 and 1000.

Assignment -data is given on which want to do computational

Assignment - Data is given on which want to do computational production planning using Metaheuristic MATLAB Programming: 1) Ant Colony Algorithm on both Partial and Total Flexible Problem. 2) Bee Algorithm on both Partia ...

Assignment - matlab programmingusing appropriate matlab

Assignment - MatLab Programming Using appropriate MatLab syntax, write the code required to analyse and display the data as per the problem description. The order of the MatLab Program should be as follows: Variables and ...

Question - verify the attached paper with matlab and get

Question - Verify the attached paper with matlab and get all the results in the paper and explain step by step the matlab code. Paper - Improving Massive MIMO Belief Propagation Detector with Deep Neural Network. Attachm ...

Assignmentafter the success of your robo-advice venture you

Assignment After the success of your robo-advice venture you decide to explore alternative sources of profitability for your company. You realize that Australian investors are often forced to chose between expensive acti ...

Assignment -we have daily gridded rainfall data of 40 years

Assignment - We have daily gridded rainfall data of 40 years and structure of the dataset is like below; Lat = [6.5:0.25:38.5]; Lon = [66.5:0.25:100]; Rainfall (135x129x365x40) (Lon, Lat, days, years). Now, we looking fo ...

Assignment details -need to write a code for connecting

Assignment Details - Need to write a code for connecting segments (Lines) a special case of TSP. The problem is to connect lines in 2d/ 3d space with path obstructions. Can you help me write the code for this? Hope you m ...

Suppose that a student has the option of enrolling for a

Suppose that a student has the option of enrolling for a single elective during a term. The student must select a course from a limited list of options: "English, " "History, " "Biology, " "Computer, " or "Math." Constru ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As