Simulate a car paddle and speed
0 Answers
Simulate a car paddle and speed
| Flag | PURGE
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.
1. STATUS
2. Throttle <number>
For example, you send a "STATUS" request to server and server respond back with
<num1> <num2>
0.0 0.0
num1 is your pressure on the paddle
num2 is your current speed
Status
>> 0.0 0.0 (means your current pressure is 0 and speed is 0)
Throttle 50.1
Status
>> 50.1 3.75
Status
>> 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
Email me when people comment.
Email me when people comment.
Loading...
An error occurred in subscribing you.
Email me when people comment.
Email me when people comment.
Loading...
An error occurred in subscribing you.
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.