ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 10 Weeks Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 29 May 2017 My Price 8.00

Write a program that scrambles a sentence

Write a program that scrambles a sentence by: 1) reversing the order of words in a sentence and 2) shifting all the letters in each word by two positions to the right. When shifting to the right, the letters wrap around to the beginning. This program should:

 

  • prompt a user to enter a sentence ending with either a period, a question mark or an exclamation mark

  • output the same sentence with all of the words, with letters shifted to the right by two positions and printed in reverse order.

 

Here is an example of how the program should behave:

 

Enter a sentence ended by a ‘.’, a ‘?’ or a ‘!’: you can cage a swallow can’t you?

 

Reversed sentence: ouy ‘tcan owswall a geca anc ouy?

 

Code for this program should be in a file named scramble_sentence.c

Answers

(11)
Status NEW Posted 29 May 2017 02:05 AM My Price 8.00

-----------

Not Rated(0)