Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Programming Language C++: Create a class named MessageClass with the following attributes: A. A public method called MessageBox that accepts three parameters: String, integer, and
Programming Language C++:
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 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 toMessageBox(). | |
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 theMessageBox() function. | |
D. | In the code section of the MessageBox() method, create code that reproduces the following results: |
? Why ??????????????????????????????? ? Why did the chicken cross the road ? Because iiiiiiiiiiiiiiii 11 Because 11111111111111111 i To get to the other side i ; Thank you ; That is all ; Press any key to continue *^
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started