numberFloors=inputdlg({'Please Enter The Number Of Floors Required:'});
numberFloors=str2double(numberFloors{1});
disp('Number of floors must be at least 1');
floorLength=zeros(1,numberFloors);
floorWidth=zeros(1,numberFloors);
floorHeight=zeros(1,numberFloors);
numberRooms=zeros(1,numberFloors);
while mainlooptotal<=numberFloors
floorLength(i)=input(['Please enter floor ',num2str(mainlooptotal),' length: ']);
floorWidth(i)=input(['Please enter floor ',num2str(mainlooptotal),' width: ']);
floorHeight(i)=input(['Please enter floor ',num2str(mainlooptotal),' height: ']);
numberRooms(i)=input(['Please enter the number of rooms on floor ',num2str(mainlooptotal),': ']);
if floorLength(i)<=0 || floorWidth(i)<=0 || floorHeight(i)<=0 || numberRooms(i)<=0
disp('Floor dimensions and number of rooms must be greater than 0');
mainlooptotal=mainlooptotal+1;
roomLength=zeros(1,(numberRooms(i)));
roomWidth=zeros(1,(numberRooms(i)));
while roomlooptotal<=numberRooms
typeofroom =('type of room');
numberType=inputdlg({'Please enter the type of room(residential, office, education, toilet or storage)'});
roomLength(j)=input(['Please enter room ',num2str(roomlooptotal),' length: ']);
roomWidth(j)=input(['Please enter room ',num2str(roomlooptotal),' width: ']);
roomHeight(j)=input(['Please enter room ',num2str(roomlooptotal),' height: ']);
if roomLength(j)<=0 || roomWidth(j)<=0 || roomHeight(j)<=0
disp('Room dimensions must be greater than 0');
roomYcoordinates= input('y coordinate of room:');
roomxcoordinates= input('x coordinate of room:');
roomlooptotal=roomlooptotal+1;
choice = questdlg('What type of environment would your building be in', 'Question','Urban', 'Sub-urban','Urban');
if isequal(choice,'Urban')