subject

Beartooth Hiking Company has decided that they would also like to provide rate quotes as a socket service in addition to the Web-start solution. For this homework, you are to modify your last homework to connect to a socket server to get the quote information instead of using the Rates and BookingDay classes.

The BHC server will be on :20025 (128.220.101.240:20025). It expects data in the form of hike_id:begin_year:begin_month:begi n_day:duration (e. g: 1:2008:7:1:3)

Gardiner Lake is hike_id 0, with durations of 3 or 5 days

Hellroaring Plateu is hike_id 1, with durations of 2, 3, or 4 days

Beaten Path is hike_id 2, with durations of 5 or 7 days

January is month 1, and the years are in four digits, and all values are separated by ":"s

The returned result will be the cost followed by a ":", followed by some text. If things go well, you'll get the cost and the text "Quoted Rate", if there is a problem, the cost will by -0.01 and the text will have some explanation. You will need to parse the return results and display them in your GUI. You are not responsible for the logic of the rate quote, as the server will handle it. All you are doing is designing the GUI client and then displaying the results from the server.

You should use a Java app solution (executable jar) solution for this application that is uploaded to the Blackboard server.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:00
Lisa’s company, abc ltd., lost its biggest client and is now facing a financial crunch. most of her colleagues have resigned, but lisa decides to stay with the company and assist the management in overcoming the financial situation. which quality is lisa demonstrating? a. self-management b. cooperativeness c. responsibility d. loyalty
Answers: 2
question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. a company wants to use online methods to target more customers. it decides to conduct a market research by collecting the data of a few customers with their consent. they want to track data of the sites that their customers frequently visit. which software can the company? a. spyware b. bots c. adware d. trojan horse e. rootkits
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
What is the total resistance in a circuit that contains three 60 ohm resistors connected in a series? a. 20 ohms b. 120 ohms c. 60 ohms d. 180 ohms
Answers: 2
question
Computers and Technology, 24.06.2019 14:00
In simple terms, how would you define a protocol?
Answers: 2
You know the right answer?
Beartooth Hiking Company has decided that they would also like to provide rate quotes as a socket se...
Questions
question
Mathematics, 10.11.2020 01:00
question
History, 10.11.2020 01:00
question
History, 10.11.2020 01:00
question
Mathematics, 10.11.2020 01:00
Questions on the website: 13722367