Case Manipulator – Write a C++ program with three functions: upper, lower, and flip. Each function should accept a C-string as an argument. The upper function should step through all the characters in the string, converting each to uppercase. The lower function, should step through all the characters in the string converting, each to lowercase. The flip steps through the string, testing each character to determine whether it is upper or lowercase. If upper, it should convert to lower. If lower, it should convert to upper. The main function should accept one string from the user, then pass it to each of the functions. Output: The original string, the uppercase, lowercase, and flipped case strings should all be displayed.
Case Manipulator – Write a C++ program with three functions: upper, lower, and flip. Each function should accept a C-string as an argument. The upper function should step through all the characters in the string, converting each to uppercase. The lower function, should step through all the characters in the string converting, each to lowercase. The flip steps through the string, testing each character to determine whether it is upper or lowercase. If upper, it should convert to lower. If lower, it should convert to upper.
The main function should accept one string from the user, then pass it to each of the functions.
Output: The original string, the uppercase, lowercase, and flipped case strings should all be displayed.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images