Professional Documents
Culture Documents
Lovely Professional University: Term Paper On CSE
Lovely Professional University: Term Paper On CSE
CSE (101)
SECTION: D4003
Acknowledgement
CONTENTS
About C______________________________________________3
Introduction_________________________________________3
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:
INTRODUCTION
First of all I have protected the file using a password, so that only the
distributor can handle it…
-------------------------------------------------------------------------------
Use of a function:
If user enter correct password than program directs him to the function manoj();..
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….
Switch(variable)
Case 1:
---------;
---------;
break;
And so on….
10
------------------------------------------------------------------------------
--------******----------------------------------------------------******--------
******************************************************************
*************
2. CUSTOMER LIST
3. BRAND OF CANDY'S
4. BRAND OF CHOCALATE
5. BRAND OF COOKIES
7. BRAND OF SNACKS
9. BIll
11. EXIT
Syntax:
If(condition)
else
}----------------------------------------------------------------------------
----------------------------------------------------------------------------
if you want to enter new brand then press 1 else press any another key1
thumsup 12.000000
mirinda 25.000000
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
date: 21.3.3214
----------------------------------------------------------------------------
----------------------------------------------------------------------------
------------------------------------------------------------------
CUSTOMER BILL
-----------------------------------------------------------------
TOTAL=30.000000
--------------------------------------------------------------------------------
---
--------------------------------------------------------------------------------
-----
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
date: 21.3.3214
date: 25/1/2010
FUTURE SCOPE: