Using C++ programming. Write a program that takes a string of input from the user and separates the string of words based on the premise that the string contains words whose first letter is uppercase. Then, display the phrase (or sentence) to a string in which the words are separated by spaces and only the first word of the phrase starts with an uppercase letter. For example, if the user enters "IAmTheTeacher", then the program would display: "I am the teacher" on the screen.
Program:
#include<iostream>
using namespace std;
int main()
{
string str,outputStr;
int i;
cout<<"Enter a string: ";
cin>>str;
for(i=0;i<str.length();i++)
{
if(str[i]>='A' && str[i]<='Z')
{
if(i!=0)
outputStr=outputStr+" ";
outputStr=outputStr+str[i];
}
else
{
outputStr=outputStr+str[i];
}
}
cout<<outputStr;
return 0;
}
Output:

OR
#include<iostream>
using namespace std;
int main()
{
string str;
int i;
cout<<"Enter a string: ";
cin>>str;
cout<<"Output String: ";
for(i=0;i<str.length();i++)
{
if(str[i]>='A' && str[i]<='Z')
{
if(i!=0)
cout<<" ";
cout<<str[i];
}
else
{
cout<<str[i];
}
}
return 0;
}

Using C++ programming. Write a program that takes a string of input from the user and...
You will write three static methods to manipulate an input
String in different ways using various String methods. You need to
provide the code for each of the three static methods in class
StringPlay (requirements for each listed below). You will also
change the control statement in the test harness to allow for
variations in the sentinel value. You need to modify the loop
control condition in Lab09.java so that user inputs of ‘finish’,
“FINISH”, “FiniSH”, “fINISH”, etc. will end...
Using Java write a program that takes a string input from the user and then outputs the first character, then the first two, then the first three, etc until it prints the entire word.
Assembly Programming INCLUDE Irvine32.inc Make a program that takes a string and a word as inputs from the user and searches the word in the string. If it finds the word in the string, it prints “ Found”, else it prints “ Not found”. Note that i t is not searching for the matching characters but searching for the corresponding word. For example, suppose a string is “I am a teacher.” and a word for search is “tea”. Now the...
(Python Programming)Write a Python program that prompts the user to enter a list of words and stores in a list only those words whose first letter occurs again within the word (for example, 'Baboon'). The program should display the resulting list.
***LOOPS NOT ALLOWED*** String variables and use of String methods: Write a complete Java program which prompts the user for a string with 3 words each separated by a single space and reads the line into one String variable using nextline(). Extract each word and add them to a new String variable in reverse order with a space between the words. Have the 1st letter of the new string in upper case and all other strings in lower case letter....
Write a Java Program that performs the following functionalities: and you can use if statements, cases, and string methods Enter a new main sentence Find a String Find all incidents of a String Find and Replace a String Replace all the incidents of a String Count the number of words Count a letter’s occurrences Count the total number of letters Delete all the occurrences of a word Exit The program will display a menu with each option above, and then...
Write a C program that prompts the user for an input string with all lowercase letters. Your program should then sort the characters in the string and print the sorted string. Assume that the string contains no spaces and has at most 30 lowercase characters. Your program should loop continually until the user enters “q” to quit.
Implement a program that requests from the user a list of words (i.e., strings) and then prints on the screen, one per line, all four-letter strings in the list. >>> Enter word list: ['stop', 'desktop', 'top', 'post'] stop post An acronym is a word formed by taking the first letters of the words in a phrase and then making a word from them. For example, RAM is an acronym for random access memory. Write a function acronym() that takes a...
Write a C++ program to get an input string from the user, and output the string in uppercase letters. Use a dynamic character array to store the string. ?(this can be from any input file, there is no specific file.)
Write a C program where user enter a string input, tokenizer the string using space character. Calculate the lengh of string. Find word start. Find word end. Count words.