Want this question answered?
It may take one days or weeks depending on an individual.
#include<iostream> class expand { public: expand(unsigned long long num):value(num){} std::ostream& operator()(std::ostream& out)const; private: unsigned long long value; static const char * const units[20]; static const char * const tens[10]; }; const char * const expand::units[20] = {"zero", "one", "two", "three","four","five","six","seven", "eight","nine", "ten", "eleven","twelve","thirteen","fourteen","fifteen","sixteen","seventeen", "eighteen","nineteen"}; const char * const expand::tens[10] = {"", "ten", "twenty", "thirty","forty","fifty","sixty","seventy", "eighty","ninety"}; std::ostream &operator<< (std::ostream &out, expand number) { return(number(out)); } std::ostream &expand::operator()(std::ostream &out) const { const unsigned long long quintillion=1000000000000000000; const unsigned long long quadrillion=1000000000000000; const unsigned long long trillion=1000000000000; const unsigned long long billion=1000000000; const unsigned long long million=1000000; const unsigned long long thousand=1000; const unsigned long long hundred=100; const unsigned long long twenty=20; const unsigned long long ten=10; unsigned long long multiple=quintillion; unsigned long long remain; if(value>=thousand) { while(multiple>value&&(multiple!=quintillionmultiple!=quadrillion multiple!=trillionmultiple!=billionmultiple!=millionmultiple!=thousand)) multiple/=1000; out<<expand(value/multiple); switch(multiple) { case(quintillion):out<<"-quintillion"; break; case(quadrillion):out<<"-quadrillion"; break; case(trillion):out<<"-trillion"; break; case(billion):out<<"-billion"; break; case(million):out<<"-million";break; case(thousand):out<<"-thousand";break; } if(remain=value%multiple) { if(remain<hundred) out<<"-and"; out<<"-"<<expand(remain); } } else if(value>=hundred) { out<<expand(value/hundred)<<"-hundred"; if(remain=value%hundred) out<<"-and-"<<expand(remain); } else if(value>=twenty) { out<<tens[value/ten]; if(remain=value%ten) out<<"-"<<expand(remain); } else out<<units[value]; return(out); } int main() { for(unsigned long long ull=0; ull<0xffffffffffffffff; ++ull) std::cout<<expand(ull)<<std::endl; return(0); }
That would be acetone.
switch is a loop which is used for checking various conditions and print corresponding matter.switch(a)//where a is that whose condition you have to check.#includemain(){char a;printf("enter a char.");scanf("%c",&a);switch(a){case 'a':printf("vowel");break;case 'e':printf("vowel");break;case 'i':printf("vowel");break;case 'o':printf("vowel");break;case 'u':printf("vowel");break;default:printf("consonent");}}
#include<iostream> class expand { public: expand(unsigned long long num):value(num){} std::ostream& operator()(std::ostream& out)const; private: unsigned long long value; static const char * const units[20]; static const char * const tens[10]; }; const char * const expand::units[20] = {"zero", "one", "two", "three","four","five","six","seven", "eight","nine", "ten", "eleven","twelve","thirteen","fourteen","fifteen","sixteen","seventeen", "eighteen","nineteen"}; const char * const expand::tens[10] = {"", "ten", "twenty", "thirty","forty","fifty","sixty","seventy", "eighty","ninety"}; std::ostream &operator<< (std::ostream &out, expand number) { return(number(out)); } std::ostream &expand::operator()(std::ostream &out) const { const unsigned long long quintillion=1000000000000000000; const unsigned long long quadrillion=1000000000000000; const unsigned long long trillion=1000000000000; const unsigned long long billion=1000000000; const unsigned long long million=1000000; const unsigned long long thousand=1000; const unsigned long long hundred=100; const unsigned long long twenty=20; const unsigned long long ten=10; unsigned long long multiple=quintillion; unsigned long long remain; if(value>=thousand) { while(multiple>value&&(multiple!=quintillionmultiple!=quadrillion multiple!=trillionmultiple!=billionmultiple!=millionmultiple!=thousand)) multiple/=1000; out<<expand(value/multiple); switch(multiple) { case(quintillion):out<<"-quintillion"; break; case(quadrillion):out<<"-quadrillion"; break; case(trillion):out<<"-trillion"; break; case(billion):out<<"-billion"; break; case(million):out<<"-million";break; case(thousand):out<<"-thousand";break; } if(remain=value%multiple) { if(remain<hundred) out<<"-and"; out<<"-"<<expand(remain); } } else if(value>=hundred) { out<<expand(value/hundred)<<"-hundred"; if(remain=value%hundred) out<<"-and-"<<expand(remain); } else if(value>=twenty) { out<<tens[value/ten]; if(remain=value%ten) out<<"-"<<expand(remain); } else out<<units[value]; return(out); } int main() { for(unsigned long long ull=10000000; ull<100000000; ++ull) std::cout<<expand(ull)<<std::endl; return(0); }
It can take up to two months for an apple core to decompose in a landfill. Banana peels will take a few days to decompose. While glass takes a very long time to decompose, a paper bag can take up to five months.
Styrofoam cups last in the landfill for hundreds of years. Paper cups break down much faster. Paper would only last for a month.
A cotton or woolen sock (natural fibres) will break down in a warm moist landfill in a matter of weeks. A sock made of man-made fibres (rayon, nylon etc) will really never break down. It may break into tiny pieces (which animals and insects may eat) but it will still remain rayon and nylon etc for ever. (It is possible that a chemical reaction, or radiation from the sun, may change its composition.)
Once a pen is used and tossed into landfill, it could take up to 50,000 years to decompose, which is staggering considering over 14 million pens are bought worldwide, each day. :(
it takes 20 years approximetly to break down.
not forever, but for a long time. glass can be broken down as it has sand and other minerals in it. so in answer to your question, no.
Banana Peel- 3-4 weeks Orange peels- 6 months Apple Core- 2 months
The water will not ever break down. You will need to remove it.
depends of what its made of and whats in the landfill but maybe a year before it decomposes
forever.....
50 years!!!!
Hundreds to thousands of years depending on the type plastichttp://en.wikipedia.org/wiki/Plastic#Environmental_issues