James B.

asked • 10/17/21

You must code this in c++. I have Included the full question in description.

Write a program that prompts users to enter:

 

o A character to use (any character besides *)

o The width of the display

o The height of the display

 

to produce an E shape. The middle horizontal line must print at line (height+1)/2. Validate user input to only be positive values and height must be at least 5 and width 2. Any invalid input must loop until a valid value is entered.

 

This is an example for width of 10 and height of 9

 

**********

*     

*     

*     

**********     

*     

*     

*     

**********

 

You must use separate functions to display the vertical and the horizontal lines.  


Preston Z.

Are you still looking for help with this coding problem? I would be happy to help you in a tutoring session, but as this is a direct coding problem I do not want to just post the completed code for you.
Report

11/01/21

1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.