Simulate a car paddle and speed
Write a echo TCP client, connect the server interviewer provided and read metric from it.
(You write a client, they provide you server, you just read response from server thats all)
Two request types you can send to server.
2. Throttle <number>
For example, you send a "STATUS" request to server and server respond back with
num1 is your pressure on the paddle
num2 is your current speed
>> 0.0 0.0 (means your current pressure is 0 and speed is 0)
>> 50.1 3.75
>> 50.1 15.98
You can see the speed is increasing, its like driving car. The goal is to how to reach a constant target speed for example like 30
Open Chat in New Window