31
Lovely Professional University Term Paper On C Language Topic:-Fertilizer Management system DOA: DOR: DOS:

Fertilizer Management System

Embed Size (px)

DESCRIPTION

Fertilizer Management System

Citation preview

Lovely Professional University

Term Paper

On

C LanguageTopic:-Fertilizer Management system

DOA:

DOR:

DOS:Submitted to:

Submitted by:

Mr. /

Mr. /Ms Deptt. Of CSE

Roll. No. Reg.No Class RBINTRODUCTION

Some fertilizer prices have been to historic highs and some fertilizer prices have been to historic lows in the last six months of 2008. World economic forces, credit issues, demand destruction, transportation costs, labor strikes, commodity price swings, and other influences have changed once stabile fertilizer markets. Some market comments indicate that price swings may be settling in late winter as final 2009 crop and credit decisions are made. Growers should focus on nutrient management decisions that economically produce crops.

The Fertilization Decison

Each producer manages nutrients through answering a few simple questions:

Are fertilizers necessary to produce the crop?

How much fertilizer is needed if necessary?

What fertilizers are available if needed?

When is the best time to apply fertilizer?

How should the fertilizer be applied?

Fertility management is important. However, variety selection, water management, insects, nematodes, diseases, weed pressure, and climatic conditions also affect crops.HISTORY OF C:C is a popular general purpose programming language. It is one of the most popular computer languages today, because it is a structured, high level, machine independent language.

The root of all modern language is ALGOL, introduced in early 1960s. ALGOL was the 1st computer language to use a block structure. Subsequently, several other languages were announced after 1960s. In 1967, Martin Richard developed a language called BCPL i.e. basic combined programming language mainly for writing system softwares. In 1970, Ken Thompson created a language using many features of BCPL and called it simply B. B was used to create early version of UNIX operating system.

C was evolved from ALGOL, BCPL, and B by Dennis Ritchie at the Bell Laboratories in 1972, strongly associated with UNIX. During 1970s, C had evolved into the TRADITIONAL C. With the publication of the book The C Programming language by Brian Kerningham and Dennis Ritchie in 1978, it becomes more powerful.

In 1983, American National Standards Institutes (ANSI) appointed a technical committee to define a standard for C. The committee approved a version of C in December 1989, which is now known as ANSI C. It was then approved by International Standard Organization (ISO) in 1990.

IMPORTANCE OF C

The increasing popularity of C is probably due to its many desirable qualities. The C compiler combines the capabilities of an assembly language with the features of a high level language and therefore it is well suited for writing both system software and business packages. In fact many of the C compilers available in the market are written in C. Programs written in C are efficient and fast. This is due to its variety of data types and powerful operators. It is many times faster than BASIC.

There are only 32 key words in ANSI C and its strength lies in its built in functions. C is highly portable; this means that C programs written for one computer can be run on another with little or no modifications. C language is well suited for structured programming, thus requiring the user to think of a problem in terms of function modules or blocks. This modular structure makes program de-bugging, testing and maintenance easier.Another important feature of C is its ability to extend itself. We can continuously add our own functions to C library, thus our programming task becomes so easier and simpleSYSTEM REQIUREMENTS:

Minimum hardware reqiurments:

1)128mb ram, intel atom or amd athlon processor.

2) 20 mb of free hard disk space.Keyboard

Monitor

Software reqiurements:

1) minimum16 bit dos

2) turbo c

3) windows operating system (95, 98, xp, vista)

CODING

#include

#include

#include

#include

#include

#include

#include

#include

#include

void show_mouse();

int t();

void edit();

void infor();

void entry();

void display();

void search();

void search_id();

void search_name();

void del();

void deletion();

void deletion_id();

void print();

void help();

void eat();

void general();

void exit();

void seteefect(int, int);

void graph();

void bar(int inscor);

void graph2();

void bar2(int inscore2);

void report();

void report2();

void report3();

void pur();

void graph1();

void design();

void bbox();

void ventry(char t[],int);

struct shop

{

char desc[20];

int rack;

char ch;

int cabnit;

int quantity;

float sale;

char id[6];

float total;

float unit;

float cost;

float profit;

float bye;

int qty;

int ost;

int b;

};

struct shop temp;

struct shop x[20];

FILE *ptr;

//int age;

char a[10];

/************************************displays information about the cars***************************/

void infor()

{

int sher;

clrscr();

textcolor(WHITE);

gotoxy(13,3);

printf("\xDB\xDB\xDB\xDB\xB2 INFORMATION ABOUT PRODUCTS \xB2\xDB\xDB\xDB\xDB");

gotoxy(2,5);

printf("THIS SECTION IS TO TELL WHAT KIND OF PRODUCTS ARE THERE IN STORE");

printf("\n\nENTER THE OPTION WHICH SUITS YOU.\n");

printf("\n\n1.EDIBLES.\n\n");

printf("\n2.GENERAL ITEMS.\n\n");

printf("\n\n\n\n\nOPTION:");

sher=toupper(getch());

//

switch(sher)

{

case '1':

eat();

break;

case '2':

general();

break;

default:

gotoxy(8,21);

cprintf("\awrong entry press any key to go main menu..");

}

getche();

}

void eat()

