Alpha Geek

(8)

$10/per page/Negotiable

About Alpha Geek

Levels Tought:
University

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Environmental science,Essay writing,Programming,Social Science,Statistics Hide all
Teaching Since: Apr 2017
Last Sign in: 347 Weeks Ago, 3 Days Ago
Questions Answered: 9562
Tutorials Posted: 9559

Education

  • bachelor in business administration
    Polytechnic State University Sanluis
    Jan-2006 - Nov-2010

  • CPA
    Polytechnic State University
    Jan-2012 - Nov-2016

Experience

  • Professor
    Harvard Square Academy (HS2)
    Mar-2012 - Present

Category > Programming Posted 13 May 2017 My Price 5.00

Write a method called distance that accepts four integer coordinates

Write a method called distance that accepts four integer coordinates x1, y1, x2, and y2 as parameters and computes the distance between points (x1, y1) and (x2, y2) on the Cartesian plane. The equation for the distance is

For example, the call of distance(1, 0, 4, 4) would return 5.0 and the call of distance(10, 2, 3, 15) would return 14.7648230602334.

 

Answers

(8)
Status NEW Posted 13 May 2017 05:05 AM My Price 5.00

-----------

Attachments

file 1494654240-Answer.docx preview (127 words )
W-----------rit-----------e a----------- me-----------tho-----------d c-----------all-----------ed -----------dis-----------tan-----------ce -----------tha-----------t a-----------cce-----------pts----------- fo-----------ur -----------int-----------ege-----------r c-----------oor-----------din-----------ate-----------s x-----------1, -----------y1,----------- x2-----------, a-----------nd -----------y2Â----------- as----------- pa-----------ram-----------ete-----------rs -----------and----------- co-----------mpu-----------tes----------- th-----------e d-----------ist-----------anc-----------e b-----------etw-----------een----------- po-----------int-----------s (-----------x1,----------- y1-----------) a-----------nd -----------(x2-----------, y-----------2) -----------on -----------the----------- Ca-----------rte-----------sia-----------n p-----------lan-----------e. -----------The----------- eq-----------uat-----------ion----------- fo-----------r t-----------he -----------dis-----------tan-----------ce -----------is ----------- -----------For----------- ex-----------amp-----------le,----------- th-----------e c-----------all----------- of----------- di-----------sta-----------nce-----------(1,----------- 0,----------- 4,----------- 4)----------- wo-----------uld----------- re-----------tur-----------n 5-----------.0 -----------and----------- th-----------e c-----------all----------- of----------- di-----------sta-----------nce-----------(10-----------, 2-----------, 3-----------, 1-----------5) -----------wou-----------ld -----------ret-----------urn----------- 14-----------.76-----------482-----------306-----------023-----------34.----------- A-----------nsw-----------er ----------- im-----------por-----------t j-----------ava-----------.ut-----------il.-----------Sca-----------nne-----------r; ----------- pu-----------bli-----------c c-----------las-----------s T-----------ran-----------s13-----------8 {----------- ----------- pr-----------iva-----------te -----------sta-----------tic-----------
Not Rated(0)