90 038
Assignments Done
99.7%
Successfully Done
In September 2020

# Answer to Question #12507 in C# for Nora

Question #12507
We want to convert an integer number into any base B between 2 and 35 (e.g to base 5 or to base 16 or to base
8) and build the corresponding string (e.g. the value X=143 in base B=2 is &ldquo;10001111&rdquo; while in base B=16 is &ldquo;8F&rdquo; and in base B=8 is &ldquo;217&rdquo;).
Write the C function: int convert_to_base(int B, int X, char text[], int N) receiving the arguments:
&ndash; an integer X
&ndash; the base B (integer between 2 and 35)
&ndash; a char array text of length N where the function should build X represented in base B. NOTICE: digits greater than 9 are encoded by the characters A .. Z as follows:
A = 10, B = 11, C = 12, D = 13, ..., X = 33, Y = 34, Z = 35
0
Expert's answer

#### Not answered

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

#### Comments

No comments. Be first!

### Ask Your question

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS