Introduction to Computers Programming (ICP-132)

Main Page

Assignment 01
Assignment 02
Assignment 03
Assignment 04
Assignment 05
Assignment 06
Assignment 07
Assignment 08
Assignment 09
Assignment 10
Assignment 11
Assignment 12
Assignment 13

Coding rules (pdf)
Sample code
Prob: Set 1
Prob: Set 2
Compiler options
Submission

Forum
Teaching Assistants
Links
Trivia

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.