Description : This assignment will require two NetBeans projects, one for the client and one for the server.

The Client project will

  • Ask the user for the temperature in Fahrenheit
  • Send the Fahrenheit temperature value to the server
  • Read back the converted temperature from the server
  • Output the properly-labeled, converted temperature to the user

The Server project will

  • Created a multi-threaded server capable of responding to multiple requests simultaneously
  • Await requests from a client
  • Read a Fahrenheit temperature from the client
  • Convert the Fahrenheit temperature to Celsius
  • Write the Celsius temperature back to the client

HINTS

You can look at the example programs for guidance, but start your own NetBeans projects for the assignment Temperature values should be doubles

Be careful with integer division; it will throw off your calculations

By this point in your college career, you should be able to look up how to convert between temperature units

Read user input as a String and then try to convert. It makes error handling easier.

You can assume that both the client and server are running on localhost

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.