Implement a fibonacci function

Assignment Help C/C++ Programming
Reference no: EM131564209

Assignment - Fibonacci numbers, 40 hexadecimal digits at a time

In this programming assignment, you will implement a Fibonacci function that avoids repetitive computation by computing the sequence linearly from the bottom up: F(0) through F(n). You will also overcome the limitations of C's 32-bit integers by storing very large integers in arrays of individual digits.

By completing this assignment, you will gain experience crafting algorithms of moderate complexity, develop a deeper understanding of integer type limitations, become acquainted with unsigned hexadecimal integers, and reinforce your understanding of dynamic memory management in C. In the end, you will have a very fast and awesome program for computing huge 40 hexadecimal digit sequences of Fibonacci numbers.

Interestingly, this problem will be limited to 40 hexadecimal digit numbers, from the outset, thru the whole program. This will mimic the performance constraints of some old cryptographic equipment (KW-26) that generated key strings based on a 2 number input to start a continuous chain of  some type of calculations to generate long apparently random number sequences.

Attachment:- Assignment Files.rar

Verified Expert

Integer40 is an user-defined data type with two formal arguments p and q which is a pointer variable. Integer40 contains the result of adding the 40 digit integers. Next with i40Destroyer function, it clears the value of p from memory using the function free. Using fibBig40 function with first it reserves the contiguous memory allocation for three arguments n,*first,*second.Big40Rating function output all errors using stderr. parseString function converts all the values entered by the user into string and stores the values into the memory using malloc().Using load HW config variable, the memory area for each value stored in random order which is given by CPU cycle.

Reference no: EM131564209

Questions Cloud

Explain the expected return-beta relationship : Derive algebraically and explain the Expected Return-Beta relationship.
Calculate the daily value at risk : calculate the daily value at risk for the 95% (z-score 1.645) and 99% (z-score 2.326) confidence level.
What would the return-on-equity ratio be : If the debt-to-total-assets ratio is 25 percent, what is the return on equity? what would the return-on-equity ratio be?
The absence of market imperfections and tax effects : In absence of market imperfections and tax effects, we would expect the share price to decline by amount of dividend payment when stock goes ex dividend.
Implement a fibonacci function : In this programming assignment, you will implement a Fibonacci function that avoids repetitive computation by computing the sequence linearly
The person can be part of the marymount community : The person can be part of the Marymount community, or not affiliated with Marymount
One alternative is to invest the cash in financial assets : NBM has two choices to make use of this cash. One alternative is to invest the cash in financial assets.
Find the dimensions of the least expensive box : PACKAGING You wish to construct a closed rectangular box that has a volume of 4 ft3 . The length of the base of the box will be twice as long as its width.
Would you form a team to confront the ceo : Would you form a team to confront the CEO and try to get the policy overturned? Do you try again to talk to the director and change her mind?

Reviews

len1564209

7/14/2017 5:04:50 AM

Topic: C Programming, write the functions outlined in the pdf so that the output matches exactly those of the sample files in the zip folder.....you'll use the main c files in the zip folder also to test the functions, it must match the output samples outlined in the zip folder when the c file you will write is run alongside each main.c test case file in the zip folder, just one c file I have to write that's called big40.c which should be just those functions outlined in the pdf but does the job when each test case is called and outputs just as the test sample files and also i'm sure you know this but just saying please keep functions in line with topic outlined in the pdf nothing too way advanced from what's mentioned there just to be safe...thanks...that way it's fine with them.

Write a Review

C/C++ Programming Questions & Answers

  Declare a 1-dimensional array of integers

In pseudocode and in C code, declare a 1-dimensional array of Integers called InternetHits that will hold up to 10 Integer values representing the number of hits a Web site receives.

  Write a program that right-justifies text

Write a program that right-justifies text. It should read and echo a sequence of left-justified lines and then print them in right-justified format.

  Partial implementation of the overloaded assignment

You have a class called MyBag that contains this partial implementation of the overloaded assignment operator.  The first line is missing.

  Function odd_fill() that fills all integers between two poin

write a function odd_fill() that fills all integers between two pointers, first and last, with a sequence of odd integers: 1,3,5,7

  Create a constructor in option

Create a constructor in Option that takes double K, double T, double sigma and double r as strike, time-to-maturity, stock volatility and risk-free rate parameters respectively

  Implement uniform random number generator

Implement Uniform Random Number generator and Generate 1000 Random number between 0 an 10000.

  Which of the following is a pure abstract function

Which of the following is a pure abstract function?

  Define a class named creditcardpayment

Create a main method that creates at least two CashPayment and two CreditCardPayment objects with different values and calls payment Details for each.

  How will you do the shrink operation

How will you do the shrink operation and how will you do the expand operation -

  Calculate federal and fica taxes withheld and calculate net

/this program will calculate federal and fica taxes withheld and calculate net pay//for an employee

  Manipulate c character strings which are simply arrays

In this exercise, you will manipulate C character strings, which are simply arrays of characters that are terminated by the ASCII NULL character (0x00, '\0').

  The program calls a function called getgrades

The program calls a function called GetGrades that will read in grades from the keyboard, the number of grades should also be input by the user.

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