Posted: November 3rd, 2015
COMPUTER SCIENCE
Repeatedly query the user for positive integer and determine the following for
each value:
a. Is the value a multiple of 7, 11, or 13? (Yes or No)
b. Is the sum of the digits of the integer even or odd?
c. Is the value a prime number? (Yes or No)
Main must prompt the user for the value and pass that value to a single function which computes the answers to all three questions, returning the three results to main as output (reference) parameters. Main then displays the results and queries the user for another value, repeating the process until a sentinel value
is reached. Your solution MUST use a single function with three output (reference) parameters; other solutions will not be accepted
PLACE THIS ORDER OR A SIMILAR ORDER WITH US TODAY AND GET A GOOD DISCOUNT 🙂
Place an order in 3 easy steps. Takes less than 5 mins.