Help with very difficult program please!!!
If anyone could please give me the code for these 4 programs (2 questions) it would be very much appreciated!!
1.Write a program that reads an integer value n from the keyboard and calculates n!. The equation is as follows:
n!=n x (n - 1) x (n - 2) x (n - 3) x ..... x (n - n + 1)
For example, if the value of n is 4, then the calculation process is
4!= 4 x (4 - 1) x (4 - 2) x (4 - 3) = 4x3x2x1=24
The program will
?prompt an input message to users and accept an integer value n
?carry out calculations using the equation above
?print the result on the screen [Hint: using a 揻or?loop structure]
2.The formula: 1 inch = 2.54 centimetres can be used to perform conversions between inches and centimetres. Given five numbers of inches, i.e. 1.1, 2.3, 3, 4.2, 4.8, you are require to write three programs that convert each of these numbers of inches to centimetres.
a)Program 1 will
?initialize an array with the given numbers of inches (1.1, 2.3, 3, 4.2, 4.8)
?perform the conversion of each of them
?print the centimetres on the screen
b)Program 2 will
?Input the five numbers of inches to an array from the keyboard (using the uuInOut class)
?perform the conversion of each number of the inches
?print the centimetres on the screen
c)Modify Program 2 to Program 3 which contains of three methods embedded in your program
?Method 1 is used for inputting the five numbers of inches from the keyboard (you must use a 搗oid method without parameters?
?Method 2 is used to do conversions between inches and centimetres (you must use a 搗alue method without parameters?
?Method 3 is a 搈ain?which calls method 1 and 2, and prints the results on the screen

