Programming Homework Help

Programming Homework Help. JS programming

Exercise 1:

1. Create a function that takes in a word from the user (prompt the user).

2. reverse the word and display it back to the user

Exercise 2:

You can create a random number using the following:

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

This create a random number between one and ten. Change the “10” to “12” and you create a random number between 1 and 12. Make sense?

Write a program that prompts the user for a number.

Then, 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.

Exercise 3:

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

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

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

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

Programming Homework Help

 
"Our Prices Start at $11.99. As Our First Client, Use Coupon Code GET15 to claim 15% Discount This Month!!"