#include <iostream> #include <string> using namespace std; class footer{ private: -string htmlCode,cssCode; public: -void chooseFooter(string websiteName){ --int footerNumber; --cout<<"Footer 1:\\n" -----"-----------------------------------\\n" -----" (website Name) all rights reserve \\n" -----"-----------------------------------\\n" -----"Footer 2:\\n" -----"-----------------------------------\\n" -----"| (Footer background color) |\\n" -----" (website Name) all rights reserved\\n" -----"-----------------------------------\\n" -----"Enter footer number: "; --cin>>footerNumber; --while(footerNumber!=1&&footerNumber!=2){ ---cout<<"Please, Enter the correct Number: "; ---cin>>footerNumber; --} --generateCode(footerNumber,websiteName); -} -void generateCode(int footerNumber,string websiteName){ --string footerColor,textColor; --htmlCode="<br><br><footer><div class=\\"footerdiv\\">"; --htmlCode+=websiteName; --htmlCode+=" all rights reserved</div></footer>"; --cssCode="footer{margin-left:auto;margin-right:auto;}div.fo--oterdiv{text-align:center;left:0;bottom:0;width:100%; "; --if(footerNumber==2){ ---cout<<"Footer color: "; ---cin>>footerColor; ---cssCode+="background-color: "+footerColor+";"; ---cout<<"Enter text color: "; ---cin>>textColor; ---cssCode+="color: "+textColor+";"; ---cssCode+="position:fixed;"; --} --cssCode+="}"; -} -string getHtml(){ --return htmlCode; -} -string getCss(){ --return cssCode; -} };