Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 1.23 KB

README.md

File metadata and controls

32 lines (22 loc) · 1.23 KB

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