Project

For your final project, your task is to create a program that can convert an array of weekly temperatures in celsius to an array of temperatures in fahrenheit. If you will need to wear a jacket on any of the days (if the temperature is below 50 degrees fahrenheit), your program should also print out a message saying "You might need to wear a jacket!"). Make sure that your program only outputs this once, even if there’s multiple cold days. Try and apply as many of the concepts that we learned about as you can in your solution (hint: It might be useful to turn your code from the previous exercise into a function)

let temperatures = [-10, 0, 10, 20, 100];

function convertTemperatures(temperatures) {
	let needJacket = false
	// Write your code here
	//…
	// console.log() your answer when you’re finished
}

convertTemperatures(temperatures);

If your solution is correct, it should output:

[14, 32, 50, 68, 212]
You might need to wear a jacket!