2. Complete this problem on Sheet2. The location of an object can be described by its...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
2. Complete this problem on Sheet2. The location of an object can be described by its x and y coordinates. Let's say that you want to know the distance between two mountain peaks. The first peak is located at (x1, yl) and the second peak is located at (x2, y2). y (x2, y2) y2-yl (x1, yl) (0,0) х2 —х1 The distance, d, between two points in space can be calculated by using the following equation: d- J(x, - x,' + (y; – y,) Type the values of x1 and yl into cells B1 and B2. Next type the values of x2 and y2 into cells DI and D2. Then create a macro named caledist that will accomplish the following tasks: • Obtain the values for x1 and yl from the worksheet and store them in variables • Obtain the values of x2 and y2 from the worksheet and store them in variables • Calculate the distance between the two mountain peaks and store this value in a variable • Output the distance to cell C5 Create a run button on Sheet2 that will execute the macro calcdist. Before clicking the run button, make sure that you input the values of x1 and yl in cells BI and B2, and input the values of x2 and y2 into cells DI and D2. To test your code, try typing 2 and 4 into cells B1 and B2, and type 5 and 6 into cells D1 and D2. Then click the run button. The distance between the two points is, d- (5- 2)° + (6- 4)* - V3 +2 - V13 - 3.606 If the units of x1, yl, x2, and y2 are miles, then the two peaks are about 3.6 miles away other. 2. Complete this problem on Sheet2. The location of an object can be described by its x and y coordinates. Let's say that you want to know the distance between two mountain peaks. The first peak is located at (x1, yl) and the second peak is located at (x2, y2). y (x2, y2) y2-yl (x1, yl) (0,0) х2 —х1 The distance, d, between two points in space can be calculated by using the following equation: d- J(x, - x,' + (y; – y,) Type the values of x1 and yl into cells B1 and B2. Next type the values of x2 and y2 into cells DI and D2. Then create a macro named caledist that will accomplish the following tasks: • Obtain the values for x1 and yl from the worksheet and store them in variables • Obtain the values of x2 and y2 from the worksheet and store them in variables • Calculate the distance between the two mountain peaks and store this value in a variable • Output the distance to cell C5 Create a run button on Sheet2 that will execute the macro calcdist. Before clicking the run button, make sure that you input the values of x1 and yl in cells BI and B2, and input the values of x2 and y2 into cells DI and D2. To test your code, try typing 2 and 4 into cells B1 and B2, and type 5 and 6 into cells D1 and D2. Then click the run button. The distance between the two points is, d- (5- 2)° + (6- 4)* - V3 +2 - V13 - 3.606 If the units of x1, yl, x2, and y2 are miles, then the two peaks are about 3.6 miles away other.
Expert Answer:
Answer rating: 100% (QA)
Stepl Open an excel and enter values in cells B1B2C1 and C2 a... View the full answer
Related Book For
Elementary Linear Algebra with Applications
ISBN: 978-0471669593
9th edition
Authors: Howard Anton, Chris Rorres
Posted Date:
Students also viewed these accounting questions
-
Find values of x1 and x2 that maximize z = 3x1 + 2x2 subject to 2x1 + 3x2 6 2x1 - x2 0 x1 2 x2 1 x1 0 x2 0
-
Find values of x1 and x2 that minimize z = - 3x1 + 2x2 subject to 3x1 - x2 - 5 - x1 + x2 1 2x1 + 4x2 12 x1 0 x2 0
-
Two waves, y1 (t) and y2 (t), have identical amplitudes and oscillate at the same frequency, but y2 (t) leads y1 (t) by a phase angle of 60o. If y1 (t) = 4cos (2 x 103t) write down the expression...
-
Regal Department Store sells gift certificates redeemable for store merchandise that expire one year after their issuance. Regal has the following information pertaining to its gift certificates...
-
Hummer Company uses manufacturing cells to produce its products (a cell is a manufacturing unit dedicated to the production of subassemblies or products). One manufacturing cell produces small motors...
-
How might a government forecast or a forecast from a trade association be of specific use to a medium-sized company?
-
A test of homogeneity is performed and the null hypothesis is rejected. True or false: We can conclude that the distributions are not the same in every row.
-
You are on the board of directors of a large German corporation. You are in the years before 2008 when the SEC required all U.S.-listed companies to prepare reports using U.S. GAAP . For several...
-
A company produces very unusual CD's for which the variable cost is $ 11 per CD and the fixed costs are $ 20,000. They will sell the CD's for $ 88 each. Letxbe the number of CD's produced. Write the...
-
1. Assume a 30% tax rate, and the Totals per financial statements provided. Complete the following schedule as per Figure 16.4. Assume that the Totals per financial statements (second to bottom row)...
-
To fill out the yellow cells, you must choose which cost fits each quality category.The total quality costs and categories are listed in cells A6:B9.The percentage of costs and their associated...
-
How do bridge design principles balance structural integrity with aesthetic considerations, and what are some iconic examples that showcase this balance ?
-
A fishing boat accidentally releases 3.0 barrels of diesel into the ocean. Each barrel holds 42 gallons. If the layer of diesel in the ocean is 2.5 x 102 nm thick, how many square meters does this...
-
Explain four future plausible scenarios for a Canada commercial banking industry .Analyze the macro environment for Canada commercial banking industry 3.key uncertainties for future and certainty two...
-
The type of activity investigators are involved in, and the evidence gathered varies depending on whether investigations use the reactive or proactive method and, whether it is a serious and/or major...
-
What are the emerging technologies in environmental remediation that address soil and groundwater contamination, and how do they impact the sustainability of civil engineering projects ?
-
What are the 20 most Important Apple MacOS logs for incident response and digital forensic exams?
-
Saccharin is an artificial sweetener that is used in diet beverages. In order for it to be metabolized by the body, it must pass into cells. Below are shown the two forms of saccharin. Saccharin has...
-
Draw a right-handed coordinate system and locate the points whose coordinates are (a) (3, 4, 5) (b) (3, - 4, 5) (c) (- 3, - 4, 5) (d) (3, 0, 3)
-
Find the inverse of cos -sin sire cos
-
Find the matrix of T with respect to the basis B, and use Theorem 8.5.2 to compute the matrix of T with respect to the basis B². T: R2 R2 is defined by B= {u1, u2} and B² = {v1, v2}, where...
-
The output response of a first order system with excitation is: (a) \(y=x\left(1-e^{-t / \tau} ight)\) (b) \(y=x e^{-t / \tau}\) (c) \(y=x\left(1+e^{-t / \tau} ight)\) (d) \(y=x\left(1-e^{t \tau}...
-
What is an actuator? List various types of actuators.
-
What is a regulator?
Study smarter with the SolutionInn App