Car assignment :

 

 

 

Screen conversation:

 

What is the company, model and year of the first car?

 

Who owns this car?

 

<make myCar1>

 

What is the company, model and year of the second car?

 

Who owns this car?

 

<make myCar2>

 

<print both>

 

Who is buying car #1

 

<update myCar1’s owner>

   (hint: call myCar1’s sellIt method passing the new owner name)

 

Who is buying car #2

 

<update myCar2’s owner>

   (hint: call myCar2’s sellIt method passing the new owner name)

 

<print both once more>