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

1. 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 7,11, or 13? b. Is the sum of the digits odd or even? c. Is it a prime number? Sample Input/Output: Enter an integer: 63 The integer is multiple of 7. The integer is not multiple of 11. The integer is not multiple of 13. 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!