Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C#, Please Assignment 4C: Factorial! There's a nifty math concept called factorial that illustrates for loops beautifully. To find the factorial of a number, you
C#, Please
Assignment 4C: Factorial! There's a nifty math concept called factorial that illustrates for loops beautifully. To find the factorial of a number, you multiply all descending numbers starting at the original number. For example, if you want to find the factorial of 6 (denoted 6!), you will multiply all descending numbers starting at 6. 6! = 6*5*4*3*2*1 = 720 We will use this concept to design our program for this part of the assignment. Write a program that asks the user to enter an integer. The program will calculate the factorial of the inputted number then return the product as an integer. The sample output is shown below. User input is in bold. Sample Output 1 Enter an integer: 5 The Factorial of 5 is: 120 Sample Output 2 Enter an integer: 10 The Factorial of 10 is: 3628 800 Bonus: TicTacToe. This part of the assignment is not required, but it can help you prepare for your more advanced classes where you will have to work on a semester long project. You've most likely played Tic-Tac-Toe as a kid. It's a game with two players and each player chooses either an X or O". The players take turns marking the gameboard with their chosen symbol and whoever gets three symbols in a row, wins the game. Let's apply all the coding concepts you've learned so far to build a Tic Tac Toe game. From Assignment 4 to Assignment 7, you will work on a component of your Tic Tac Toe game so that you will have a working game by the end of the semester. For this week's assignment, your job is to use an array to design the game board of the Tic Tac Toe game and print out the game board. For simplicity, label the game board cells with numbers 1 through 9. This will make it easier to save each player's turn. Hint: You will need to use a for loop to print the gameboard. The sample output is shown below. User input is in boldStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started