Hey, everybody.
Now it's time to do our second list of exercises for this one, I already created a new James file and
made the link.
You can do the same thing there.
So let me read the questions to you.
So, number one, create a function to convert Celsius to Fahrenheit, use it to convert the temperatures
below.
So here I'm including the formula to make the conversion.
You were going to create a function.
So you're going to need an argument which is going to be the Celsius temperature.
Then you are going to convert it to Fahrenheit and return the result.
So then you can use this function to convert these three temperatures and show the results in these
boxes.
No, to the array below is the classification of students in a contest.
It is ordered from lowest to highest grade, so lowest to highest grades.
Then I wanted to show the names of the three best students.
So we know that the three best students are the three the last students of this array.
So I want you to get them using JavaScript and showing it here.
Number three, consider the object below.
So here we have an object for a course.
We have title categories and the reviews later a show, the course title in the box below.
So you're going to have to get the title property and place it here.
Letter B, the main category is the first element of the category is array.
So we have an array for the categories and the main category is the first element of this array.
So I wanted to show this in this box.
Letter C create a method to calculate the percentage of five star reviews.
So we have the total number of reviews here.
You're going to have to sum everything.
So let's say if we have a total of one hundred reviews and we have 20 of them to be five star reviews,
we know that 20 percent is going to be the result we want.
So you just have to calculate this so that the total number of reviews and then get the percentage of
five star reviews, then you can just place it inside this box rounded with no decimal places.
Number four, see the shopping list below.
So here we have a shopping list, do the following changes to the list, get the last item and place
it at the beginning of the list.
Add two more items at the end of the list.
Cheese and eggs, show the updated list in the council.
So this should be pretty easy for you.
Good luck.
And I'll see you in the next video.