OoP/ Slide 10 Manipulation of the new type Some basic operations: void print (Temperature temp out <<The temperature is degree < temp degree < with the scale M<< temp. scale < endli double celsius (Temperature temp) double cel if (temp. scale=='Fl) cel=(temp. degree-320)/1.8; else cel=temp. degree return cel double fahrenheit(Temperature temp) double fa f(temp.scale==C)fa= temp. degree *1.8+320i else fa=temp. degree return faOOP / Slide 10 void print(Temperature temp) { cout << “The temperature is degree “ << temp.degree << “with the scale “ << temp.scale << endl; } double celsius(Temperature temp) { double cel; if (temp.scale==‘F’) cel=(temp.degree-32.0)/1.8; else cel=temp.degree; return cel; } double fahrenheit(Temperature temp) { double fa; if(temp.scale==‘C’) fa= temp.degree *1.8+32.0; else fa=temp.degree; return fa; } Some basic operations: Manipulation of the new type: