Help please i need to know where to start from

Floating point numbers (type, long double, double and float) are represented by computer to scientific notation each number has a sign an exponent, and a mantissa. Because the mantissa has a limited and fixed length, round-off error happens during computation, even during simple computation with small numbers.
Your job is to write a program that sheds some light on this behavior. You will do simple combination with many pairs of small numbers and record which combination produce exact answer and which have round off error. In mathematics, this formula is always true.
a == (a/b)*b
However, in computer, if a and b are type double, it is often NOT true because of the round-off that happen during the division.
You must write a nested loop to test every combination of a and b, where both are odd numbers between 3 and 17. As you do this computation, store the result in three arrays: one each for a and b, and one for the test result. Later, print out two tables: first all combination of a b that compute without round off, second, all combination that caused round-off errors.

Before you start the main job of coding, write prototype for all the functions you think you will need. Write these at the top of the program. Write these at the top of the program. Write at least two functions with parameters. One of these must print the two output tables and one must do the calculation. Compare the result to a, and return or false result depending on whether the computation was done without round off.
As the assignment suggested, why not
write prototypes for all the functions you think you will need
?
Topic archived. No new replies allowed.