Skip to content

Starter project for 2019 internship candidates

License

Notifications You must be signed in to change notification settings

findmypast-oss/2019-internship-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2019-internship-starter

Introduction

Complete this NodeJS application so that it generates a sequence of Fibonacci numbers, and correctly formats a multiplication table of these numbers. Parts of the application are already written, you should complete the tasks and make sure all tests pass.

Tasks to complete

This application comes with a set of tests. Some tests are passing and others are failing. Your job will be to get the failing tests to pass by writing your algorithm(s) and running the tests until each of the tests is passing.

Here are the algorithms you'll need to implement:

  1. Generate a sequence of Fibonacci numbers - This should be done in the file: fibonacci.js.
  2. Format the multiplication table output to align the numbers evenly, accounting for numbers having different numbers of digits - This should be done in the file tableFormatter.js.

(Tip - If you aren't sure what output to expect, look at the tableFormatter.test.js file.)

Installing, Running, and Submitting the Starter Application

Installing the Starter Application

  1. Install NodeJs v11 on your computer.
  2. If you don't have a GitHub account, create one.
  3. Take a personal fork of this repository. (Here are instructions on how to do so, in case you haven't done this before.)
  4. Clone your fork of the repository to your computer, e.g C:\github\2019-internship-starter.
  5. Open a terminal in the repository, e.g C:\github\2019-internship-starter
  6. Run the command npm i to install dependencies

Running the Application

  1. Open a Command Prompt in the repository, e.g C:\github\2019-internship-starter.
  2. Run the command npm test to run the tests.
  3. Run the command npm start -- --number 5 to run the program with an output of 5 numbers.

Submitting the Application

  1. Make sure all your changes are saved.
  2. Commit your changes (i.e. enter git commit -m "Application complete." in a Command Prompt).
  3. Push your changes (i.e. enter git push in a Command Prompt).
  4. Reply All to the email from Findmypast (to Laurie, Goodwin, and Eilidh). Include the link to your personal fork on GitHub. (For example, https://github.com/<your-username>/2019-internship-starter, replacing <your-username> with your GitHub username.)

About

Starter project for 2019 internship candidates

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •