Create a module called fibonaccitest

Assignment Help Basic Computer Science
Reference no: EM131252438

Having issues with this assignment. Can't get the correct return for 4 part 1. Please help?!

  1. Create a module called fibonacciTest.
  2. In the module, write a function called getFibSeq that:
    1. Prompts the user for a valid input
    2. Returns a list of the fibonacci sequence up to that number
  3. Write a try-catch block that will catch the two exceptions listed in #4 below
  4. Write the following print statements to verify that the function and try-catch work
    1. with user input: 100print out [1,1,2,3,5,8,13,21,34,55,89]
    2. Exception 1: with user input: -1print out 'Input must be greater than 0'
    3. Exception 2: with user input: 'hello'print out 'Sorry, integer greater than zero only'

Reference no: EM131252438

Questions Cloud

How are the differences in these lives made manifest : How are such radical differences in the conditions of life justified? In other words, how is such dramatic inequality accepted? Are such inequalities ever justified? When? Why or why not? Though not as dramatic as the inequality between slave and ma..
Elliptical-shaped land : You are given an elliptical-shaped land and you are asked to choose n arbitrary points on its boundary. Then you connect each point with every other point using straight lines, forming n(n - 1)/2 connections. What is the maximum number of pieces o..
How you would approach issue of designing an entrance exam : Discuss how you would approach the issue of designing an entrance exam to avoid a much lower pass rate for minority candidates than non-minority candidates.
Were any of the amendments violated : An investigator plays an important role in building a case for trial. With that role comes an important responsibility to ensure he or she has obtained a confession from the actual perpetrator of the crime.
Create a module called fibonaccitest : Create a module called fibonacciTest. In the module, write a function called getFibSeq that: Prompts the user for a valid input Returns a list of the fibonacci sequence up to that number
Are there other pairs of strategies : Can the pair of strategies you found in (b) be part of a perfect Bayesian equilibrium? -  Are there other pairs of strategies that can be part of a perfect Bayesian equilibrium?
Setting for volts-division : A pulse waveform is measured using an oscilloscope. If the input is 4.0 V and signal covers 2 vertical divisions, what is the setting for volts/division?
Permissions associated with them and therefore : A user calls your help desk to report that the files on her USB stick do not have any permissions associated with them and therefore aren't secure. Why is this?
Describe how you would address these issues : Discuss how you would incorporate these ideas into managing your organization. What are the benefits and drawbacks of managing in this manner?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Convert the above e-r diagram into a set of relations

Draw an E-R diagram with the student and instructor entities, and the advisor relationship, with the above extensions to track temporal changes.

  Firewalls can operate at all osi layers except which of them

In which system life cycle phase should security policy be established?

  Discuss the strengths of the selected guidelines for provide

Discuss the strengths of the selected guidelines for providing the information that various audiences will require.

  Find the required mass flow rate of the extraction steam

What is the required mass flow rate of the extraction steam?

  How can you use planned attacks to identify vulnerabilities

How can you spot vulnerabilities in back-end systems and Structured Query Language (SQL) databases?

  Implementation of cmmi

What is CMMI? Explain the all the advantages associated with the implementation of CMMI.

  Describe the importance of variable naming and conventions

Describe the importance of variable naming and conventions. What makes this so important when working with a team to develop a game or application? What do you think are the implications of not naming, or not naming correctly, variables in the ..

  Explain what problems can occur in a distributed database

Explain what must be done when fully replicating a database but allowing only one computer to process updates.

  Write a script to find the prices of each type of pen

In order to find the price of each individual pen, you create a matrix called "pens", where each column represents a different type of pen and each row represents a different person.

  Discuss the other differences in terminology

Discuss the other differences in terminology.

  Default ftp and sftp port number

What are the default FTP and SFTP port number? How can we difference between FTP and SFTP?

  Which is used to keep the call by reference value as intact

Which is used to keep the call by reference value as intact?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd