Answered step by step
Verified Expert Solution
Question
1 Approved Answer
c++ please 2. Report Heading Design a class called that has data members to hold the company name and the report name. A two-parameter default
c++ please
2. Report Heading Design a class called that has data members to hold the company name and the report name. A two-parameter default constructor should allow these to be specified at the time a new Heading object is created. If the user creates a object without passing any arguments, "ABC Industries" should be used as a default value for the company name and "Report" should be used as a default for the report name. The class should have member functions to print a heading in either one-line format, as shown here: or in four-line "boxed" format, as shown here: Try to figure out a way to center the headings on the screen, based on their lengths. Demonstrate the class by writing a simple program that uses it 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