Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please create your own C++ program with the following instructions: Design a class Heading that has data members to hold the company name and the

Please create your own C++ program with the following instructions:

Design a class Heading that has data members to hold the company name and the

report name. A two-parameter deafult constructor should allow these to be specified at

the time a new Heading object is created. if the user creates a Heading object without

passing any arfuments, "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:

Pet Pals Payroll Report

or in four-line "boxed" format, as shown here:

******************************************************************

Pet Pals

Payroll Report

*****************************************************************\

Try to figure out a way to center the headings on the screen, based on their lenghts.

Demostrate the class by writing a simple program that uses it

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

Step: 3

blur-text-image

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

Databases On The Web Designing And Programming For Network Access

Authors: Patricia Ju

1st Edition

1558515100, 978-1558515109

More Books

Students also viewed these Databases questions

Question

Explain why households do not hold diversified portfolios.

Answered: 1 week ago

Question

What are the purposes of promotion ?

Answered: 1 week ago