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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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