C++ Lab

Paper Code: 
MCA 228
Credits: 
02
Periods/week: 
02
Max. Marks: 
100.00
Objective: 

 The course will enable the students to

  1. Define how C++ improves C with object-oriented features.
  2. Understand the syntax and semantics of the C++ programming language.
  3. Implement the concept of data abstraction and encapsulation and various concepts of object oriented programming.
  4. Evaluate the understanding of the concepts by applying them to problems in different domains.
  5. Analyze Java language components and how they work together in applications.
  6. Creating stand-alone Java applications.

 Course Learning Outcomes (CLOs):

 

Learning Outcome (at course level)

Students will be able to:

Learning and teaching strategies

Assessment Strategies

  1. Define the concepts of object oriented programming language.
  2. Understand the basic features of object oriented programming and apply them through C++ language.
  3. Implement the practical knowledge of various features of object oriented programming.
  4. Compare and contrast the object oriented &non object oriented approaches to obtain solutions.
  5. Evaluate the pros and cons of using oops and apply it to problems in different domains.
  6. Develop computer application based project using oops.

Approach in teaching:  Interactive Lectures, Tutorials, Demonstration,

Practical Quiz, Team teaching

 

Learning activities for the students:

Self-learning assignments, Effective questions, giving tasks, Field practical, Error Solving Quiz

  • Practical Exam
  • Practical Record
  • Viva Voce
  • Semester End Practical Exam

 

Assignments:

Programs on object oriented concepts would be administered in the Lab with each topic covered in the theory.

  1. An election is contested by five candidates. The candidates are numbered 1 to 5 & voting is done by marking the candidate number on the ballot paper. Write a program to read the ballot & count the votes cast for each candidate using an array, variable count. In case, a number read is outside the range 1 to 5, the ballot should be considered as a ' spoilt ballot' and the program should also count the number of spoilt ballot.
  2. Define a class to represent a bank account including the following members: - Data members

a) Name of the depositors

b) Account number

c) Type of account

d) Balance amount in the account Member function

- To assign initial values

- To deposit an amount

- To withdraw an amount after checking the balance

- To display the name and balance.

  1. Create 2 classes OM and DB which store the value of distance. DM store distances in meters and cm and DB in feet and inches. Write a program that can read values for the class objects and add 1 object OM with another object of DB. .

Use a friend function to carry out the addition operation the object that stores the results may be a DM object or a DB object, depending upon the units in which the results are require. The display should be in the format of feet and inches or meters and cms depending on the object on display.

  1. Create a base class called shape use this class to store two double type values that could be used to compute the area of fig. Derive the specific class called TRIANGLE and RECTANGLE from the data shape. Add to base class, a member function get - data ( ) to initialize base class data members and another member and another member function display – area ( ) to compute and display the area of the fig. Make display – area ( ) as a virtual function and redefine function in the derived classes to suit their requirements,

Using these 3 classes design a program that will accept dimension of RECTANGLE or TRIANGLE interactivity and display the area. Remember the 2 values given as input will be treated as length of 2 sides in the case of rectangle and as base and height in the case of triangles and used as follows:

Area of rectangle = x*y

                        Area of triangle = 1/2 *x*y

Project Work: This mini project is based on Object Oriented Programming using C++. Simple projects such as inventory Management System, Payroll System, Library management System, Job Scheduling, Hardware Interface, Network Monitoring System etc. can be created.

Project must be done in a group of 2-4 students.

  • Final Evaluation will be done by:
  1. Project Demonstration
  2. Power Point Presentation
  • The marks of the mini project would be given on the basis of internal assessment of the project as given in the course structure.

General instructions for preparation of project report

1.  Introduction

1.1 Cover Page

1.2 Title Page

1.3 Certificate

1.4 Acknowledgement

1.5 Table of Contents

2. Project Specifications

2.1 Project Overview

2.2 Project Need

3. Specific Requirements

3.1 External Interface Requirements

            3.2 Hardware Interfaces

            3.3 Software Interfaces

            3.4 Communications Protocols

            3.5 Security / Maintainability / Performance

4. Software Product Features

4.1 System Architecture

4.2 Database Requirements

            4.3 ER Diagram

            4.4 Data Flow Diagram

            4.5 User Interfaces

            4.6 Report Formats

5. Drawbacks and Limitations

6. Proposed Enhancements

7. Conclusion

8. Bibliography

9. Annexure:

            9.1 User Interface Screens (Optional)

            9.2 Output Reports with Data (if any)

            9.3 Program Code

Academic Year: