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
Each problem should be broken up into three (3) files: A .h file for your class, a .cpp file for your class, and a .cpp file for your main method.
Chapter 17. Problems
17.11 - In your main method, create a vector of rectangles. Ask the user for the length and width. Keep entering rectangles till the user enters -999 for the length. Once the user is done entering rectangles, print out the length, width, and perimeter, and area of each rectangle. In addition, find the max area of the rectangles entered, and the number of rectangles that have that area.
In your set method, throw exceptions (and catch in your main) if the length and width are less than 0.0 or larger than 20.
17.12. -
In your main method, create a vector of rectangles. Ask the user for 4 sets of x,y coordinates. (once for each corner). Keep entering rectangles till the user enters -999, -999 for 1st set of coordinates. Once the user is done entering rectangles, print out the length, width, and perimeter, and area of the rectangle. In addition, print out if the rectangle is a square or not and how many squares are in the vector.
In your set method, throw exceptions (and catch in your main) if the length and width are less than 0.0 or larger than 20.
17.14 - Provide the following member functions ONLY: input, output, isEqualTo, isNotEqualTo, and isZero.
Create 3 HugeInteger Objects in your main, and test out the input, output isEqualTo, isNotEqualTo methods
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