CS301 – Fall 2002

Prof. Hartman

Homework #6

Due Friday, November 1st by 5:00 pm

 

  1. 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?
  2. Modify the program from the previous part to compute n! using single precision floating point numbers.

 

For complete credit you must turn in well commented source listings and sample runs of all programs.