1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Lady bird [3.3K]
3 years ago
12

5.9.5 Fibonacci Y’all I’m struggling here do any of you have the code?

Computers and Technology
1 answer:
Alenkinab [10]3 years ago
8 0

The Fibonacci program is an illustration of loops

<h3>What are loops?</h3>

Loops are program statements that are used to perform repetition

<h3>The main program</h3>

The program written in Python, where comments are used to explain each line is as follows:

#This gets the number of terms

nterms = int(input("Terms: "))

# This initializes the first two terms

n1, n2 = 0, 1

kount = 0

# This generates fibonacci sequence

while kount < nterms:

   print(n1)

   nth = n1 + n2

   # This update the values

   n1, n2 = n2, nth

   kount += 1

Read more about loops at:

brainly.com/question/14284157

You might be interested in
You need a collection to represent secret agents. Every agent has a unique codename that identifies them, and an Agent object th
Scrat [10]

Answer:

A  HashMap< String, Agent >

is a best collection for this

Explanation:

Collection is basically a framework that is used in order to perform operations on data and to store and manipulate objects.

HashMap is a Map based collection where Map is a data structure of interface which allows the key and value pairs mapping and HashMap is a collection class used to store these key-value pairs of data.

The syntax is:

HashMap<key, value>

So in  HashMap< String, Agent > statement the String is used to store the codename for every agent and Agent is an object that represents each agent. So this is represented as key-value pair using HashMap.

4 0
4 years ago
A Use-Case diagram is a staticdiagram?
Arte-miy333 [17]

Answer:

No, Use-Case diagram is a not a static diagram.

Explanation:

Only static diagram is not adequate to model a system that is more dynamic than static behavior. In Unified Modeling Language, five diagrams are accessible to model the dynamic nature and use case diagram is one of them.

Use case diagrams is made up of actors, use cases and their interactions. The diagram is used for modeling an application's system / subsystem. A single use case diagram depicts a system's specific features.

4 0
3 years ago
According to the Big Five Factors model, all but _____ are categories.
STatiana [176]
The Big Five Factors are: "Open, Agreeable, Stable, Conscientious, and Extraverted"

"Empathetic" is not one of the Big Five Factors.

<span>According to the Big Five Factors model, all but empathetic are categories.</span>
4 0
4 years ago
Type the correct answer in the box. Spell all words correctly.
marissa [1.9K]

Answer:

GIF

Explanation:

The Graphic Interchange Format (GIF) is the image format that supports small animations made out of sequential frames played in sequence and possibly in loops, depending on the parameters saved in the file.

The Animated GIFs are seen everywhere these days on social medias, where people use them to express their emotions in bigger and  more elaborate ways then emoticons.

6 0
3 years ago
It is important to avoid using a person’s title in an email to avoid offending him or her.
Nataly [62]

The answer to this is FALSE. I just took the test & got 100%.

3 0
3 years ago
Read 2 more answers
Other questions:
  • A simple algorithm for handling requests works like this:________ a) all requests users make are stored. b) The elevator priorit
    15·2 answers
  • The desktops of computers running the same OS all look the same
    8·1 answer
  • Universal Containers is implementing a community of High-Volume Community users. Community users should be able to see records a
    12·1 answer
  • Write a method that returns the sum of all the elements of an array of ints that have an odd index.
    5·1 answer
  • Which type of software has no restrictions from the copyright holder regarding modifications of the software’s internal instruct
    10·1 answer
  • Does this look anywhere close to the APA Format?
    6·1 answer
  • Animations and transitions are added from the _____.
    11·2 answers
  • Data owners ensure that only the access that is needed to perform day-to-day operations is granted and that duties are separated
    10·1 answer
  • How many passes will it take to find the five in this list?
    14·2 answers
  • 50 POINTS
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!