Question: So I have this client and server code, and basically the client either chooses B for binary or H for Hex when they choose. The

So I have this client and server code, and basically the client either chooses B for binary or H for Hex when they choose. The user inputs an integer, and the server converts it to either Hex or Binary depending on what the user chose. The code I provided seems to have an error. Every time I chose Hex or Binary, it gives me the wrong answers. For example, I chose H and input 17, it gives me the output F, which is incorrect. Another example, when I chose B and input 100, it gives me 11. And so on. Help me fix this logical error, please
 So I have this client and server code, and basically the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!