Learning Ashram

MCA Practical Question Paper - Programming C++

  1.   Write a program to implement a Class Matrix that adds subtracts and
              initializes the matrix.     
  2. Write a program to implement an Account Class with member functions
    to Compute Interest,  Show Balance, Withdraw and Deposit amount
    from the Account.
  3. Write a C++ program to implement a matrix class with addition and
    subtraction as member functions.  Include a copy constructor.
  4. Write a C++ program implement a class 'Complex' of complex numbers.         
     The class should be include member functions to add and multiply two
      complex numbers.  Also ass a copy constructor.
  5. Write a program to implement flight class with data member as flight no.,
     source, destination and fare.  Write a copy constructor and a member
    function to display the flight information.
  6. Write a C++ program to implement a string object.  Include member
     functions to compare two strings and to concatenate two strings.
  7. Write a C++ program to implement a class to represent complex
     numbers.  Include member functions to add and multiply to complex
    numbers.  Overload assignment operator =
  8. Write a program to implement time class that has separate data members
    for hours, minutes and seconds.  Overload + Operator to add two times
    (object) and ++ operator to increment the time by one second.
  9. Write a C++ program to implement a student class having roll no.,
    name, rank, addresses as data members.  Overload assignment operator =
  10. Write a program to implement user defined string class.  Overload the
    constructor and a member function to concatenate two strings.
  11. Write a program implement Complex class with the member function Add,  
    Subtract and Multiply two complex Numbers.
  12. Write a Program to implement a sphere class with appropriate members and 
    member function to find the surface area and the volume. 
              (Surface = 4 π r2 and Volume = 4/ 3 π r3 )
  13. Write a program to implements a string class.  Overload + Operator to 
    concatenate two strings.
  14. Write  a C + + program to implement matrix class.  Add member function to
     transpose the matrix.
  15. Write a program to implement Bank-SB-Account Class with member functions to deposit, withdraw and show the balance.  assume appropriate data members.
  16. Write a program to find the number of characters, word and lines in the given text
    as input.
  17. Write a program to implement a telephone bill class with Name, Address, Tel. No., No. of calls as data members.  Compute the amount to be paid if the charges per call is Rs. 2/-.
  18. Write a C ++ program to implement a class for complex numbers with add and
     multiply as member functions.  Overload ++ operator to increment a complex 
    number.
  19. Write a C ++ program to implement a date class with member functions as next,
     previous which return next date and previous date objects.