Answer to Question #20130 in C++ for ljv

Question #20130
CLASS PROJECT - DUE ON DECEMBER 5TH, 2012



A: CREATE A CLASS TO CONVERT FROM ANY NUMBER BASE TO ANOTHER (FOR Example: from DECIMAL to BINARY)

CLASS SHOULD

- have only one private long integer variable

- contain overloaded constructors as follows

* className() (DEFAULT CONSTRUCTOR - creates an object with default integer value of zero)

* className( int x ) (CONSTRUCTOR - creates an object with default integer value of x in decimal base)

* className( char x, char c) (CONSTRUCTOR - creates object with integer convert to decimal from base c)

- have a public member function get_value() such that

* get_value() - returns the decimal value of integer variable

* get_value( char c ) - returns the base c value of decimal integer variable

* get_value( int x, i
0
Expert's answer

Answer in progress...

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 the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS