Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
2
Posts with Downvotes
1
Downvoting Members
2
0 Endorsements
~392 People Reached
Favorite Forums
Favorite Tags
Member Avatar for Allison_1

Write a program that calculates the mileage and/or cost of fuel by asking the user to input two cities. I NEED HELP. MY TEACHER DOESN'T TEACH ME ANYTHING. San Diego, CA and Houston, TX 1473.4 miles Nevada, KY and Alaska, PA 501.1 miles

Member Avatar for masijade
-2
139
Member Avatar for Allison_1

Task: Write a program that calculates the mileage and/or cost of fuel by asking the user to input two cities. It only works for two places and not all three, why? How can I put just the name of the location instead of inputting the numbers? package Winterproject; import java.lang.Math; …

Member Avatar for JamesCherrill
0
253