Engineering Mathematics

Assignment
The factorial of a nonnegative integer n is written n! and is
defined as follows:
n!=n*(n-1)*(n-2)…..*1
and n!=1 for n=0 and n=1.
1. Write a pseudo-code to describe the algorithm;
2. Design an activity diagram to describe the algorithm;
3. Write a C++ program computing n! based on the your
pseudo-code or activity diagram.
Ewha Womans University
http://graphics.ewha.ac.kr
1
Requirement

[1] Language: English.

[2] Acceptable electronic format for solutions: MS Office Word
(2003 or Earlier) and Adobe PDF.

[3] Name your solution file like this:
"assignment"+assignmentNO+"_studentNO".
For example, the student (student NO. is 1234567) should
name her first assignment as "assignment1_1234567.doc" or
"assignment1_1234567.pdf"

[4] Submit your solution files, including CPP (C++ source) files if
required, via e-class website.
Ewha Womans University
http://graphics.ewha.ac.kr
2