Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Statistics lab using C Arrays #include Text Sta The purpose of this assignment is to give you practice using text and da processing techniques in

Statistics lab using C Arrays #include

image text in transcribed

image text in transcribed

Text Sta The purpose of this assignment is to give you practice using text and da processing techniques in order to compute some statistics about a f The assignment will also give you a chance to learn more about str and about how to organize a moderate-sized program. file of text Construct a program, stats.c, to examine the characters and wo file, getty.txt. Your program should perform the following operations a dala Count the number of lines in the text. Count the number of words in the text. . Calculate the average length of all the words in the text. Display a histogram of the length of words in the text, i.e., a bar graph such as. 1: 2** to indicate that there are 2 one letter words in the text, 6 two letter words, 3 three letter words, 8 four letter words, etc. Count the number of characters in the text, excluding blanks and punctuation. Display a table showing the frequency of each letter in the text. Count the number of vowels in the text and output the frequency vowel as a percentage of the total number of vowels read. e frequency of Remember that the main () function should appear as the first functo program. Be sure to use function prototypes for each of the functions used in your program. that are

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Microsoft Visual Basic 2017 For Windows Web And Database Applications

Authors: Corinne Hoisington

1st Edition

1337102113, 978-1337102117

More Books

Students also viewed these Databases questions