Java script

Part 1:

In your current task, write the Weather Alert program that you have been developing to the best of your abilities. Your program should contain a branching statement (if/then or switch), a loop (for/next, while, do, etc), and a function.

Explain: This is a project about writing a Weather Alert program. In the past few weeks, I have collected some ideas and wrote some statement (See the attachment). In this week, we to compose these ideas and code into one, and make the script runnable.

Part 2:

a.Create a ‘Cookbook’ program: it can contain recipes for anything.

b. Prompt the user for a recipe name, then for at least three ingredients.

c. Use a multidimensional (jagged) array to store this information.

d. When the user is done adding items, print out the recipe names and ingredients to the console.

Part 3:

Please create a random number using the following:

var randomNumber = Math.floor(Math.random()*10)+1

This create a random number between 1 and 10. Change the “10” to “12” and you create a random number between 1 and 12.

Write a program that prompts the user for a number.

Next, generate a random number between 1 and 10, and multiple the users number with this new number that you just created.

Output the new number you created by multiplying the user number and your random number to user using a prompt and ask them what they think your random number is.

Evaluate the user input. If they are right, indicate that in an alert. If they are wrong, indicate that and provide the correct answer in an alert.