Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Input a text string from user and count number of spaces in it For example if user enters I am a student in KFU

image text in transcribed
1. Input a text string from user and count number of spaces in it For example if user enters I am a student in KFU Then you answer should be Number of spaces in text is 5 2. Change exercise 1 and find frequency of a character in it. the character should be given by user( For example if user enters a string I am a student in KFU And then user enter a character a Frequency ofa is 2 (appears two times in string) 3. Input the first and second part of your name and combine the two parts. Display the combined name. Use streat(s1, s2) for this assignment 4. Input a text string from user and count vowels in the text. Display the vowel count to user 5. Input the names of two people in your program and compare the names whether they are same names or not. User stremp(s1, s2) 6. Input your name as text string and print your name in reverse order, For example if name is abedef Then you answer should be fedcba 7. Input a word from user, reverse the word and compare with original word, check whether reversed word is same as original or not. Such words whose reverse is same as original are called Palindromes e.g. racecar, deed, madam etc. 8. Input a text string from user and delete vowels in the text. Display the text to user after deletion ofall vowels

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

Students also viewed these Databases questions