[go: up one dir, main page]

0% found this document useful (0 votes)
4 views1 page

HomeAssignment

The assignment focuses on creating a Java program to calculate and print the Fibonacci Series for a specified range, with an input range of 8. It aims to teach users how to utilize loops for generating the series and includes hints for implementation. The expected completion time is between 15 to 20 minutes, and the program should output the series: 0, 1, 1, 2, 3, 5, 8, 13.

Uploaded by

vm992612
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

HomeAssignment

The assignment focuses on creating a Java program to calculate and print the Fibonacci Series for a specified range, with an input range of 8. It aims to teach users how to utilize loops for generating the series and includes hints for implementation. The expected completion time is between 15 to 20 minutes, and the program should output the series: 0, 1, 1, 2, 3, 5, 8, 13.

Uploaded by

vm992612
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Classroom Assignment <Week1:Day1:2>: Fibonacci Series in Java

Learning Objective:

The goal of this Java program is to calculate and print the Fibonacci Series for a
specified range.

Expected Completion Time:

Best Case: 15 minutes


Average Case: 20 minutes

Assignment Details:

 To find Fibonacci Series for a given range


 input(range): 8

Requirements:

 User input for the desired range of the Fibonacci series.


 Displaying the generated Fibonacci series as the program output – 0, 1, 1, 2, 3, 5, 8, and 13.

Hints to Solve:

 Use a loop to generate the Fibonacci series within the specified range.
 Initialize variables to keep track of Fibonacci numbers and update them iteratively.
 Ensure the loop continues until the next Fibonacci number exceeds the given range.

Expected Outcome:

 Learn to use For loop for a defined number of iterations


 Learn to setup initialization, condition and increment / decrement

Shortcuts: To get the for syntax handy

 Type for ctrl+ Space + down arrow + Enter(Choose an array for looping)

You might also like