Question: On paper, write an algorithm for a function called figureIt that determines some attributes of a floating-point number: 1) Is it evenly divisible by 2?
On paper, write an algorithm for a function called figureIt that determines some attributes of a floating-point number: 1) Is it evenly divisible by 2? 2) What is its sign? 3) What is its integer part rounded up or down as appropriate? How many parameters must the function have? What types are they? Write the C++ code for the figureIt function on paper. Implement this function and a driver (a mainfunction) that asks the user over and over for a real number until the user enters 0, determines its properties (using figureIt function that you wrote) and prints these out
my code is working except for the rounding. Desperately need help!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
