Answered step by step
Verified Expert Solution
Question
1 Approved Answer
f . Write a C program that removes characters in a string except alphabets ( Assume English alphabet is used: a - z and A
f Write a program that removes characters in a string except alphabets Assume
English alphabet is used: and AZ You cannot use string.h library for this exercise.
A sample run would be as follows:
Please enter your string: helloworld
Helloworld
Your program needs to have the following functions:
isalphabet : This function will take a character and returns true if it is an
English alphabet character or AZ and returns false if it is not. You need to
decide about the input. Add comment for his function and explain the input
and output.
cleanstring: This function will remove the characters that are not
alphabet characters in a given string. You need to decide about the input
and return here. Add comment for his function and explain the input and
output.
You need to ask user to enter a string in the main and then make use of
cleanstring function which makes use of isalphabet to clean the string.
You will then display the cleaned string in the main.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started