Question: Utilizing your Lab 2 code as a starting point, move both the input and output functions declarations outside the class. They will no longer be

Utilizing your Lab 2 code as a starting point, move both the input and output functions declarations outside the class. They will no longer be able to directly access your private data (you'll need to use both mutators and accessors for private data access).
We have added a new load type, Combo Flat. Your code will need to handle this as a string. Combo Flat abbreviations for the 737 are CFE, CFK and CFM.
Create your objects on 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.
Add a copy constructor.
Create an object on the stack with the following information (or appropriate data of your choice):Copy the object using a copy constructor. Output the contents of both objects. Your code must include both the friend function and the copy constructor.
Your code will be tested with both pounds and kilograms as inputs. Submit your .cpp file via Canvas. Remember, late labs lose points.
 Utilizing your Lab 2 code as a starting point, move both

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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!