Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

WEB230 JavaScript 1 Assignment 2b - Surface Area In this assignment we will write a JavaScript program to calculate the surface area of the outside

image text in transcribed
WEB230 JavaScript 1 Assignment 2b - Surface Area In this assignment we will write a JavaScript program to calculate the surface area of the outside of a box Instructions 1. Create variable containing an object that will contain three properties that store the length of each side of the box 2 Prompt the user for 3 side lengths and store them in the properties of the object. 3. Create a function named calcarea that accepts one parameter, the object we created earlier Using the formula below, calculate and return the surface area 4 Use template liberals (AKA back-ticks, template literals are explained in the section on Strings in Chapter 1 to display the three sides of the box and the final surface area with descriptive text Sample Output Side Side Side The mutace area is: 14 Notes Output the required information to the console. The surface area of a box is calculated with the formula below. Where, and represent our 3 side lengths and ca is the calculated surface area. Note that this is the math formula, not JavaScript code are - 2ab + e + 2 Submission Do not use the var keyword. Instead uso let of cont. Do not include any HTML tags Do not use document.write() Save your code to a file called ash. Submit the is file, do not zip

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

Recommended Textbook for

Readings In Database Systems

Authors: Michael Stonebraker

2nd Edition

0934613656, 9780934613651

More Books

Students also viewed these Databases questions