Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Challenge 2: string exercise: Backwards Create a method in C# that prompts the user for a sentence that has at least 6 words in it.

Challenge 2: string exercise: Backwards Create a method in C# that prompts the user for a sentence that has at least 6 words in it. Your code should do the following:

1. Display to the user the sentence they have entered

2. Reverse the words in the sentence

3. Display to the user the sentence in reverse. For example, if the sentence was Hello World the output would be dlroW olleH ? User Input: Prompt the user to enter in a sentence with at least 6 words Validate six or more words have been entered Console Output: Display the sentence the user entered Use a method to reverse the sentence and output the result

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_2

Step: 3

blur-text-image_3

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

Marketing Database Analytics

Authors: Andrew D. Banasiewicz

1st Edition

0415657881, 978-0415657884

More Books

Students also viewed these Databases questions