Coding Using solution


Original Work ?
Category: You will Instantly receive a download link for .ZIP solution file upon Payment


5/5 - (3 votes)

Coding Using

Prime: Displays all of the prime numbers from the start number to the end number, inclusive. Allow no more than 500 for the end number. For example, if the start number is 2 and the end number is 25, the following prime numbers should display: 2 3 5 7 11 13 17 19 23

Fibonacci: Need to use arrays for this one. The Fibonacci Sequence is the series of numbers: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, etc. The next number is found by adding up the two numbers before. Display the Fibonacci sequence up to the nth sequence keyed by the user, where n is the start number keyed by the user. Allow no more than the 30th number in the sequence and disallow the entry of the end number. For example, if the user keys the starting number 5, the following will display: 0 1 1 2 3. Using Arrays only

Factorial: Displays the factorial for the start number. For example, if the user keys a start number of 5, the number 120 should display. Use the following formula to calculate 5! 5! = 5*4*3*2*1. Allow no more than 10 for the start number. Disallow entry of the end number