0% found this document useful (0 votes)
39 views2 pages

CSPC102

The document outlines the course CSPC102: Introduction to Programming, detailing the course outcomes, which include writing and debugging C++ programs, applying functions and recursion, designing classes, and performing file handling operations. It lists a series of experiments for practical application, such as arithmetic operations, temperature conversion, and class implementation. Additionally, it provides a list of recommended textbooks and online resources for further learning.

Uploaded by

karankatowal80
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views2 pages

CSPC102

The document outlines the course CSPC102: Introduction to Programming, detailing the course outcomes, which include writing and debugging C++ programs, applying functions and recursion, designing classes, and performing file handling operations. It lists a series of experiments for practical application, such as arithmetic operations, temperature conversion, and class implementation. Additionally, it provides a list of recommended textbooks and online resources for further learning.

Uploaded by

karankatowal80
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Department of Computer Science & Engineering

Course code:
Introduction to Programming Credits 0–0–2: 1
CSPC102

Course Outcomes: After completion of the course student will be able to:

CO1 Write and debug C++ programs using loops, control structures, and basic I/O operations.
CO2 Apply functions and recursion to solve tasks like factorials and Fibonacci series.
CO3 Design and implement classes to manage real-world data, such as student or bank account
systems.
CO4 Use templates and pointers to write generic functions and manage dynamic memory.
CO5 Perform file handling operations to read, write, and manipulate data in text and binary files.

Mapping of course outcomes with program outcomes:

PO1 PO2 PO3 PO4 PO5 PO6 PO7 PO8 PO9 PO10 PO11 PO12 PSO1 PSO2 PSO3
CO1 2 2 1 3 3 2
CO2 2 2 1 3 3 2
CO3 2 2 1 3 3 2
CO4 2 2 1 3 3 2
CO5 2 2 1 3 3 2

List of Experiments:

1. Write a C++ program to perform basic arithmetic operations (addition, subtraction,


multiplication, division) using `cin` and `cout`.

2. Create a program that converts temperature from Celsius to Fahrenheit and vice versa.

3. Develop a program to find the sum of the digits of a given integer.

4. Write a C++ program to swap two numbers without using a third variable.

5. Write a program that calculates the area and circumference of a circle when the radius is
provided by the user.

6. Implement a program to check if a given year is a leap year using if-else conditions.

7. Write a program to find the factorial of a number using a recursive function.

8. Create a program that accepts a student's marks and assigns grades using a switch-case
statement.

9. Develop a program to generate the Fibonacci series up to N terms using a loop.

10. Implement a program that checks whether a given number is prime using a function.

11. Write a program to calculate the sum and average of elements in an array.

12. Implement a program to multiply two matrices.


13. Create a class `Student` that stores and displays student information (name, roll number,
marks) using member functions.

14. Develop a class `BankAccount` with functions to deposit, withdraw, and check the balance for
a user.

15. Write a program to compare two objects of a class (e.g., comparing the dimensions of two
rectangles).

16. Write a program that checks whether a given string is a palindrome using the `string` class.

17. Implement a template function in C++ that sorts an array of any data type (int, float, etc.).

18. Write a program that dynamically allocates memory for an array of integers and calculates the
sum of the elements.

19. Implement a program to modify and display elements of an array using pointers.

20. Write a program that demonstrates pointer arithmetic (incrementing and decrementing pointers
to traverse an array).

21. Create a program to write data to a file and then read the data back from the file.

22. Write a program to copy the contents of one text file to another.

23. Implement a program that writes and reads data (e.g., student records) to and from a binary file.

24. Create a program to count the number of lines, words, and characters in a given text file.

25. Write a program that demonstrates the use of command-line arguments by passing a file name
and printing its content.

Learning Resources:

Textbooks:
1. "Programming: Principles and Practice Using C++" by Bjarne Stroustrup, Addison-Wesley, 2nd Edition,
2014.
2. "Object-Oriented Programming with C++" by E. Balagurusamy, McGraw Hill, 8th Edition, 2020.
3. "The C++ Programming Language" by Bjarne Stroustrup, Addison-Wesley, 4th Edition, 2013.
Reference Books:
1. "C++ Primer" by Stanley B. Lippman, Josée Lajoie, and Barbara E. Moo, Addison-Wesley, 5th Edition,
2012.
2. "Effective C++: 55 Specific Ways to Improve Your Programs and Designs" by Scott Meyers, Addison-
Wesley, 3rd Edition, 2005.
3. "C++ How to Program" by Paul Deitel and Harvey Deitel, Pearson, 10th Edition, 2021.
4. "Data Structures and Algorithm Analysis in C++" by Mark A. Weiss, Pearson, 4th Edition, 2013.
5. "Accelerated C++: Practical Programming by Example" by Andrew Koenig and Barbara E. Moo,
Addison-Wesley, 2000.
Online Resources:
• https://www.cplusplus.com/doc/tutorial/
• https://www.udemy.com/course/beginning-c-plus-plus-programming/

You might also like