Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

someone please help me! c progrmming Description Strings are collections of characters stored in memory. Strings can include any symbol, such as letters, numbers, punctuation,

image text in transcribedsomeone please help me! c progrmming

Description Strings are collections of characters stored in memory. Strings can include any symbol, such as letters, numbers, punctuation, and more. Strings are a fundamental to many applications in programming and being able to analyze them is important. In this assignment, we will be creating a program that imports a long string from a file and performs a breakdown analysis on the characters of the string. Instructions You will be given a skeleton code to start from in the appendix. There, you will find four functions already declared for you: 1. Main-Note: This function is partially written. You MUST complete it. Asks the user for the path to a text file, calls loadFromFile to import in the string to the program, and calls analysis on the string. This function also loops this as long as the user wants to analyze different files. Analyze-Note: You HAVE TO declare this function. Takes a string as an argument and performs a traversal of the string. With each character, the function will determine if it is the following 2. a. A Consonant b. A Vowel (assume 'y is always a vowel to make this program easier to write) c. A White Space d. A Punctuation Mark e. A Numerical Digit(0-9) The function will keep a running count of each of the above categories, and once the function has searched through the string, it will print the results of each category SizeofFile- You DO NOT have to write this function. It determines the number of characters in a file. Used in loadFromFile loadFromFile- You DO NOT have to write this function. Used to load a string from a file, and dynamically allocates memory for that string. Returns the address of the string in memory. The function takes in a file name. 3. 4

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

Inductive Databases And Constraint Based Data Mining

Authors: Saso Dzeroski ,Bart Goethals ,Pance Panov

2010th Edition

1489982175, 978-1489982179

More Books

Students also viewed these Databases questions