Question
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!!
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 RESETStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started