Question: There are three parts to this activity. Before you write a Java program for this activity, write the pseudocode for this program. Also, create the

 There are three parts to this activity. Before you write a

There are three parts to this activity. Before you write a Java program for this activity, write the pseudocode for this program. Also, create the activity diagram for this program. Turn in the pseudo-code, UML activity diagram, and Java program. Create a program, call this Java class Factorial that prompts the user for an integer number. The program returns the factorial of the number. O! = 1 In your program, answer the following question: What kind of loop are you using for this example? Counter-controlled loop or sentinel controlled loop? Explain. Sample Input Enter a number: 8 Sample Output 8! = 8 * 7 * 6* 5 * 4 * 3 * 2 * 1 = 40320 Sample Input Enter a number: 3 Sample Output 3! = 3 * 2 * 1 = 6

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!