Ask Experts Questions for FREE Help !
Ask
    gloryjames's Avatar
    gloryjames Posts: 1, Reputation: 1
    New Member
     
    #1

    Oct 3, 2015, 10:20 AM
    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?
    smoothy's Avatar
    smoothy Posts: 25,492, Reputation: 2853
    Uber Member
     
    #2

    Oct 3, 2015, 11:18 AM
    Since this is homework.

    Show us what you have so far...

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

My question is related to c programming. [ 4 Answers ]

Please sort out my difficulty regarding c programming. What is the technical meaning of getch() in c programming.

Programming vb question [ 1 Answers ]

Hello and good day to all... I created a database contains "Down Time" table inside this table there is 'employee number' , 'no material PC' and other columns and now I am programming in Visual Basic 2010 and I want to retrieve all the sum of all values that entered into 'no material PC'...

Programming Question. [ 3 Answers ]

Hi, I'm stumped with this.. Can you please help? How would I design nested structures that perform: If amount1 is greater than 10 and amount2 is less than 100, display the greater of amount1 and amount2


View more questions Search