{

clrscr();

printf("***************************************************************\n");

printf(" ID : 123. JAM COMPANY : MITUCHELS RACK NO 24 \n");

printf(" ID : 124. HONEY COMPANY : PAK PURE RACK NO 25\n");

printf(" ID : 125. MILK COMPANY : HALEEB RACK NO 26\n");

printf(" ID : 126. BREAD COMPANY : WONDER RACK NO 27\n");

printf(" ID : 127. CHEES COMPANY : JUNAID RACK NO 28\n");

printf(" ID : 128. JUICE COMPANY : SONS RACK NO 29\n");

printf(" ID : 129. PEPSI COMPANY : MAJEED RACK NO 30 \n");

printf(" ID : 130. BUTTER COMPANY : JAFFAR RACK NO 31 \n");

printf(" ID : 131. ICECREAM COMPANY : POLKA FREEZER 32 \n");

printf("**************************************************************\n\n");

printf("Press any key to continue......");

getche();

clrscr();

printf(" ID : 133. MILO COMPANY : MITUCHELS RACK NO 24 \n");

printf(" ID : 134. KEY BRAN COMPANY : PAK PURE RACK NO 25\n");

printf(" ID : 135. TANG COMPANY : HALEEB RACK NO 26\n");

printf(" ID : 136. ALWAYS COMPANY : WONDER RACK NO 27\n");

printf(" ID : 327. PEPPARS COMPANY : JUNAID RACK NO 28\n");

printf(" ID : 138. JHERBAL COMPANY : SONS RACK NO 29\n");

printf(" ID : 139. PEPSI COMPANY : MAJEED RACK NO 30 \n");

printf(" ID : 130. ORAGD COMPANY : JAFFAR RACK NO 31 \n");

printf(" ID : 131. ICECREAM COMPANY : POLKA FREEZER 32 \n");

printf("**************************************************************\n");

printf(" ID : 143. SHAMPO COMPANY : MITUCHELS RACK NO 24 \n");

printf(" ID : 144. AGRI COMPANY : PAK PURE RACK NO 25\n");

printf(" ID : 145. TIMO COMPANY : HALEEB RACK NO 26\n");

printf(" ID : 146. WASHSN COMPANY : WONDER RACK NO 27\n");

printf(" ID : 147. LACE COMPANY : JUNAID RACK NO 28\n");

printf(" ID : 428. YARDLY COMPANY : SONS RACK NO 29\n");

printf(" ID : 149. MUSK COMPANY : MAJEED RACK NO 30 \n");

printf(" ID : 140. BUTTER COMPANY : JAFFAR RACK NO 31 \n");

printf(" ID : 141. IMPERIAL COMPANY : POLKA FREEZER 32 \n");

printf("**************************************************************\n");

printf("\n\nPress enter to return to main menu");

}

void general()

{

clrscr();

printf("***************************************************************\n");

printf(" ID : 153. DETOL COMPANY : MITUCHELS RACK NO 24 \n");

printf(" ID : 154. SHAMPO COMPANY : PAK PURE RACK NO 25\n");

printf(" ID : 155. FINERRE COMPANY : HALEEB RACK NO 26\n");

printf(" ID : 156. CURTIS COMPANY : WONDER RACK NO 27\n");

printf(" ID : 157. NIVKA COMPANY : JUNAID RACK NO 28\n");

printf(" ID : 158. NIVCA COMPANY : SONS RACK NO 29\n");

printf(" ID : 159. DETOL COMPANY : MAJEED RACK NO 30 \n");

printf(" ID : 150. BUTTER COMPANY : JAFFAR RACK NO 31 \n");

printf(" ID : 151. SHAVE COMPANY : POLKA FREEZER 32 \n");

printf("***************************************************************\n\n");

printf("Press any key to continue......");

getche();

clrscr();

printf(" ID : 163. ADDIS COMPANY : MITUCHELS RACK NO 24 \n");

printf(" ID : 164. SKIN COMPANY : PAK PURE RACK NO 25\n");

printf(" ID : 165. MAX COMPANY : HALEEB RACK NO 26\n");

printf(" ID : 166. BRESCO COMPANY : WONDER RACK NO 27\n");

printf(" ID : 167. ZABIT COMPANY : JUNAID RACK NO 28\n");

printf(" ID : 168. COPEX COMPANY : SONS RACK NO 29\n");

printf(" ID : 169. SOAP COMPANY : MAJEED RACK NO 30 \n");

printf(" ID : 160. PAMOLI COMPANY : JAFFAR RACK NO 31 \n");

printf(" ID : 161. AVA COMPANY : POLKA FREEZER 32 \n");

printf("***************************************************************\n");

printf(" ID : 163. CAMY COMPANY : MITUCHELS RACK NO 24 \n");

printf(" ID : 164. SAFE COMPANY : PAK PURE RACK NO 25\n");

printf(" ID : 165. GUARD COMPANY : HALEEB RACK NO 26\n");

printf(" ID : 166. DOVE COMPANY : WONDER RACK NO 27\n");

printf(" ID : 167. REXONA COMPANY : JUNAID RACK NO 28\n");

printf(" ID : 168. TOUCNME COMPANY : SONS RACK NO 29\n");

printf(" ID : 169. FORHANS COMPANY : MAJEED RACK NO 30 \n");

printf(" ID : 160. SIGNAL2 COMPANY : JAFFAR RACK NO 31 \n");

printf(" ID : 161. CLOSEUP COMPANY : POLKA FREEZER 32 \n");

printf("***************************************************************\n");

printf("\n\nPress enter to return to main menu");

}

/////////////////////////////// time ///////////////////////////

int t(void)

{

time_t t;

time(&t);

// clrscr();

gotoxy(15,21);

printf("Date and time: %s\n", ctime(&t));

return 0;

}

///////////////////////////////////// validation //////////////////////////

void ventry(char t[],int code)

{

int i=0;

if(code==0)

{

while((t[i]=getch())!='\r' && i=97 && t[i]=65 && t[i]