The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 398 Weeks Ago, 1 Day Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
Please write this program in C++ and make sure it runs before submitting for points.
Write a program that
         - defines the class Cuboid which has the following:
                  - default constructor (has no parameters)
                  - constructor that has 3 parameters (height, length, width)
                  - data members
                            - height, length, width
                  - member functions
                            - one to initialize the data members
                            - one to get the values of the data members
                            - one that returns the volume
                            - one that returns the surface area
                            - one that increases each dimension by a specified factor
                   (Function definitions outside of the class!!!)
         - in main()
                  - instantiate a Cuboid object and initialize at the time of definition
                            - make sure the constructor with parameters is called
                     - define an array of 2 Cuboid objects
                            - use a loop to have the user enter the height, length, width for
                              these 2 objects
                  - increase one of the three objects by a certain factor
                  - display the dimensions , the volume, and the surface area for each of
                    the three objects
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll