Categories
C++

Learning Goal: I’m working on a c++ question and need an explanation and answer

Place your order now for a similar assignment and have exceptional work written by our team of experts, At affordable rates

For This or a Similar Paper Click To Order Now

Learning Goal: I’m working on a c++ question and need an explanation and answer to help me learn.
Change freqFlyerNo to an integer. Anyplace there is a default, make it 0.
○ Compile, run, and make sure there are no errors.
● Add a print() function to the Passenger class (there is an example in the slides, but you will need to make some significant changes in the code).
○ Hint 1: print() should have no parameters
○ Hint 2: since there are no parameters, you cannot reference ‘pass’. Instead, replace ‘pass.name’ with ‘this->name’. Do the same for the other data members.
○ In main, print a passenger of your choice: p5.print();
○ Compile and run to to verify it works.

For This or a Similar Paper Click To Order Now

Leave a Reply