CS301 – Fall 2002
Prof. Hartman
Homework #6
Due Friday, November 1st
by 5:00 pm
- Write
a complete assembly language program which asks the user for a number n,
and calculates and prints n! (n!, or n factorial, is 1 * 2 *
3 * … * n) What is the largest value of n for which n!
is correctly calculated by your program?
- Modify
the program from the previous part to compute n! using single
precision floating point numbers.
- Now
what is the largest value of n for which n! is computed
exactly?
- What
is the largest value for which the value of n! is approximately
correct?
For complete credit you must turn in well commented source
listings and sample runs of all programs.