#include using namespace std; class Price { public: double wholesale, retail; }; class Car { public: string make, model; Price price; }; int main() { Car car; car.make="BMW"; car.model="Z4"; car.price.wholesale=50000; car.price.retail=55000; cout << car.make << endl; cout << car.model << endl; cout << car.price.wholesale << endl; cout << car.price.retail << endl; cout << "Profit: $" << car.price.retail - car.price.wholesale << endl; if(car.make=="BMW") cout << "You area BMW"; }