Function

1,004 views

Published on

Published in: Education
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,004
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
41
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide
  • 1. INTRODUCTION   Information and communication technology (ICTs) are playing an increasingly vital role in the daily Lives of people, revolutionizing work and leisure and changing the rules of doing business. In the Realm of government, ICT applications are promising to enhance the delivery of public goods and services to citizens not only by improving the process and management of government, but also by redefining the traditional concepts of citizenship and democracy. Reforms are necessary in any country, any society. They are an indicator of a progressive people, bent upon fine-tuning their own governance and upkeep.   E-governance or electronic governance may be defined as delivery of government services and information to the public using electronic means. E governance to implement citizen-IT based application in the RTO (regional transport office) is the next logical step. As regional transport office is (RTO) one of the government department having the higher interaction with the citizens and as the density of vehicles as has shown an exponential growth in last few years, IT industry application will help to overcome the problem of the existing system and provide “fast and quality services” to the customers.   The facility is designed as a centralized monitoring system, wherein the action from the entire district licensing could be verified from the central administrator through the website itself .Under the system ,the district authority is able to avail details of the activities like the number of applications field for license total number of license issue ,license application on pending, reason for delay of process duration of licensing of process in each application and the no. of application rejected.   E-Governance focuses on-   Greater attention to improve services delivery mechanism. Enhancing the efficiency of production. Emphasis upon the wider access of information.
  • The facility is designed as a centralized monitoring system, wherein the action from the entire district licensing could be verified from the central administrator through the website itself .Under the system ,the district authority is able to avail details of the activities like the number of applications field for license total number of license issue ,license application on pending, reason for delay of process duration of licensing of process in each application and the no. of application rejected.   E-Governance focuses on-   Greater attention to improve services delivery mechanism. Enhancing the efficiency of production. Emphasis upon the wider access of information.
  • The following procedure our to undergo for license which are quite unpredictable and time consuming and require a lot of paper work which is tedious and checks a customer patience. These can be overcome if all the works are undergo through a computerized. Process, which will reduce paper work as well as human efforts.    
  • AGE LIMIT FOR OBTAINING A DRIVING LICENCE Motor Cycles with Gear - 18 Yrs & Above   Motor Cycles without Gear  - 16 Yrs & Above   Private Light Motor Vehicles - 18 Yrs & Above   Transport Vehicles - 20 Yrs & Above      
  •   The importance of the system is concerned according to the class of user which is going to use the system. The following type of user as follows:-   As per the citizens: This system is important for citizens due to following reason: Even an unregistered user can get a brief idea about the procedure followed for issuing of the License. A registered user can apply for issuing of learning License by providing the required credentials and paying the required money. Registered user need to undergo a test which is conducted online and it is mandatory for him to clear the test in order to prove his eligibility for earning a permanent License.   As per the Government Representatives: This system is important for the officials working in the RTO due to following reason: Pace up with the economic globalization. Helps to reduce the paperwork. No fear of going through hundred of files to check single application. Reliable way of testing the knowledge of the applicant by conducting an automated test. An application cannot remain unnoticed for a very long period.  
  • BASIC ARCHITECTURE   Architecture   Database – This is the backbone or the back end. Three databases namely DB2 version 7.2 or higher, oracle 8i and version 8.1.6 or higher and MySQL Server 2000 or higher can be used for storing all the data about the transactions undertaken for future use.   Application server – This is the middle layer which manages the business rules that manipulates the data as per the governing condition of the applications. It provides a database independent interface for applications and makes the front end robust. This application uses the JAVA RMI framework or ASP.NET programs to establish connection to client. This feature enables a program running on the client computer to make method calls on an object located on a remote server machine.   Client- The presentation and control logic embedded in the client tier. This is the GUI layer of the application using swing component of JAVA , which will interact with the application server by means of forms.   BASIC ARCHITECTURE   Architecture   Database – This is the backbone or the back end. Three databases namely DB2 version 7.2 or higher, oracle 8i and version 8.1.6 or higher and MySQL Server 2000 or higher can be used for storing all the data about the transactions undertaken for future use.   Application server – This is the middle layer which manages the business rules that manipulates the data as per the governing condition of the applications. It provides a database independent interface for applications and makes the front end robust. This application uses the JAVA RMI framework or ASP.NET programs to establish connection to client. This feature enables a program running on the client computer to make method calls on an object located on a remote server machine.   Client- The presentation and control logic embedded in the client tier. This is the GUI layer of the application using swing component of JAVA , which will interact with the application server by means of forms.   BASIC ARCHITECTURE   Architecture   Database – This is the backbone or the back end. Three databases namely DB2 version 7.2 or higher, oracle 8i and version 8.1.6 or higher and MySQL Server 2000 or higher can be used for storing all the data about the transactions undertaken for future use.   Application server – This is the middle layer which manages the business rules that manipulates the data as per the governing condition of the applications. It provides a database independent interface for applications and makes the front end robust. This application uses the JAVA RMI framework or ASP.NET programs to establish connection to client. This feature enables a program running on the client computer to make method calls on an object located on a remote server machine.   Client- The presentation and control logic embedded in the client tier. This is the GUI layer of the application using swing component of JAVA , which will interact with the application server by means of forms.  
  • Function

    1. 1. Presentation on function in 'c-language' by- Sanju & Amit
    2. 2. function Defination:- function is a self-contained block of program that performs a coherent task of some kinds. Function is also called as modular programming.
    3. 3. Types of function <ul><li>Library function
    4. 4. User define function </li></ul>
    5. 5. library function <ul><ul><ul><li>Library function are nothing but commonly required function together and stored in library. The library function are not required to be written by us. </li></ul></ul></ul><ul><ul><ul><li>Printf( )
    6. 6. Scanf( ) </li></ul></ul></ul>
    7. 7. User define function <ul><li>Main ( ) </li></ul>This function as to be developed by the user at the time of writing a program. ‘ main’ is specially used function in C. Every program must have main function to indicate, where the program begins its execution.  
    8. 8. Things to make function <ul><li>Function prototype </li></ul><ul><li>Function call
    9. 9. Function definition </li></ul>
    10. 10. Function call A  function call  is an expression containing a simple type name and a parenthesized argument list. The argument list can contain any number of expressions separated by commas. It can also be empty. For example: res= sum ( a , b); prime(&no);
    11. 11. Function definition In C user- written functions should normally be declared prior to its use to allow compiler to perform type checking on arguments used in its call statement. Syntex- Return_data_type function_name (data_type Var_name, …..);
    12. 12. <ul><li>Function name: this is the name given to the function. </li></ul>int sum (int a, int b) Note- “ sum ” is the function name <ul><li>Return data type: this specifies the type of data given back to the calling construct. </li></ul>int sum (int a, int b) Note- “ int ” is the return data type
    13. 13.   <ul><li>Passing parameters : this specifies the data type of each variables, the values of which are expected to be transmitted to the function. These variables are known as formal parameters. </li></ul>int sum ( int a , int b ) Note- “ int a , int b ” are the parameters.
    14. 14. Function declaration and prototypes All identifiers in C need to be declared before they are used. For functions the declaration needs to be before the first call of the function. A full declaration includes the return type and the number and type of the arguments. This is also called the function prototype. The prototype gives a lot of information about the function. #include <stdio.h> int sum (int a, int b); //prototype <ul><li>it tells it the return type.
    15. 15. it tells it how many parameters there are. </li></ul>
    16. 16. Argument – passing of values b/w the main program and the function takes place through arguments. Formal and actual argument- The actual arguments are the arguments with which the function can be called. Simply function call contains actual arguments. // Call func with actual arguments i and j. func( i, j ); -The formal arguments are the arguments with which the function can be defined. function defination contains formal arguments void Func( int i ); // Function prototype … Func( 7 ); // Execute function call
    17. 17. CALL BY VALUE AND CALL BY REFERENCE   Call by value- Whenever  we called a function and passed something to it we have always passed the ‘values’ of variables to the called function. Such function calls are called ‘calls by value. in this context we are working on copies of actual argument.
    18. 18. swap ( a, b ) ; main( ) { int a = 10, b = 20 ; printf ( &quot;n a = %d b = %d&quot;, a, b ) ; <ul><ul><ul><li>}
    19. 19. swap ( int x, int y )
    20. 20. {
    21. 21. int t ;
    22. 22. t = x ;
    23. 23. x = y ;
    24. 24. y = t ;
    25. 25. printf ( &quot;n x = %d y = %d&quot;, x, y ) ;
    26. 26. }
    27. 27. The output of the above program would be:
    28. 28. x = 20 y = 10 </li></ul></ul></ul>
    29. 29. Call by refrence- An  argument passing convention where the address of an argument variable  is passed to a  function  or  procedure as opposed to passing the value of the argument expression. 
    30. 30. Int sum(int *,int *); void main() { int i=10, j=20; K=sum(&i,&j); Printf(“%d”,k); } Int sum(int *a, int *b) { int c; C=*a+*b; return( c ); }
    31. 31. Recursion A function is called recursive if a statement with in the body of the function calls the same function. Sometimes called circular definition. Recursion is thus the process of defining something in terms of itself.
    32. 32. Main() { int a, fact; printf(“n enter any number”); Scanf(“%d”, &a); fact = rec (a); Printf(“factorial value=%d”,fact); } int rec (int x) { int f ; if (x==1) return(1); else f=x*rec(x-1); return (f); }
    33. 33. Need for implementing recursion- <ul><li>Decomposition into smaller problems of same size. </li></ul><ul><li>Recursive call must diminish problem size. </li></ul>
    34. 34. Advantages <ul><ul><ul><li>It reduces the Complexity in a program by reducing the code.
    35. 35. It also reduces the Time to run a program. In other way,Its directly proportional to Complexity.
    36. 36. Its easy to find-out the errors due to the blocks made as function definition outside the main function. </li></ul></ul></ul>
    37. 37. Return statement The return statement terminates the execution of a function and returns control to the calling function. Execution resumes in the calling function at the point immediately following the call. r eturn expression ; return; The default return type is int.
    38. 38. Thank you

    ×