Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Database Management Systems Designing And Building Business Applications

Authors: Gerald V. Post

1st Edition

0072898933, 978-0072898934

More Books

Students also viewed these Databases questions