Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In c++ Create a function called display_header that displays text surrounded by a rectangle composed of asterisks. The function receives a std::string text as input

In c++

Create a function called display_header that displays text surrounded by a rectangle composed of asterisks. The function receives a std::string text as input and does not return anything as an output, but displays the header. For example, given the text Hello World, the function should display this on screen:

**************** * Hello World! * **************** 

Create another function called within_width that helps make sure that the header does not exceed the width of the screen. The function accepts two parameters: a std::string text that is the text input used for displaying the header, and an unsigned short int which is the maximum width of the screen. Typically, this is 80 characters, but this parameter makes it more flexible for the user. The function returns a bool value indi

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

Repairing And Querying Databases Under Aggregate Constraints

Authors: Sergio Flesca ,Filippo Furfaro ,Francesco Parisi

2011th Edition

146141640X, 978-1461416401

More Books

Students also viewed these Databases questions

Question

Describe the appropriate use of supplementary parts of a letter.

Answered: 1 week ago

Question

Describe the beliefs held in common by neobehaviorists?

Answered: 1 week ago