1. Engineering
  2. Computer Science
  3. i have just submitted this assignment last night and my...

Question: i have just submitted this assignment last night and my...

Question details

C Eclipse File Edit Source Refactor Navigate Search Project Run Window Help eclipse-workspace Program2 HW/src/AKHFibonacci.java - Eclipse IDE AKHFibonacci.java 3 1 /Author: Amr Hafez, Section: 02 2 4 import java.util.Scanner; 6 public class AKHFibonacci public static void main (String[] args) int limit-20; //set limit to 20 as the question asks long [ Seriesnew long [limit]; //setting up the array of the size limit Scanner snew Scanner(System.in); Series [0] -0; I/we are setting up the 1st and 2nd values of series0 and 1 10 12 013 14 15 16 17 18 19 20 21 Series [1] - 1; for(int i 2; i < 20; i++) { Series [i] -Series[i 1] Series[i 2]; //setting up to calculate a number in the fibonacsi series 23 24 25 26 27 28 29 30 31 32 System.out.println(Enter the number you want to see: ); //asking the user for a number int n = sc.nextInt(); ¡f (n > 0 && n < 21) { System.out.printlnThe + nth Fibonacci number is Series [n-1]); else { System.out.println(Invalid number of the series. Please choose between 1 and 20.); 34 35 36 38

I have just submitted this assignment last night, and my professor got back to me saying "Does not meet specifications which said to print Fibonacci series numbers separated by blank and comma and then ask for user input to print one single number (like the 5th or 10th or nth)" can someone please explain to me what is missing.

Thank you

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution