Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

help!! Costco recently made news for advertising a $6,000 doomsday meal kit. The kit is advertised as featuring enough food to feed a family of

help!!image text in transcribed

Costco recently made news for advertising a $6,000 doomsday meal kit. The kit is advertised as featuring enough food to feed a family of one for four years. Well assume each meal kit is about 1500 calories. Ever wonder how many meal kits youll need to survive a zombie apocalypse that lasted for 50 years? Lets find out! 1. Recreate the below page (Before Calculation) as shown. Name this web page Homework 14 and save it to your Contents/Week9 folder. 2. Please include your name in your web page code. 3. Write a JavaScript function named calcSupply that accepts the following parameters: a. Your age in years stored into a variable a. Your maximum age in years (Your age + 50 years) stored into a variable b. Estimated number of meal kits you would eat a day stored as a number c. Calculate the amount of meal kits you would need for the next 50 years. Well assume there are no leap years. d. Outputs the result to the screen like so "You will need #TotalMeals to last you until the age of maxAge (see After Calculation). e. You can reference JavaScript Arithmetic and Functions at http://www.w3schools.com. 4. When the calculate button is clicked it performs a calculation to calculate the amount of meal kits youd need to survive a zombie apocalypse lasting 50 years. 5. Your JavaScript function should be external to your HTML file and saved in the scripts folder. script file to its appropriate folder.

Food Supply Calculator Ever wonder how much food you would need to survive a zombie apocalypse that lasted 50 years? Let's find out! l am years old. I'd eat meal kits a day. CALCULATE You will need meal kits to last you until the age of RESET

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Brief the importance of span of control and its concepts.

Answered: 1 week ago

Question

What is meant by decentralisation?

Answered: 1 week ago

Question

Write down the Limitation of Beer - Lamberts law?

Answered: 1 week ago

Question

What is the purpose of the Salary Structure Table?

Answered: 1 week ago

Question

What is the scope and use of a Job Family Table?

Answered: 1 week ago