We have been studying C string functions, and in class we reviewed these: strlen, strcpy, strncpy, strchr,strrchr, strstr, strcmp, strcat This week you will write your own version of some of these string functions. **Important: You cannot use the built in string functions. You must implement each stage described below in a separate function and not in main()** Specifically you will write one function each for the below stages. Running the program would look like: Enter a word: cat That word has length: 3 cat without vowels is: ct Enter how many duplicates to make: 3 ctctct Stage 1: Write the myStrlen() function so that it returns the length of the any given string Stage 2: Write a function removeVowels() such that it removes all the vowels in the word entered by the user and returns a vowel-less word. Stage 3: Write a function duplicateString() such that it duplicates the string of vowel-less words some number of times.
We have been studying C string functions, and in class we reviewed these: strlen, strcpy, strncpy, strchr,strrchr, strstr, strcmp, strcat This week you will write your own version of some of these string functions. **Important: You cannot use the built in string functions. You must implement each stage described below in a separate function and not in main()** Specifically you will write one function each for the below stages. Running the program would look like: Enter a word: cat That word has length: 3 cat without vowels is: ct Enter how many duplicates to make: 3 ctctct Stage 1: Write the myStrlen() function so that it returns the length of the any given string Stage 2: Write a function removeVowels() such that it removes all the vowels in the word entered by the user and returns a vowel-less word. Stage 3: Write a function duplicateString() such that it duplicates the string of vowel-less words some number of times.
C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter3: Input/output
Section: Chapter Questions
Problem 12SA: 12. What is the output of the following program? (2, 3, 6, 8)
#include <iostream>
#include...
Related questions
Question
7.9 Lab 7: C Strings
We have been studying C string functions, and in class we reviewed these: strlen, strcpy, strncpy, strchr,strrchr, strstr, strcmp, strcat This week you will write your own version of some of these string functions.
**Important:
You cannot use the built in string functions. You must implement each stage described below in a separate function and not in main()**Specifically you will write one function each for the below stages. Running the program would look like:
Enter a word: cat That word has length: 3 cat without vowels is: ct Enter how many duplicates to make: 3 ctctctStage 1: Write the myStrlen() function so that it returns the length of the any given string
Stage 2: Write a function removeVowels() such that it removes all the vowels in the word entered by the user and returns a vowel-less word.
Stage 3: Write a function duplicateString() such that it duplicates the string of vowel-less words some number of times.
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
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning