For the three points A (Xa, Ya), B (Xb, Yb) and C (Xc, Yc) the equation...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
For the three points A (Xa, Ya), B (Xb, Yb) and C (Xc, Yc) the equation of the line L parallel to the segment AB and passing by the point C is given by: Y= mX +k where: Ya-Yb m is the slope and computed as : m = Xa-Xb k is the intercept and computed as : k Yc -m.Xc Write a java program that calculane and display the slope, the intercept and the equation of the Line parallel to AB and passing by C for the given values: A(1.5, 2), B (2.5, -4) and C (-1.5, 10.5) Your program should output exactly the following: Sample Run The slope is -6.0 The intercept is 1.5 The equation of the parallel is Y--6.0 X15 For the three points A (Xa, Ya), B (Xb, Yb) and C (Xc, Yc) the equation of the line L parallel to the segment AB and passing by the point C is given by: Y= mX +k where: Ya-Yb m is the slope and computed as : m = Xa-Xb k is the intercept and computed as : k Yc -m.Xc Write a java program that calculane and display the slope, the intercept and the equation of the Line parallel to AB and passing by C for the given values: A(1.5, 2), B (2.5, -4) and C (-1.5, 10.5) Your program should output exactly the following: Sample Run The slope is -6.0 The intercept is 1.5 The equation of the parallel is Y--6.0 X15
Expert Answer:
Answer rating: 100% (QA)
The java program for the the given below Java Code import javautilScanner public class ... View the full answer
Related Book For
Vector Mechanics for Engineers Statics and Dynamics
ISBN: 978-0073212227
8th Edition
Authors: Ferdinand Beer, E. Russell Johnston, Jr., Elliot Eisenberg, William Clausen, David Mazurek, Phillip Cornwell
Posted Date:
Students also viewed these programming questions
-
Write a java program that calculates land transfer tax based on the explanation above. Program will take the property value as the input. Program will use multiple if-else statements to calculate...
-
Write a Java program that will compare two numbers. Input Data: Input first integer: 25 Input second integer: 39 Expected Output 25 1= 39 25 < 39 25
-
Write a Java program that starts with an integer n, divides n by 2 if n is even, or multiplies by 3, and add 1 if n is odd, repeat the process until n = 1.
-
Rainbow manufactures wooden backyard playground equipment. Rainbow estimated $1,785,000 of manufacturing overhead and $2,100,000 of direct labour cost for the year. After the year was over, the...
-
McDonalds, Burger King, and Wendys all produce hamburgers, among other things. However, if you prefer burgers from McDonalds, you might consider other burgers an imperfect substitute. With this in...
-
Kopecky Inc., which produces a single product, has prepared the following standard cost sheet for one unit of the product: Direct materials (6 kg at $2.50 per kilogram)......................$15.00...
-
If the capacitance of a cell membrane is measured to be \(6.0 \times 10^{-11} \mathrm{~F}\), what is the area? A. \(6.0 \times 10^{-13} \mathrm{~m}^{2}\) B. \(6.0 \times 10^{-11} \mathrm{~m}^{2}\) C....
-
Methanol is added to a storage tank at a rate of 1200 kg/h and is simultaneously withdrawn at a rate mw (t) (kg/h) that increases linearly with time. At t = 0 the tank contains 750 kg of the liquid...
-
Define black box and white box testing. What are the advantages of each approach? Why are both necessary? b) Consider a program component Binary_Search (list, searched_string) which search a string...
-
If the Bowie plant is sold, those operations will need to shift to the main Largo facility. The CEO is proposing to acquire robotics-based sorting and distribution equipment to facilitate more...
-
Calculate the SNN similarity between each pair of points using the definition of SNN similarity defined in Algorithm 9.10. Table 9.4 lists the two nearest neighbors of four points. Table 9.4. Two...
-
1 0.5 points Question at position 1 In 2023, Bob sold a piece of property (AB = $93971) for $1024512. The purchase price is to be paid as follows: down payment of $213847 (no interest) in 2023 and...
-
Reflecting on the "Sometimes, Often, Always, Never" exercise, explain why it is so easy for communication to break down. What can you do to ensure a successful outcome in a situation in which you...
-
Marlon Brando died at the age of 80. If he spent 1/12 of his life as a child, 2/7 of his life as a youth, 3/8 of his life as an adult, and the rest of his life in old age: 1. For what fraction of his...
-
Which type of report uses financial models to track trends within the business, industry, and economy to predict revenue and profit opportunities?
-
What decision is made by a Medicare Administrative Contractor (MAC) regarding whether to cover a particular service on a MAC-wide basis?
-
On October 1, Keiler Motorcycle Shop had an inventory of 20 dirt bikes at a cost of $ 1,150 each. During the month of October, the following transactions occurred: Oct. 3 Purchased 10 bikes at a cost...
-
Continuation of Exercise 4-83. (a) What is the probability that the first major crack occurs between 12 and 15 miles of the start of inspection? (b) What is the probability that there are no major...
-
Knowing that the blade AB of Sample Prob. 14.7 is in the shape of an arc of a circle, show that the resultant force F exerted by the blade on the stream is applied at the midpoint C of the arc AB.
-
In Prob. 14.97, determine the distance separating the weather satellite from the space shuttle 80 s after its engine has been fired, knowing that the fuel is consumed at a rate of 18.75kg/s.
-
Using the method of Sec. 7.6, solve Prob. 7.34. Problem 7.34: For the beam and loading shown, (a) Draw the shear and bending-moment diagrams, (b) Determine the maximum absolute values of the shear...
-
A spring pendulum features a pendulum bob of mass \(m\) attached to one end of a spring of force-constant \(k\) and unstretched length \(R\). The other end of the spring is attached to a fixed point...
-
A pendulum is constructed from a bob of mass \(m\) on one end of a light string of length \(D\). The other end of string is attached to the top of a circular cylinder of radius \(R\) \((R <2 D /...
-
A plane pendulum is made with a plumb bob of mass \(m\) hanging on a Hooke'slaw spring of negligible mass, force constant \(k\), and unstretched length \(\ell_{0}\). The spring can stretch but is not...
Study smarter with the SolutionInn App