EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
9th Edition
ISBN: 9781337671385
Author: FARRELL
Publisher: CENGAGE LEARNING - CONSIGNMENT
Expert Solution & Answer
Book Icon
Chapter 3, Problem 7RQ
Program Description Answer

The correct method call for the declared method public static void showResults(double d, int i) is “showResults(12.2, 67)”.

Hence, the correct answer is option “B”.

Blurred answer
Students have asked these similar questions
Write a static method that draws an arrow line from astartingpoint to an ending point in a pane using the following method header:public static void drawArrowLine(double startX, double startY,double endX, double endY, Pane pane) Write a test program that randomly draws an arrow line, as shown in Figure.
1. Write the following method that returns the intersecting point between two lines (p1, p2) and (p3, p4): public static Point2D getIntersecting Point ( Point 2D pl, Point2D p2, Point 2D p3, Point2D p4); The method returns null if the two lines are parallel. Write a test program that prompts the user to enter three points and displays the center point. Here is a sample run. (Hint: for finding the intersecting point between two lines, see Programming Exercise 8.31.) Enter x1, yl, x2, y2, x3, y3, x4, y4: 2 2 5 -1.0 4.0 2.0 -1.0 -2.0 The intersecting point is at (2.88889, 1.1111) Enter x1, yl, x2, y2, x3, y3, x4, y4: 2 2 7 6.0 4.0 2.0 -1.0 -2.0 The two lines are parallel
1. Write the following method that returns the intersecting point between two lines (p1, p2) and (p3, p4): public static Point 2D getIntersecting Point ( Point 2D pl, Point 2D p2, Point 2D p3, Point2D p4); The method returns null if the two lines are parallel. Write a test program that prompts the user to enter three points and displays the center point. Here is a sample run. (Hint: for finding the intersecting point between two lines, see Programming Exercise 8.31.) Enter x1, yl, x2, y2, x3, y3, x4, y4: 225 -1.0 4.0 2.0 -1.0 -2.0 The intersecting point is at (2.88889, 1.1111) The two lines are parallel
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
  • Text book image
    EBK JAVA PROGRAMMING
    Computer Science
    ISBN:9781337671385
    Author:FARRELL
    Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT