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 it gives me the output F which is incorrect. Another example, when I chose B and input it gives me And so on Help me fix this logical error, please
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
