Your Perfect Assignment is Just a Click Away

We Write Custom Academic Papers

100% Original, Plagiarism Free, Customized to your instructions!

glass
pen
clip
papers
heaphones

Create a Cookbook Program Javascript Task

Create a Cookbook Program Javascript Task

Description

Instructions

Read:

Optional: Eloquent Javascript, Chapter 3.

Lab:

Create a calculator script. It should:

1. Prompt the user for two numbers.

2. Prompt the user for the operator that they would like to use … addition, multiplication, division.

3. Pass the two numbers and the operator into a function

3. Perform the calculation – use an IF or SWITCH statement to perform the operation

4. Display the results either as an alert, using document.write, or in the console.log.

Due Sunday, Feb 27th, 11:59 p.m.

Small Group Forum Work:

In your small group, propose how you could add a function to the program. 

This means that the weather application should contain an array, a loop, a branching statement and a function.

For example, you could use a function to prompt the user for input, or a function that can perform a calculation of some sort (i.e. Fahrenheit to Celsius). This is up to your group.

Hide Assignment Information

Instructions

Assignment: Prepare for the Mid-term

  • Next week you will have a mid-term. The mid-term is “open book” and you will have three hours to complete it, starting when you first access it.

The questions in the mid-term will draw from everything we’ve covered in class up until now. The best way to prepare is to go back through the lessons and assignments, as well as the solutions posted to the lab assignments.

In order to practice for the exam, there are two programming challenges.

There is also a forum called “Mid-Term Practice Questions” placed under the general course forums. Use this space to ask questions about the mid-term and the practice exercises.

Practice Exercises

Here are a few practice question for you to use for practice for the mid-term. If you have questions, please post them under the General Class Forums to the “Mid-Term Practice Questions” forum.

Exercise 1:

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

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

Exercise 1:

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.

Hide Assignment InformationINSTRUCTIONSASSIGNMENT: PREPARE FOR THE MID-TERMNext week you will have a mid-term. The mid-term is “open book” and you will have three hours to complete it, starting when you first access it.The questions in the mid-term will draw from everything we’ve covered in class up until now. The best way to prepare is to go back through the lessons and assignments, as well as the solutions posted to the lab assignments.In order to practice for the exam, there are two programming challenges.There is also a forum called “Mid-Term Practice Questions” placed under the general course forums. Use this space to ask questions about the mid-term and the practice exercises.Practice ExercisesHere are a few practice question for you to use for practice for the mid-term. If you have questions, please post them under the General Class Forums to the “Mid-Term Practice Questions” forum.Exercise 1:Step 1. Create a function that takes in a word from the user (prompt the user).Step 2. reverse the word and display it back to the userExercise 1:You can create a random number using the following:var randomNumber = Math.floor(Math.random()*10)+1This 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.

Our Service Charter

1. Professional & Expert Writers: Writing Expert only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided by Writing Expert are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. Writing Expert is known for timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: At Writing Expert, we have put in place a team of experts who answer all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.

Our Service Charter

1. Professional & Expert Writers: Writing Expert only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided by Writing Expert are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. Writing Expert is known for timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: At Writing Expert, we have put in place a team of experts who answer all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.