Assignment 13
Write a program that uses set of programs (also to be written) as given below, which,
when compiled together, works to serve various tasks. No extra functions should be used.
a. fact.cpp: a function that gives the factorial of an integer.
b. pi_fib.cpp: a function that gives pi times Fibonacci number.
c. head.h: a header file with value defined for pi to 6 decimal
places and a declaration mean that returns the average of two
numbers.
PS: The program should be coded in C++. Can it be implemented in C? If so give the solution. If not explain why.
|