Question: i am not sure what i am keep doing wrong can someone help me with this please and explain the code and dont use the

 i am not sure what i am keep doing wrong can
i am not sure what i am keep doing wrong can someone help me with this please and explain the code and dont use the globalization thing because i donot know how to do that wat someone help me with this please and explain the code and dont

In this exercise, you'll create a form that accepts an integer from the user and then calculates the factorial of that integer. Factorial Calculator Number: 20 2.432.902.008,176,640,000 Factorial: Calculate The factorial of an integer is that integer multiplied by every positive integer less than itself. A factorial number is identified by an exclamation point following the number. Here's how you calculate the factorial of the numbers 1 through 5: 1!= 1 which equals 1 2!= 2*1 which equals 2 3!= 3*2*1 which equals 6 4! = 4*3*2*1 which equals 24 5! = 5*4*3*2*1 which equals 120 To be able to store the large integer values for the factorial, this application can't use the Int32 data type. 1. Start a new project named Factorial. 2. Add labels, text boxes, and buttons to the default form and set the properties of the form and its controls so they appear as shown above. When the user presses the Enter key, the Click event of the Calculate button should fire. When the user presses the Esc key, the Click event of the Exit button should fire. 3. Create an event handler for the Click event of the Calculate button. This event handler should get the number the user enters, calculate the factorial of that number, display the factorial with commas but no decimal places, and move the focus to the Number text box. It should return an accurate value for integers from 1 to 20. (The factorial of the number 20 is shown in the form above.) 4. Create an event handler for the Click event of the Exit button that closes the form 5. Test the application to be sure it works correctly. A 4 6:29 P 718/21 832 words references wublic partial class frmfactorial : Form private int i; private object fi Tretorence public frmfactorial) InitializeComponent(); 1 reference private void BtnCalculate_Click(object sender, EventArgs e) 1/Dinn, f, i As Double; 1/f = 1; 1 - Val(txtNumber.Text); /i-1; //for i=1 to n; 1/ f.fi 1//Next 1/txthumber Text - f.ToString(0,0,0"); 1/int i, n, fact; 7/Console.WriteLine("enter a number"); fact(); void fact() int nl - int.Parse(txtNumber.Text); for (int i nl - 1; 1 ; 1-) { - i; intny - Convert.ToInt32(txtNumber.Text); txtFactorial. Text Convert.ToString("1-2"); von Errors . Warnings 100 of 6 Messages Build - IntelliSense de Description 0649 Field factor is never assigned to, and will always have its default value o 0169 The field r ectorial is never used Possible mistaken empty statement Type here to search 0

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!