Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 11

10

LOVELY PROFESSIONAL UNIVERSITY


TERM PAPER ON

CSE (101)

NAME: Manoj Kumar baid

REGD. NO: 11006519

SECTION: D4003

ROLL NO: RD4003B71

SUBMITTED TO: MR. NITESH KUMAR


10

Acknowledgement

I WOULD LIKE TO BE THANKFUL TO MY TEACHER WHO


GAVE ME SUCH A NICE TOPIC BY WHICH I ABLE TO
LEARN THESE THINGS AND OF COURSE TELL YOU ABOUT
THESE THINGS . I M THANKFUL TO MY PARENTS WHO
BROUGHT ME TO THIS LEVEL, MY FRIENDS WHO GUIDED
ME AT EVERY MOMENT AND MY TEACHERS WHO HELPED
ME IN UPDATING MY KNOWLEDGE.

CONTENTS

About C______________________________________________3

Introduction_________________________________________3

About the program__________________________________4

Use of function______________________________________5
Use of Switch_______________________________________5

Use of goto__________________________________________7

Future Scope________________________________________11
10

ABOUT C:
C is a popular general purpose programming language, designed and
developed by Dennis Ritchie. C is a structures language, which allows
vareity of programs in small modules. The user is required to think of a
problem in terms of function blocks. With appropiate collection of
different modules, the programmer can make a complete program.

Programming rules:

1) Program is case cencitive. So be careful.

2) Blank spaces is not used while declaring a


variable,keyword,constant or function.

3) The opening and closing braces should be balanced.

INTRODUCTION

One of the greatest challenges for businesses today is how to manage


customers, stocks, distribution and services in the most cost-effective
manner. In a lot of cases, business owners or managers fail to monitor
and manage their daily business activities simply because lack of real-
time and automated information system. These problems have become
the major factors for customer dissatisfaction, waste of time, high
administration cost, distribution breakdown, lost of stocks, and
inability to improve sales performance, that can eventually hinder a
company from growing further.
10

Distribution Management System is a powerful business application


that facilitates every aspect of your distribution chain, from
customers, ordering, inventory, delivery, payment right through to
services management. All data is available on your screen, from a
web-browser or your server, helping you to automate your business
processes and make real-time mission-critical decisions.

ABOUT THE PROGRAM:


The program given by me, helps a distributor to keep a complete record of its
stock and its customers. To make this program I needed many concepts like
functions, goto function, switch function, file handling etc…

In this program distributor has a choice to add a customer details,


cookies,candys,cold drinks, choclates,snacks etc to keep record of.

First of all I have protected the file using a password, so that only the
distributor can handle it…

-------------------------------------------------------------------------------

TO START PROGRAM PRESS ENTER THE PASSWORD =


10

Use of a function:

If user enter correct password than program directs him to the function manoj();..

And the rest of the program runs in it…

Next using a switch case I gave distributor the choice that whether he wants to
add customer, view customer detalis, enter the different brands, cut a bill or view
bill details….

Syntax used for switch is:

Switch(variable)

Case 1:

---------;

---------;

break;

And so on….
10

------------------------------------------------------------------------------

WEL COME YOU IN BALAJI ENTERPRICES

YOU ARE LUCKY BECAUSE YOU ARE HERE

--------******----------------------------------------------------******--------

ENTRER YOUR CHOICE FOR WANDRING IN THIS COMPANY

******************************************************************
*************

1. ADD THE CUSTOMER

2. CUSTOMER LIST

3. BRAND OF CANDY'S

4. BRAND OF CHOCALATE

5. BRAND OF COOKIES

6. BRAND OF COLD DRINKS

7. BRAND OF SNACKS

8. BRAND OF GIFT PACK

9. BIll

10.RECORD OF BILLS THAT HAS CUT

11. EXIT

ENTER YOUR CHOICE:=


10

Next I used goto statement, if user has 2 choices…

Syntax:

If(condition)

goto variable1; /// true///

else

goto variable2; /////false////

}----------------------------------------------------------------------------

BRANDS AVAILABLE IN BAWEJA TRADERS COMPANY

----------------------------------------------------------------------------

if you want to enter new brand then press 1 else press any another key1

ENTER THE COLD DRINKS NAME=mirinda

ENTER THE PRICE OF BRAND NAME=25

thumsup 12.000000

mirinda 25.000000

PRESS 1 KEY FOR GO IN MAIN MAIN MENU=


10

**********************FOR EXIT PRESS ANY KEY*************=

-------------------------------------------------------------------------------

RECORDS OF ALL BILL

-------------------------------------------------------------------------------

date: 21.3.3214

CUTOMER: manoj QTY OF BRANDS=3 TOTAL==100.000000

PRESS 1 KEY FOR GO IN MAIN MAIN MENU=

**********************FOR EXIT PRESS ANY KEY*************=

----------------------------------------------------------------------------

ENTER THE CUSTOMER FOR RECORD

----------------------------------------------------------------------------

ENTER THE CUSTOMER NAME=rohit

ENTER THE BRAND NAME=laptops

ENTER THE PRICE OF BRAND NAME=25000

PRESS 1 KEY FOR GO IN MAIN MAIN MENU=


10

------------------------------------------------------------------

CUSTOMER BILL

-----------------------------------------------------------------

enter date: 25/1/2010

ENTER THE CUSTOMER NAME: sandeep

ENTER HOW MANY BRANDS YOU ARE PURCHASE: 2

ENTER THE BRAND PRICE: 23

ENTER THE BRAND PRICE: 7

TOTAL=30.000000

--------------------------------------------------------------------------------

---

THANKS FOR PURCHASING OF BRANDS FROM BALAJI


ENTERPRICES

--------------------------------------------------------------------------------

-----

HAVE A NICE DAY

PRESS 1 KEY FOR GO IN MAIN MAIN MENU=

**********************FOR EXIT PRESS ANY KEY*************=


10

-------------------------------------------------------------------------------

RECORDS OF ALL BILL

-------------------------------------------------------------------------------

date: 21.3.3214

CUTOMER: manoj QTY OF BRANDS=3 TOTAL==100.000000

date: 25/1/2010

CUTOMER: sandeep QTY OF BRANDS=2 TOTAL==30.000000

PRESS 1 KEY FOR GO IN MAIN MAIN MENU=

**********************FOR EXIT PRESS ANY KEY*************=


10

FUTURE SCOPE:

The distributor management may also include all items of the


distributor, as well as the automation of the procedures and
regulations ruling their creation, archiving, security, distribution and
disposal, including their final destruction or long term preservation for
future accessibility by the public and researchers. EOAS is a
pioneering system in the area of distributor Management, since it
satisfies all the requirements of an integrated distributor records
Management System and is currently the only one in Europe that
provides such a degree of completeness in functionality.

You might also like