C++ Tutorial: Some Lab assignments on data conversions

Questions: Write a program that can convert the Distance (meter, centimeter) to meters measurement in float and vice versa. Make a class distance with two data members, meter and centimeter. You can add function members as per your requirement.
Solution:

Questions: Write two classes to store distances in meter-centimeter and feet-inch system respectively. Write conversions functions so that the program can convert objects of both types.

Solution:

SHARE C++ Tutorial: Some Lab assignments on data conversions

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

Share