[Solved]Write C Code Called Check Check Countries Coffee Production Range 400000 Q37159187
write a c++ code
called check to check if the countries have coffee productionin the range ( 400000<production<60000),so 1 if the condition is satisfied and 0 other wisethe fuction will be :void check(int production [ ], bool status[ ] , intsize)
out put example:
this is the code you will complete on :![#include <iostream> #include <string> using namespace std; void read(string Country[J,int Production[],int size) for(int i-0;](https://media.cheggcdn.com/media%2F926%2F926af831-e487-4e5d-bac4-e3659089770e%2Fimage.png)
Production Status Coontry 2859502 423287 22487 385786 57940 Brazil Ethiopia Guatemala India Mexico 0 #include <iostream> #include <string> using namespace std; void read(string Country[J,int Production[],int size) for(int i-0;i<size:i) cout<“Enter country “.” cin>>Countryi coutくぐEnter production “<<i+1 <ぐ:”. cin>>Production[i] void sort(string Country[],int Production],int size) for(int i-0;i sizei+ for(int j-i+1j size:j++) if(Country [i Country string temp Country[i]; Country[i] Country[il: Countryil temp; int temp-Production[i]; Productioni Productionj] Productionil-templ; int main() string Country[5] int Production[5]; read(Country,Production,5); sort(Country,Production,5); coutくく”Country t Production”くくendl; fortint 1-0;i<5;i++){ coutくくCountry[i]<<“”くくProduction [i]<<endl; Show transcribed image text Production Status Coontry 2859502 423287 22487 385786 57940 Brazil Ethiopia Guatemala India Mexico 0
#include #include using namespace std; void read(string Country[J,int Production[],int size) for(int i-0;iCountryi coutくぐEnter production ”
Expert Answer
Answer to write a c++ code called check to check if the countries have coffee production in the range ( 400000… . . .
OR

