c12_ps05_fall03

c12_ps05_fall03 - where ‘N’ is user defined. Turn in a...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
UNIFIED ENGINEERING Fall 2003 I. Kristina Lundqvist Problem C12. (Unified Computers and programming) 1. Write an Ada95 program to iteratively compute the factorial of a number (get the number from the user). Turn in a hard copy for your algorithm and code listing, and an electronic copy of your code. 2. Does your program work for all possible inputs? List the instances in which it fails. 3. Write a recursive Ada95 program to compute the first ‘N’ Fibonacci numbers,
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: where ‘N’ is user defined. Turn in a hard copy for your algorithm and code listing, and an electronic copy of your code. Hint : The Fibonacci numbers are the numbers of the series 1, 1, 2, 3, 5, 8, 13, 21, … What is the mathematical formula used to compute the numbers? Do you need more than one function/ procedure?...
View Full Document

This note was uploaded on 01/28/2012 for the course AERO 16.01 taught by Professor Markdrela during the Fall '05 term at MIT.

Ask a homework question - tutors are online