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: | 407 Weeks Ago, 6 Days Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
Define a class myInt that has as its single attribute an integer variable and that contains member functions for determining the following information for an object of type myInt:
a. Is it a multiple of 7, 11, or 13?
b. Is the sum of the digits odd or even?
c. What is the square root value? d. Is it a prime number?
e. Is it a perfect number? (Reminder: The sum of the factors of a perfect number is equal to the number itself—for example, 1 + 2 + 4 + 7 + 14 = 28, so 28 is a perfect number.) Write a client program that tests your methods, using the input values 104, 3773, 13, 121, 77, and 3075.
Â
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------acq-----------uis-----------iti-----------on -----------of -----------my -----------sol-----------uti-----------on.-----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- ca-----------tch-----------