Moran owns a building he bought during year 0 for $150,000. He sold the building in year 6. During the time he held the building he depreciated it by $32,000. What is the amount and character of the gain or loss Moran will recognize on the sale in each of the following alternative situations?