Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

what will be the code for this? Write a function to reverse all the characters of each word in an input string i.e input1. capitalize

what will be the code for this?
image text in transcribed
Write a function to reverse all the characters of each word in an input string i.e input1. capitalize only the first letter of each word and return the output string. Input Specification: input1: An inputstring Output Specification: Return a string with the characters of each word in the reverse order and the first letter of each word capitalized. Example 1: input1: Hello world Output: Olleh Dirow Explanation: The reverse of the word "Hello" with its first letter capitalised is "Olleh" and similarly for the word "world", it is "Dirow". Hence the output string returned is Olleh Dlrow. Example 2

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

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

More Books

Students also viewed these Databases questions