Friday, 18 January 2013

Computer Programming C / C + +


Part-1/ First Semester                                                                  Diploma in information Technology


Computer Programming C / C + +

(PAPER- 1)
Total Th Hrs    40                                                                          Total Pr Hrs     40
Total Th Mks  50                                                                           Total Pr. Mks   50

Objective

                        Hundreds of computer languages are in use today, C/C ++ is one of them. It is one of the most powerful, general purpose high level programming language. It is a versatile language. This language can be sued for almost any programming task. The purpose of including this subject in DIT course is to enable the students to develop application programs in various fields such as business, education, accounting, database management etc.

Chapter No. 1                        WHAT IS C / C + + ?
Objective

            The purpose of this chapter is to discuss the C/C ++ language, its advantages and its brief history.


Chapter No.2                         BASIC LELMENTS OF C/C ++ PROGRAM
Objective:

The purpose of this chapter is to equip the students with different elements of
C/C ++ that are required to write a complete C/C ++ program.

o   Variables

-                      Naming Variables
-                      Variable Types
  • Constants.
-                      Numeric Constants
        • Integer Constants
        • Floating Point Constants.
        • Exponential Real Constants.
-                      Non-Numeric Constants.
·         Character Constants
·         String Constants
*          C/C + + Operators.
*          C/C + + Expressions
*          C/C + + Statements.
Chapter No.3                         STRUCTURE OF C/C + + PROGRAM
Objective
                        C/C + + statement are usually composed of keywords, which are used in conjunction with the basic element of the language like constants, variables and expression. The purpose of this chapter is to discuss the structure of a C/C ++ program as well as those statements, which appear in almost every C/C++ program.

*          Structure of C/C ++ program
*          C/C ++ comments.
*          C/C++ libraries
*          C/C ++ Data types.
*          The size of operator
*          Declaring Variables & Constants.
*          Assignment & Multiple Assignment operator.
*          How to assign String data?
*          Priority of Operations
*          Types Casting Operator.
*          Increment (++) & Decrement (--) operators.
*          Compound assignment operators  
Chapter No. 4                                OUTPUT STATEMENS.
Objective:
                        There are several C/C++ functions to indicate different types of actions to be performed during executions. Output functions are one of them. This chapter will discuss those functions, which appear in almost every C/C ++ program.

*          The printf ( ) function.
*          The clrser ( ) function.
*          The cout, output stream.
*          The putch ( ) & putchar ( ) Character output Function.
*          The puts ( ) String output Function.

Chapter No. 5                                 INPUT STATEMENTS.
Objective 
            Data may be accepted for variables at the time of program’s execution. For this purpose, different input statements are used, which will be discussed in this chapter
*          The scanf ( ) function
*          The gets ( ) function.
*          The getchar  ( ), getch ( ) , and getch ( ) functions.
*          Input using cin


Chapter No. 6            MAKING DECISIONS.
 Objective
                        In this chapter, students will learn how to make decisions in C/C++. They learn how to code the program, so that the computer tests a condition and selects one of two alternative actions depending on whether the condition is true or false.
*          Transfer of Control Process.
*          The if, if- else and nested if statements.
*          Relational operators.
*          Conditional Operators.
*          Multiple Choice statements (switch / case / break / default).
Chapter No.7                                     looping
Objective
                        The counter & looping are two main features of computer programming. After this chapter, students will be able to know, how to construct or design a program with looping structure.
*          Counters.
                        -           Standard Counter.
                        -           Accumulator Counter.
                        -           Multiplicative Counter.
*          Looping in C/C ++
*          The for & nested- for statement
*          The while loop.
*          The do while loop.
*          The break, continue and exit ( ) statements.
*          Preprocessor Directive.
Chapter No. 8                        STANDARD LIBRARY FUNCTION
Objective
                        Library functions make programming much simpler in many situations and save the programming effort. This chapter equip the student with the most important the most widely used library functions.
  • Trigonometric Functions
            Sin ( ) , cos ( ) , tan ( ) etc.   
  • Arithmetic Functions.
Abs ( ), sqrt ( ), log ( ), exp ( ), ceill ( ) . floor ( ) pow ( ) pow 10 ( ), random( ) , rand ( ), etc.
  • String Functions.
          Strlen ( ) strlwr ( ), strupr ( ) ,strrev ( ), strncpy ( ), strecat ( ),   strncat   ( ), etc.
Reference Books / Helping Material

3 comments:

  1. This comment has been removed by a blog administrator.

    ReplyDelete
  2. This comment has been removed by a blog administrator.

    ReplyDelete
  3. Good work I appreciate your hardworking

    ReplyDelete