/**********************************************************************\ PROGRAM: tilefor.cpp PURPOSE: to enable more than one shaded area to be calculated using a for loop AUTHOR: Tony Jinman DATE WRITTEN: 04/05/00 LAST UPDATE : 04/05/00 \**********************************************************************/ #include void main() {//start of function main float roomLength, roomWidth,nonTiling=0, shadedLength,shadedWidth,areaToTile; int numShaded; cout<<"Length of room: "; cin>>roomLength; cout<<"Width of room: "; cin>>roomWidth; cout<<"\n\nNumber of shaded areas: "; cin>>numShaded; cout<<"\n"; for(int i=1;i<=numShaded;i++) {//start of for loop cout<<"\nLength of shaded area "<>shadedLength; cout<<"Width of shaded area "<>shadedWidth; nonTiling+=shadedLength*shadedWidth; }//end of for loop areaToTile=roomLength*roomWidth-nonTiling; cout<<"\n\nThe area to tile is "<