Write a program to create a room class, the attributes of this class is roomno, roomtype, roomarea and ACmachine. In this class the member functions are setdata and displaydata.
/* Write a program to create a room class, the attributes of this class is roomno, roomtype, roomarea and ACmachine. In this class the member functions are setdata and displaydata. */ class Room { int roomno; String roomtype; float roomarea; boolean ACmachine; void setdata(int no,String type,float area,boolean ac) { roomno = no; roomtype = type; roomarea = area; ACmachine = ac; } void displaydata() { System.out.println("Room Number Is : " + roomno); System.out.println("Room Type Is : " + roomtype); System.out.println("Room Area Is : " + roomarea); String machine = (ACmachine) ? "Yes" : "No"; ...