Skip to content

Commit

Permalink
Merge pull request #2 from Oluwasetemi/oluwasetemi-patch1
Browse files Browse the repository at this point in the history
Update the README to match the new questions
  • Loading branch information
chalu authored Aug 23, 2023
2 parents af08dab + ad9d0c5 commit ee41dc4
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@ Complete any two out of the three challenges. See below for details of each chal
### Javascript Fluency Assignment

#### Challenge - 1
> In `src/assignment.mjs`, implement the `sumOfNumbers` function. Calculate and return the sum of the numbers in the given array. If you did Challenge - 1, remove the comment in the line just after the `sumOfNumbers` function, otherwise leave the comment.
> In `src/assignment.js`, implement the `sumOfNumbersTo` function. Calculate and return the sum of the numbers from 1 to destination. If you did Challenge - 1, remove the comment in the line just after the `sumOfNumbersTo` function, otherwise leave the comment.
#### Challenge - 2
> In `src/assignment.mjs`, implement the `countEvenNumbers` function. Determine and return the count of all even numbers in the given array. If you did Challenge - 2, remove the comment in the line just after the `countEvenNumbers` function, otherwise leave the comment.
> In `src/assignment.js`, implement the `countEvenNumbersWithin` function. Determine and return the count, sum, arrayOfEvenNumbers. If you did Challenge - 2, remove the comment in the line just after the `countEvenNumbersWithin` function, otherwise leave the comment.
#### Challenge - 3
> In `src/assignment.mjs`, implement the `celsiusToFahrenheit` function. Convert the array of numbers representing temperatures in Celsius, to an array of temperatures in Fahrenheit. Decimal figures in the converted values in Fahrenheit should be removed. E.g 51.21 should just be 51 (hint: Math.trunc(...) function)
> In `src/assignment.js`, implement the `celsiusToFahrenheit` function. Convert the array of numbers representing temperatures in Celsius, to an array of temperatures in Fahrenheit. Decimal figures in the converted values in Fahrenheit should be removed. E.g 51.21 should just be 51 (hint: Math.trunc(...) function)
See https://www.thoughtco.com/celcius-to-farenheit-formula-609227 for the conversion formula. If you did Challenge - 3, remove the comment in the line just after the `celsiusToFahrenheit` function, otherwise leave the comment.


0 comments on commit ee41dc4

Please sign in to comment.