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

  Process the image provided originally with assignment

Download the latest trial version of FTK 1.8.?. Find it under support/downloads at http://www.accessdata.org. Use it to process the image provided originally with Assignment 2. Find the pictures of weasels and create a bookmark containing all of ..

  Write an application that creates a quiz

Write an application that creates a quiz, which contains at least 5 questions about a hobby, popular music, astronomy, or any other personal interest. Each question can be multiple choice(a,b,c,d should be user accepted response), or true or false(t ..

  Write a program that will simulate a single game of craps

Write a program that will simulate a single game of Craps. Craps is a game of chance where a player will roll 2 six-sided dice. The sum of the die will determine whether the player wins immediately, loses immediately, or if the game continues.

  Program - cosc

Assignment is based on Programming Exercise - The input file has the needed data on a single line. There is text as well as the numerical inputs.

  Determine an appropriate functional decomposition

Create structure charts for a problem and determine an appropriate functional decomposition or top-down design from a structure chart

  Random permutations

Write a program in C++ that gives a prompt to the users, asking for an integer M.It then prints out a M different random permutations, one on each of M lines, of the numbers 1, 2, ... , 10, separated by spaces or tabs.

  Percent of error in measurement of the defective scale

Skeeter, the dog, weighs exactly 36.5 pounds. When weighed on a defective scale, he weighed 38 pounds. (a) What is the percent of error in measurement of the defective scale to the nearest tenth?

  By a minimal interpretation that makes a formula

By a minimal interpretation that makes a formula true, we mean that if one atom is removed from the interpretation then the resulting interpretation does no longer make the formula true.

  Interpret the data and information gathered

To at least 10 people (learners and parents) to gather data, that could, through analysis provide answers Analyse and interpret the data and information gathered; Write a report based on your investigation; and Prepare a presentation to present the..

  Calculate the celsius equivalent of a fahrenheit temperature

Construct a program that allows you to calculate the Celsius equivalent of a Fahrenheit temperature.

  Track of the ticket sales

Another thing is tht the program should give the user an option to see how many seats havebeen sold, seats available in each row, and seats available in thewhole theater.

  Program that converts kilograms into pounds

Write a program that prompts the user to enter the weight of a person in kilograms and outputs the equivalent weight in pounds output both the weights rounded to two decimal places.

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