Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Java (https://www.askmehelpdesk.com/forumdisplay.php?f=440)
-   -   How would you come about programming this question? (https://www.askmehelpdesk.com/showthread.php?t=816719)

  • Oct 3, 2015, 10:20 AM
    gloryjames
    How would you come about programming this question?
    How would you come about programming this question? Can anyone help?
    How would you write a program
    called MobileRange that has the
    (x,y) coordinates of 4 cities hard
    coded using static final constants.
    The program should ask the user for the maximum distance (i.e. range shown here) that you may be from each city center (in kms) before your cell phone service does
    not work(using either the Scanner class or
    the showInputDialog()) . You must
    create a static function called getRange() that takes a city number as a parameter and the function should ask the user to enter the range for that city (e.g. "Enter
    max cell phone connectivity
    distance for city 1: ") and then return the range as an integer obtained from the user?
  • Oct 3, 2015, 11:18 AM
    smoothy
    Since this is homework.

    Show us what you have so far...

  • All times are GMT -7. The time now is 03:11 AM.