Determine the following information about each value in list of positive integer
ID: 3653654 • Letter: D
Question
Determine the following information about each value in list of positive integers: a. is the value a multiple of 7, 11, or 13? b. Is the sum of the digits odd or even? c. Is the value a prime number? You should write a function with three type int output parameters that send back the answers to these three questions. Sample input data are: 104 3773 13 121 77 30751 Ask the user to enter a positive integer and signal they are finished with a sentinel value (chapter 6) The function should send back answers through output parameters 1 if the number is a multiple of 7, 11 or 13 and 0 if it is not. 1 if the sum of the digits is odd and 0 if the sum of the digits is even 1 if the number is a prime number and zero if it is not.Explanation / Answer
where is the program??
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.