Assignment: In this assignment, you can calculate an approximation of the Flesch-Kincaid readability test for any book found at Project Gutenberg if you are working on your own machine. If you are completing the project in Zybooks, then you'll be using one of the two files that I've uploaded. The two files are: • Journey To The CenterOfTheEarth.txt . Chapter 1 Journey.txt We will make a couple of simplifying assumptions: . We will assume that every word in the file is part of the book (which isn't true - but it should be close enough for a rough estimate) • We will assume that there are basically 4 letters per syllable since we can count letters in a word, since we can't count syllables without reading in an entire dictionary. For the purposed of this lab, if a word is 4 letters or less, we'll assume that it is one syllable. If it has more than 4 letters, but less than 8 letters, we'll assume that it is two syllables in length. If it contains more than 8 letters, but less than 12, we'll assume that it has 3 syllables. Also, we'll assume that no words are more than 4 syllables in length. • We will assume that every period, question mark, or exclamation point ends a sentence With these simplifying assumptions, you should be able to calculate the reading level for the book. Sample Execution: Be sure that your program uses the exact same format as the sample executions below: Enter the name of the file containing the book: Chapter 1 Journey.txt The name of the file: Chapter 1 Journey.txt The average number of words per sentence: 19.69 The average number of syllables per word: 1.52 The average reading level: 10.05 Note: The italics would be entered by the user and will change with different tests. 427864 2734514.qx3zqy7 LAB ACTIVITY 7.14.1: Reading Level Downloadable files Chapter1Journey.txt and Journey To The CenterOfThe Earth.txt Download 0/100
Assignment: In this assignment, you can calculate an approximation of the Flesch-Kincaid readability test for any book found at Project Gutenberg if you are working on your own machine. If you are completing the project in Zybooks, then you'll be using one of the two files that I've uploaded. The two files are: • Journey To The CenterOfTheEarth.txt . Chapter 1 Journey.txt We will make a couple of simplifying assumptions: . We will assume that every word in the file is part of the book (which isn't true - but it should be close enough for a rough estimate) • We will assume that there are basically 4 letters per syllable since we can count letters in a word, since we can't count syllables without reading in an entire dictionary. For the purposed of this lab, if a word is 4 letters or less, we'll assume that it is one syllable. If it has more than 4 letters, but less than 8 letters, we'll assume that it is two syllables in length. If it contains more than 8 letters, but less than 12, we'll assume that it has 3 syllables. Also, we'll assume that no words are more than 4 syllables in length. • We will assume that every period, question mark, or exclamation point ends a sentence With these simplifying assumptions, you should be able to calculate the reading level for the book. Sample Execution: Be sure that your program uses the exact same format as the sample executions below: Enter the name of the file containing the book: Chapter 1 Journey.txt The name of the file: Chapter 1 Journey.txt The average number of words per sentence: 19.69 The average number of syllables per word: 1.52 The average reading level: 10.05 Note: The italics would be entered by the user and will change with different tests. 427864 2734514.qx3zqy7 LAB ACTIVITY 7.14.1: Reading Level Downloadable files Chapter1Journey.txt and Journey To The CenterOfThe Earth.txt Download 0/100
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
In standard C programming please

Transcribed Image Text:Assignment:
In this assignment, you can calculate an approximation of the Flesch-Kincaid readability test for any book found at Project Gutenberg if you
are working on your own machine. If you are completing the project in Zybooks, then you'll be using one of the two files that I've uploaded.
The two files are:
Journey To TheCenterOfThe Earth.txt
Chapter 1 Journey.txt
We will make a couple of simplifying assumptions:
• We will assume that every word in the file is part of the book (which isn't true but it should be close enough for a rough estimate)
• We will assume that there are basically 4 letters per syllable since we can count letters in a word, since we can't count syllables
without reading in an entire dictionary. For the purposed of this lab, if a word is 4 letters or less, we'll assume that it is one syllable. If it
has more than 4 letters, but less than 8 letters, we'll assume that it is two syllables in length. If it contains more than 8 letters, but less
than 12, we'll assume that it has 3 syllables. Also, we'll assume that no words are more than 4 syllables in length.
• We will assume that every period, question mark, or exclamation point ends a sentence
●
With these simplifying assumptions, you should be able to calculate the reading level for the book.
Sample Execution: Be sure that your program uses the exact same format as the sample executions below:
Enter the name of the file containing the book: Chapter 1 Journey.txt
The name of the file: Chapter 1 Journey.txt
The average number of words per sentence: 19.69
The average number of syllables per word: 1.52
The average reading level: 10.05
Note: The italics would be entered by the user and will change with different tests.
427864.2734514.qx3zqy7
LAB
ACTIVITY
7.14.1: Reading Level
Downloadable files
Chapter1 Journey.txt
and Journey To The Center Of The Earth.txt
main c
Download
0/100

Transcribed Image Text:Objectives:
• To practice working with files
To practice working with strings
●
Background:
In this lab we will be calculating the reading level of books using plain text e-books from Project Gutenberg. Project Gutenberg,
https://www.gutenberg.org/, is an online library e-books that may be accessed free of charge. It was started by Michael Hart who is
credited with creating the first e-book in 1971. For more information about Project Gutenberg, read the mission statement:
https://www.gutenberg.org/about/background/mission_statement.html
The Flesch-Kincaid readability test is designed to indicate how difficult a passage or book is to read. It is a calculation based on the number
of words in a sentence and the number of syllables in a word. Its calculation results in a number that indicates the grade level at which the
passage or book is written.
The formula is:
FKRA= (0.39xASL) + (11.8xASW) - 15.59
formula from http://en.wikipedia.org/wiki/Flesch%E2%80%93Kincaidreadabilitytest
where ASL is average sentence length (number of words in a sentence) and ASW is average syllable per word.
Assignment:
In this assignment, you can calculate an approximation of the Flesch-Kincaid readability test for any book found at Project Gutenberg if you
are working on your own machine. If you are completing the project in Zybooks, then you'll be using one of the two files that I've uploaded.
The two files are:
Journey To TheCenterOfTheEarth.txt
. Chapter1 Journey.txt
We will make a couple of simplifying assumptions:
. We will assume that every word in the file is part of the book (which isn't true - but it should be close enough for a rough estimate)
We will assume that there are basically 4 letters per syllable since we can count letters in a word, since we can't count syllables
without reading in an entire dictionary. For the purposed of this lab, if a word is 4 letters or less, we'll assume that it is one syllable. If it
has more than 4 letters, but less than 8 letters, we'll assume that it is two syllables in length. If it contains more than 8 letters, but less
than 12, we'll assume that it has 3 syllables. Also, we'll assume that no words are more than 4 syllables in length.
• We will assume that every period, question mark, or exclamation point ends a sentence
With these simplifying assumptions, you should be able to calculate the reading level for the book.
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps

Recommended textbooks for you

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education

Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY