Design the class line type to store a line

Assignment Help JAVA Programming
Reference no: EM13881061

The equation of a line in standard form is ax + by ¼ c, wherein both a and b cannot be zero, and a, b, and c are real numbers. If b 6¼ 0, then -a/b is theslope of the line. If a ¼ 0, then it is a horizontal line, and if b ¼ 0, then it isa vertical line. The slope of a vertical line is undefined. Two lines areparallel if they have the same slope or both are vertical lines. Two lines areperpendicular if either one of the lines is horizontal and the other is verticalor the product of their slopes is -

1. Design the class lineType to store aline. To store a line, you need to store the values of a (coefficient of x), b(coefficient of y), and c. Your class must contain the following operations.

a. If a line is nonvertical, then determine its slope.

b. Determine if two lines are equal. (Two lines a1x + b1y ¼ c1 and a2x +b2y ¼ c2 are equal if either a1¼ a2, b1¼ b2, and c1¼ c2 or a1¼ ka2,b1¼ kb2, and c1¼ kc2 for some real number k.)

c. Determine if two lines are parallel.

d. Determine if two lines are perpendicular.

e. If two lines are not parallel, then find the point of intersection.

Reference no: EM13881061

Questions Cloud

Rate of heat transfer to the water : If the tube surface temperature is Ts = 350 K and the gas-side convection coefficient is hg = 30 W/m2 · K, what is the rate of heat transfer to the water per meter of pipe length?
What fares should the airline charge : What fares should the airline charge, and how many passengers will buy tickets of each type? Remember that maximum revenue is obtained by setting MRB equal to MRE
Differences between groups and teams how do we convert : Let's discuss the differences between groups and teams. How do we convert a group to a team? What benefits might come from this conversion in a business environment?
Determining the outlet temperature of the process fluid : Estimate the outlet temperature of the process fluid. Tm,o. Assume, and then justify, fully developed flow and thermal conditions within the tube.
Design the class line type to store a line : Design the class lineType to store aline. To store a line, you need to store the values of a (coefficient of x), b(coefficient of y), and c. Your class must contain the following operations.
What are fundamental and non-egoistic theories of ethics : What are two fundamental, non-egoistic, classic normative theories of ethics? [HINT: Kantian deontology and Millsian utilitarianism] Provide a general characterization of each of these perspectives and correlate them with Kant and Mill
Function of tube diameter for the three flow rates : Plot the pressure gradient as a function of tube diameter for the three flow rates. Assume the tube wall is smooth.
Find the optimal price by hand : Treating price as the relevant decision variable, create a spreadsheet (based on the example shown) to model this setting. Compute the price elasticity in cell B12 according to EP = (dQ /dP)(P/Q ).
How does global context influence type of global knowledge : How does global context influence the type of global knowledge and competencies needed for successful global leadership

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd