williampagan9532
10.06.2021 •
Business
Explain the three types of resources used in businesses
Solved
Show answers
More tips
- G Goods and services How to Choose the Best Publishing House for Your Children s Book: Tips and Recommendations...
- S Science and Technology When do we change our clocks?...
- A Animals and plants How to Teach Your Parrot to Talk?...
- F Family and Home How to Remove Fading from Clothes: Tips and Tricks...
- F Food and Cooking How to Make Polendwitsa at Home?...
- F Family and Home Parents or Environment: Who Has the Most Influence on a Child s Upbringing?...
- P Philosophy Unbelievable stories of encounters with otherworldly forces...
- L Leisure and Entertainment How to Choose the Perfect Gift for Men on February 23rd?...
- H Health and Medicine How to Treat Whooping Cough in Children?...
- H Health and Medicine Simple Ways to Lower Cholesterol in the Blood: Tips and Tricks...
Answers on questions: Business
- M Mathematics What is the equation for g, which is f(x)=2x+3x-1 reflected across the y-axis...
- M Mathematics What is the answer 47 * 63...
- M Mathematics Which step contains a mistake4.5/1/4+21/2-0.75x8 Step1: 18+2 1/2-0.75x8 Step2: 18+1.75x8 Step3: 18+14 Step4:32...
- M Mathematics Plz help asap. i beg...
Ответ:
The type of business in the production sector engaged in the processing of natural resources (animals and plants) is called an agrarian business. Types of business that are included in the agricultural sector (agriculture in the broadest sense) include rice fields, plantations, forestry, animal husbandry, and fisheries.
Explanation:
Ответ:
Below is the required code:
Explanation:
Using for loop
#include <iostream>
using namespace std;
int main()
{
//Initial crud size
int init = 0;
int newCrud;
int next=0;
//Number of days to simulate
int no_days;
int day;
cout << "Enter initial amount of green crud: ";
cin >> newCrud;
cout << "Enter number of days to simulate: ";
cin >> no_days;
for (day = 10; day<=no_days; day++)
{
if (day % 10 == 0)
{
next = newCrud + init;
}
newCrud = init;
init = next;
}
if (no_days < 5)
cout << "\nCrud reproduce only after 5 days minimum.Hence the current amount is "
<< newCrud << " pounds.";
else
cout << "On day " << no_days << " you have " << init
<< " pounds of green crud." << endl;
cout << "\nWould you like to continue? (y or n): ";
cin >> ans;
return 0;
}
Output:
Enter initial amount of green crud: 5
Enter number of days to simulate: 220
On day 220 you have 10485760 pounds of green crud.
Using while loop
Program:
#include <iostream>
using namespace std;
int main()
{
char ans='y';
while (ans == 'Y' || ans == 'y')
{
//Initial crud size
int init = 0;
int newCrud;
int next=0;
//Number of days to simulate
int no_days;
int day;
cout << "Enter initial amount of green crud:
";
cin >> newCrud;
cout << "Enter number of days to simulate:
";
cin >> no_days;
for (day = 10; day<=no_days; day++)
{
if (day % 10 == 0)
{
next = newCrud + init;
}
newCrud = init;
init = next;
}
if (no_days < 5)
cout << "\nCrud reproduce only after 5 days
minimum.Hence the current amount is "
<< newCrud << " pounds.";
else
cout << "On day " << no_days << " you have "
<< init
<< " pounds of green crud." << endl;
cout << "\nWould you like to continue? (y or
n): ";
cin >> ans;
}
return 0;
}
Output:
Enter initial amount of green crud: 5
Enter number of days to simulate: 220
On day 220 you have 10485760 pounds of green crud.
Would you like to continue? (y or n): y
Enter initial amount of green crud: 5
Enter number of days to simulate: 225
On day 225 you have 10485760 pounds of green crud.
Using do while loop
Program:
#include <iostream>
using namespace std;
int main()
{
char ans;
do
{
//Initial crud size
int init = 0;
int newCrud;
int next=0;
//Number of days to simulate
int no_days;
int day;
cout << "Enter initial amount of green crud: ";
cin >> newCrud;
cout << "Enter number of days to simulate: ";
cin >> no_days;
for (day = 10; day<=no_days; day++)
{
if (day % 10 == 0)
{
next = newCrud + init;
}
newCrud = init;
init = next;
}
if (no_days < 5)
cout << "\nCrud reproduce only after 5 days
minimum.Hence the current amount is "
<< newCrud << " pounds.";
else
cout << "On day " << no_days << " you have " <<
init << " pounds of green crud." << endl;
cout << "\nWould you like to continue? (y or n):
";
cin >> ans;
} while (ans == 'Y' || ans == 'y');
return 0;
}
Output:
Enter initial amount of green crud: 5
Enter number of days to simulate: 220
On day 220 you have 10485760 pounds of green crud.
Would you like to continue? (y or n): y
Enter initial amount of green crud: 5
Enter number of days to simulate: 225
On day 225 you have 10485760 pounds of green crud.