B54 Programming in C and C++ 20230628
B54 Programming in C and C++ 20230628
Of
Revision-I
July 2023
NIELIT Gorakhpur
M.M.M.U.T. Campus, Deoria Road
Gorakhpur (U.P.) -273010
1
CONTENTS
Sl. No. Title Page No.
2. NIELIT 2
3. Objective of Course 2
4. Job Role of Course 3
5. Eligibility 3
6. Duration of Course 3
7. Practical/ Tutorial 3
8. Course Details 3-5
9. Reference Books / Study Material 5
10. Practical Assignments 6-8
1. About Course
This course is designed to provide acquire the Knowledge of C and C++ Programming
Language, after the course students will be able to: Build basic programs using
fundamental programming constructs like variables, conditional logic, looping, functions
Pointers, Array, File handling, OOPs Concepts. Work with user input to create fun and
interactive programs.
2. NIELIT
National Institute of Electronics and Information Technology, NIELIT, (Erstwhile
DOEACC Society) is an autonomous scientific society of the Ministry of Electronics &
Information Technology, Government of India. The Society is registered under the
Societies Registration Act, 1860. NIELIT was set up to carry out Human Resource
Development and related activities in the area of Information, Electronics &
Communications Technology (IECT). NIELIT is engaged both in Formal & Non-Formal
Education in the areas of IECT besides development of industry oriented quality
education and training programmes in the state-of-the-art areas. NIELIT has endeavored
to establish standards to be the country’s premier institution for Examination and
Certification in the field of IECT. It is also one of the National Examination Body, which
accredits institutes/organizations for conducting courses in IT and Electronics in the non-
formal sector.
3. Objective of Course
The objectives of this course are to make the student understand programming language,
programming, concepts of Loops, reading a set of Data, stepwise refinement, Functions,
Control structure, Arrays. After completion of this course the student is expected to
analyze the real-life problem and write a program in ‘C’ language to solve the problem.
The main emphasis of the course will be on problem solving aspect i.e. developing proper
algorithms. And to make students familiar with the concept of Object-Oriented
Programming & its implementation.
After completing the module, the learner will be able to:
• Understand the C Language and describe its features.
• Understand the concept of C Program & make program by using Control Structure.
• Able to understand the User Defined Function and create the UDF.
• Understand the Pointers and File Handling in C.
• Understand the concept of OOPs.
• Understand the concept Class & Objects
• Able to understand about the Constructor, Destructor, Encapsulation, Abstraction,
• Polymorphism, and Inheritance
3. Eligibility
10th Pass, Basic Knowledge of Computer.
5. Course Details
7.1. Course Outline and Objective of Each Unit
S. Unit Name Duration Duratio Total Learning Objectives
No. (Theory) n Learni
in Hours (Practic ng
al) in Hrs.
Hours
1 Introduction 2 1 3 After completion of this unit of
to C module, Learner will be able to
Language • Understand Basic of C
Programming Compare
it’s with other
programming language
understand Data type.
• Able to make Program by
accepting user input.
30 30 60
7. Practical Assignments
Assignment 1.
• Write a program to print "Hello, This is My First C Language".
• Program to read two numbers and print their quotient and remainder.
• Program to take the temperature in Celsius and convert it to Fahrenheit.
• Program to read height in centimeters and then convert the height to feet and inches
• Program to add two numbers.
• Program to print odd numbers within a given range.
• Program for Program to find area of a circle.
• Program for Simple interest calculation.
• Program to reverse three digits number without using loop.
• Program to exchange the values of two numbers without using a temporary variable.
• Program to calculate gross salary where gross salary=Basic+HRA+DA
o In this HRA is 16% of Basic, DA is 12% of Basic
Assignment 2.
• Write a program to find maximum between two numbers using if else.
• Write a program to find maximum among three number
• Program to Take in the Marks of 5 Subjects and Display the Grade.
• Program to check Armstrong Number use three digit number.
• Write a program to check whether a number is positive, negative or zero.
Assignment 3.
• Program to calculate factorial of a given number
• Program to find the sum of digits in a number.
• Program to count the number of digits in a number.
• Program for n-th Fibonacci number.
Assignment 4.
• Create a function to calculate the area of Circle.
• Create a function to find out factorial of a number.
• Create a function to find the reverse of a number.
• Create a function to calculate the arithmetic operation.
Assignment 5.
• Find Out Length of String.
• Program to Check Palindrome of string.
• Program to count No. of vowels of string.
• By using String Function Count a substring in main string
Assignment 6.
• Function to calculate remainder.
• Find the Square of a number using function.
• Program to add number from 1 to 6 by using Function recursion.
• Program to Calculate Factorial Value By Using Recursion Function.
Assignment 7.
• Program to check the file is Exist or not.
• Program to Read text from File. (File Must be created before reading) at default location.
• Write a program to save the output of program in a file.
Assignment 8.
• Create a Program to calculate sum of two numbers by Using OOPs Concept.
• Create a constructor to take input as a Function.
• Create a class that derived from base class by using derived class object access the base class
method.