Question: Create a new project. Visual C++ Win32 Console Application Name the project CIS022_S2016_Assignment10b your name Select a location where you can find it later Choose

Create a new project. Visual C++ Win32 Console Application Name the project CIS022_S2016_Assignment10b your name Select a location where you can find it later Choose the default application settings
2. Insert the following code into your project.

CIS022_S2016_Assignment10b.cppCreate a new project. Visual C++ Win32 ConsoleCreate a new project. Visual C++ Win32 Console The contents are provided below.

Replace the entire contents of your CIS022_S2016_Assignment10b your name.cpp with the contents of the given file.

3. Complete the project. Make NO changes to the provided code. Create a class named MessageClass with the following attributes:
A. A public method called MessageBox that accepts three parameters: String, integer, and string. Hint: Don't forget to include the three lines:

#include #include using namespace std;

in MessageClass.h just above the class definition.

B. Include 4 constants of type int in the header file that define Bonk, Question, Information and Wink so that main() can reference them in the call to MessageBox().
C. Create, initialize and use an array that holds the four emphasis characters, !, ?, i, and ; that align with the constants in Step B and the integer passed into the MessageBox() function.
D. In the code section of the MessageBox() method, create code that reproduces the following results: Note that output to the console if performed from within the MessageBox() method. MessageBox() should be flexible enough to allow me to make changes to the strings in the call in the main() function and it will produce the similar, working results. Assume that the second string (the box header) will always be sufficiently smaller than the first string (box message).

Yes, there are easier ways to perform these tasks, but I want you to do it this way.

4.

Insert your program documentation and code comments. Provide program documentation and comment both of the files generated with the new class.

The contents of CIS022_S2016_Assignment10b.cpp are below.

#include "stdafx.h" #include  #include  #include "MessageClass.h" using namespace std; int _tmain(int argc, _TCHAR* argv[]) { MessageClass msg; msg.MessageBox("Welcome to CIS 022 from Mark Berrett", msg.Bonk, "Hello"); cout  

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!