Question: Help with c++ please. Topics: Friend functions Copy constructor Lab 3.1 Create your objects in the stack (not on the heap). Add a friend function,

Help with c++ please. Topics: Friend functions Copy constructor Lab 3.1 CreateHelp with c++ please.

Topics: Friend functions Copy constructor Lab 3.1 Create your objects in the stack (not on the heap). Add a friend function, kilotopound, which will convert kilograms to pounds. Change your weight mutator to ask whether weight is input in kilograms or pounds. If it is kilograms, call the friend function kilotopound to convert it to pounds and return pounds. There are 2.2 pounds in one kilogram. Create an object on the stack with the following information: uld - Container abbreviation - AYK uldid - AYK689431B aircraft - 737 weight - 1654 Kilograms destination - PDX Output the contents of your object. Lab 3.2 Utilizing Lab 3.1 code, add a copy constructor. Create an object on the stack using the following data: uld - Container abbreviation - ABB uldid - ABB315451B aircraft - 737 weight - 1156 destination - BUR Copy the first object using a copy constructor. Output the contents of both objects

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The initial answer does not fully address the requirement to change the weight mutator to handle bot... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!