Skip to content

Myz/FibonacciCalculationRFC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

Implement the sequence generator for the famous mathematical fibonacci sequence.

Requirements

  • googletest
  • cmake
  • make
  • binutils
  • c++ compiler
  • nice to have clang-format (version 9.0)

Compiling

  1. Create a mkdir build
  2. Go into this folder cd build
  3. Run cmake ..
  4. Now you could compile it by running make

Tasks

A) Satisfy the existing test

Find the empty function in src/calculation/FibonacciCalculation.cpp and make the test in test/FibonacciCalculationTest.cpp pass. Then you can execute the tests with test/test-calculator. Hint: Use your shell to combine both commands so you compile and, if successful, run the tests immediately.

B) Create a FibonacciCalculatorHTTPServer web service

This server should be able to respond back with the n'th fibonacci number whenever it is requested. It should be able to handle multiple simultaneous requests asynchronously and must use the FibonacciCalculation library which contains your implementation.

For implementing the HTTP web server use the boost::asio library.

The new component must be integrated into the existing cmake build configuration.

C) Discuss your solution with the team

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published