Answered You can hire a professional tutor to get the answer.

QUESTION

PART 1 Write a program that inputs two words one after the other and then displays a number of facts about each as listed below. For the first word,...

PART 1Write a program that inputs two words one after the other and then displays a number of facts about each as listed below. For the first word, it displays the following:The whole word as entered by the user. The whole word in upper case letters. The whole word in lower case letters. The total number of characters in the word. The first character in the word. The last character in the word. For the second word, it displays the following:The whole word as entered by the user. The whole word in upper case letters. The whole word in lower case letters. The total number of characters in the word. The first character in the word. The last character in the word. For both the words together, it does the following:It displays whether the two words are same or not the same. It lists the two words alphabetically. PART 2Redo Part 1 using C++ strings.Note: You can use overloaded functions to complete this program. If you use overloaded functions, you do not need two programs, just call the functions from main. Remember that the overloaded functions have the same name but different parameter list. Testing: Both programs ( functions) will display the same output. Note that only the implementation is different, the end result, output, is the same for both partsTest1:Enter the first wordHelloEnter the second wordByeReport:First Word: HelloFirst Word Lower Case: helloFirst Word Upper Case: HELLOFirst Word Total Characters: 5First Word First Character: HFirst Word Last Character: oSecond Word: ByeSecond Word Lower Case: byeSecond Word Upper Case: BYESecond Word Total Characters: 3Second Word First Character: BSecond Word Last Character: eFirst Word & Second Word Comparison:Not EqualFirst Word & Second Word Alphabetical Listing:ByeHelloTest2:Enter the first wordHealthEnter the second wordWealthReport:First Word: HealthFirst Word Lower Case: healthFirst Word Upper Case: HEALTHFirst Word Total Characters: 6First Word First Character: HFirst Word Last Character: hFirst Word: WealthFirst Word Lower Case: wealthFirst Word Upper Case: WEALTHFirst Word Total Characters: 6First Word First Character: WFirst Word Last Character: hFirst Word & Second Word Comparison:Not The SameFirst Word & Second Word Alphabetical Listing:HealthWealth

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question