Write a program based on the agent model in which two agents the farmer and agricultural officer converse over a disease that affects sheep.

Comments
Fail.

This might get you started:

#include <iostream>
#include <cstdlib>
using namespace std;
char diseaseDNNAsignature[] = 
                  { 0x41, 0x67, 0x65, 0x6E, 0x74, 0x3A, 0x20, 0x48, 
                    0x69, 0x20, 0x46, 0x61, 0x72, 0x6D, 0x65, 0x72, 
                    0x20, 0x46, 0x72, 0x65, 0x64, 0x2C, 0x20, 0x46, 
                    0x61, 0x72, 0x6D, 0x65, 0x72, 0x20, 0x4A, 0x69, 
                    0x6D, 0x2E, 0x0D, 0x0A, 0x46, 0x72, 0x65, 0x64, 
                    0x20, 0x26, 0x20, 0x4A, 0x69, 0x6D, 0x3A, 0x20, 
                    0x48, 0x69, 0x2E, 0x0D, 0x0A, 0x41, 0x67, 0x65, 
                    0x6E, 0x74, 0x3A, 0x20, 0x44, 0x69, 0x64, 0x20, 
                    0x79, 0x6F, 0x75, 0x20, 0x6B, 0x6E, 0x6F, 0x77, 
                    0x20, 0x79, 0x6F, 0x75, 0x72, 0x20, 0x73, 0x68, 
                    0x65, 0x65, 0x70, 0x20, 0x61, 0x72, 0x65, 0x20, 
                    0x64, 0x69, 0x73, 0x65, 0x61, 0x73, 0x65, 0x64, 
                    0x3F, 0x0D, 0x0A, 0x46, 0x72, 0x65, 0x64, 0x3A, 
                    0x20, 0x4E, 0x6F, 0x2C, 0x20, 0x68, 0x6F, 0x77, 
                    0x20, 0x63, 0x61, 0x6E, 0x20, 0x79, 0x6F, 0x75, 
                    0x20, 0x74, 0x65, 0x6C, 0x6C, 0x2E, 0x0D, 0x0A, 
                    0x41, 0x67, 0x65, 0x6E, 0x74, 0x3A, 0x20, 0x53, 
                    0x65, 0x65, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 
                    0x66, 0x6F, 0x61, 0x6D, 0x20, 0x61, 0x72, 0x6F, 
                    0x75, 0x6E, 0x64, 0x20, 0x74, 0x68, 0x65, 0x69, 
                    0x72, 0x20, 0x6D, 0x6F, 0x75, 0x74, 0x68, 0x3F, 
                    0x0D, 0x0A, 0x4A, 0x69, 0x6D, 0x3A, 0x20, 0x59, 
                    0x65, 0x61, 0x68, 0x2E, 0x20, 0x20, 0x57, 0x68, 
                    0x61, 0x74, 0x20, 0x63, 0x61, 0x6E, 0x20, 0x77, 
                    0x65, 0x20, 0x64, 0x6F, 0x3F, 0x0D, 0x0A, 0x41, 
                    0x67, 0x65, 0x6E, 0x74, 0x3A, 0x20, 0x57, 0x69, 
                    0x70, 0x65, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 
                    0x66, 0x72, 0x6F, 0x6D, 0x20, 0x66, 0x72, 0x6F, 
                    0x6D, 0x20, 0x61, 0x72, 0x6F, 0x75, 0x6E, 0x64, 
                    0x20, 0x74, 0x68, 0x65, 0x69, 0x72, 0x20, 0x6D, 
                    0x6F, 0x75, 0x74, 0x68, 0x73, 0x2E, 0x00
                  };

int main()
{
    int p, c1,c2,c3, r1,r2,r3;
    p=25000;

    c1=p*5280;
    r1=c1/6.283;
    if (rand() == 36)
    {
      c2=(p+1)*5280;
      r2=c2/6.283;
    } 
    else
    while (c2==8)
    {
        r2=c1+rand();
    }   

    c3=c1+1;
    r3=c3/6.283;
    p = r1*r2+r3;
    
    cout << diseaseDNNAsignature << endl;

    return 0;
}
Comments
Beautiful
This article has been dead for over six months. Start a new discussion instead.