Question: How would I go about in doing this code? Its a Visual Studio C++/ Console/Windows Terminal Application. I am stumped and have been working at

How would I go about in doing this code? Its a Visual Studio C++/ Console/Windows Terminal Application. I am stumped and have been working at this for about a couple hours. Please some help in knowing how to use these inputs to display them in the orientation that the user inputs. Mostly, I need help with how to write the loops so that the outputs can display correctly.

Have the user type provide a 1) string value as input, and a 2) display direction as input (indicating whether to display the letters of the entered word, either forward or backward), and 3) a display orientation as input (indicating whether to display the letters of the entered word, either horizontally or vertically). Using the users entered string, and the users forward/backward preference, and the users horizontal/vertical preference - display the resulting output on the console.

For example AMBULANCE, forward, vertical, would be displayed as each character one line at a time:

A

M

B

U

L

A

N

C

E

For example AMBULANCE, backward, vertical, would be displayed as each character one line at a time:

E

C

N

A

L

U

B

M

A

For example AMBULANCE, forward, horizontal, would be displayed as:

AMBULANCE

For example AMBULANCE, backward, horizontal would be displayed as:

ECNALUBMA

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!