How JustAnswer Works:
  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.
Ask ATLPROG Your Own Question
ATLPROG
ATLPROG, Computer Software Engineer
Category: Programming
Satisfied Customers: 7677
Experience:  MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML
44910485
Type Your Programming Question Here...
ATLPROG is online now
A new question is answered every 9 seconds

I need a Java program to do the following: I have the

Customer Question

Hi, I need a Java program to do the following:I have the followingCapital state
----------------------------------------
Sacramento CaliforniaI need a program in Python or Java where from the above if I give the input as Sacramento, it returns the state California and if I supply California, it returns Capital as Sacramento. Please note there is a "--------------" and it need to considered even in an array.
Submitted: 1 year ago.
Category: Programming
Expert:  ATLPROG replied 1 year ago.

Hi I can help

Customer: replied 1 year ago.
Please can you give me the exact program
Expert:  ATLPROG replied 1 year ago.

Can you please post exact requirements

Customer: replied 1 year ago.
Capital state
----------------------------------------
Sacramento CaliforniaFrom the above a user will be required to input the following: Enter Capital or State:Once user provides the input, if he provides input as Sacramento, then the program should return State: CaliforniaIf the user input California, the program should return Capital : Sacramento
Customer: replied 1 year ago.
if you want you can run the code in the following URL and please make sure it returns the output correctly. Once you think its right, please provide me the code and I will execute it again in the same URLhttp://www.tutorialspoint.com/execute_python_online.php
Customer: replied 1 year ago.
But if you are confident, please just paste the code and I will execute it myself
Customer: replied 1 year ago.
hi..can u do this Python?
Customer: replied 1 year ago.
hi ..should I wait? please let me know
Expert:  LogicPro replied 1 year ago.

sorry, did not saw some working with you. Please continue