Question: 1 . Define and implement a class myInt that has an integer variable as a field and that contains member functions for determining the following
Define and implement a class myInt that has an integer variable as a field and that contains member functions for determining the following information for an object of type myInt. a Is it a multiple of or b Is the sum of the digits odd or even? c Is it a prime number? Sample InputOutput: Enter an integer: The integer is multiple of The integer is not multiple of The integer is not multiple of The sum of digits of the integer is an Odd number. The integer is not a prime number. Thank you
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
