Question: Write a C++ program to create a character array of size 50 0 . Prom pt the user to e nter some text (in cluding
Write a C++ program to create a character arrayof size 500.Prompt the user to enter some text(including spaces). Now, find and print the number of words that contain both alphabetic and non-alphabetic characters (1, 2, $, etc.). Also, display the selected words on the console. E.g. (apples, meal, ID): These words only have alphabetic characters. However, your Registration No. (L1F15BSCS0123) has both alphabetic and non-alphabetic characters.InputEnter some text: We are happy to have 5 apples in the meal. Your ID is L1F15BSCS0123. You are a student of the 2nd semester. We will shut down all the 5 bus stations. You are going to suffer this for 30 minutes. You are not happy. We will need to shut down 6 of the 12 jails. We should help those who suffer in 1st week.
Please do it in C++
Step by Step Solution
3.36 Rating (152 Votes )
There are 3 Steps involved in it
include using namespace std int main char str 500 string ... View full answer
Get step-by-step solutions from verified subject matter experts
