Chapter 7: Problem 25
A class weight is having a data member pound, which will have the weight in pounds. Using a conversion function, convert the weight in pounds to weight in kilograms which is of double type. Write a program to do this. 1 pounds \(=1 \mathrm{~kg} / 0.453592\) Use default constructor to initial assignment of 1000 pounds.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.