It may take one days or weeks depending on an individual.
That would be acetone.
#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); }
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); }
The time it takes for foam to break down can vary depending on the type of foam and environmental conditions. Generally, foam made from polystyrene can take hundreds of years to break down in a landfill, while foam made from natural materials like cornstarch can break down faster in composting conditions.
A disposable nappy can take approximately 500 years to break down in a landfill due to the materials they are made of, such as plastics and other synthetic materials that do not easily degrade. This long decomposition time contributes to environmental pollution and waste management challenges.
It can take hundreds of years for a Huggies diaper to break down naturally in the environment due to the materials used in their production, such as plastics and absorbent gels. Items like diapers contribute significantly to landfill waste and can have long-lasting environmental impacts.
Styrofoam cups last in the landfill for hundreds of years. Paper cups break down much faster. Paper would only last for a month.
Glass can take thousands of years to decompose in a landfill because it is not biodegradable and does not break down naturally. This makes it a significant environmental concern as it can remain in landfills for centuries. Recycling glass is a more sustainable option to reduce its environmental impact.
It can take anywhere from 2 weeks to 50 years for certain items in a landfill to biodegrade. Organic materials like food waste and paper break down much faster, while plastics and metals can take hundreds to thousands of years to degrade.
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.
Wool socks can take around 1-5 years to fully break down in a landfill, as wool is a natural material that decomposes relatively slowly. However, if composted in appropriate conditions, wool socks can break down within a few months to a year.
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.)
A toothpick typically takes around 1-3 months to decompose, depending on environmental conditions such as moisture and temperature. It will break down faster in a compost pile or landfill compared to in the open environment.
A typical incandescent light bulb can take hundreds of years to break down in a landfill due to its glass and metal components. However, some parts of the bulb, such as the tungsten filament and any hazardous materials like mercury, may still pose environmental risks if not properly disposed of.
PVC (polyvinyl chloride) can take several hundred years to decompose in a landfill. It is a durable material that does not readily break down in the environment, leading to long-lasting environmental impacts. Recycling PVC is a more sustainable option to reduce its impact on the environment.