SYBCA-IV >> c++ - 30 Marks

1) Create class Person which contains data member as Passport_Id, Person_name, Nationality, Gender, Date_of_Birth, Date_of_Issue, Date_of_expiry . Write a c++ program to perform following member functions: Enter details of all persons Display passport details of one person Display passport details of all persons (Use Function overloading and Array of object).


2) Create a class ComplexNumber containing members as: - real - imaginary Write a C++ program to calculate and display the sum of two complex numbers. (Use friend function and return by object)


3)Create a base class Student(Roll_No, Name) which derives two classes Academic_Marks(Mark1, Mark2, Mark3) and Extra_Activities_Marks(Marks). Class Result(Total_Marks, Grade) inherits both Academic_Marks and Extra_Activities_Marks classes. (Use Virtual Base Class) Write a C++ menu driven program to perform the following functions: i. Build a master table ii. Calculate Total_marks and grade


4) Create a base class Account (Acc_Holder_Name, Acc_Holder_Contact_No). Derive a two classes as Saving_Account(S_Acc_No., Balance) and Current_Account( C_Acc_No., Balance) from Account. Write a C++ menu driven program to perform following functions : i. Accept the details for ‘n’ account holders. ii. Display the details of ‘n’ account holders by adding interest amount where interest rate for Saving account is 5% of balance and interest rate for Current account is 1.5% of balance.


5) Write C++ program to Create two classes Array1 and Array2 which contains data members as Integer array of a specified size. Write necessary member functions to accept and display array elements of both the classes. Find and display smallest number from both the array. (Use Friend function and Memory Management operators) .


6) Create a class Time which contains data members as: Hours, Minutes and Seconds. Write C++ program to perform following necessary member functions:
i. To read time ii. To display time in format like: hh:mm:ss iii. To add two different times (Use Objects as argument) .


7) Create a Base class Train containing protected data members as Train_no, Train_Name. Derive a class Route (Route_id, Source, Destination) from Train class. Also derive a class Reservation(Number_Of_Seats, Train_Class, Fare, Travel_Date) from Route. Write a C++ program to perform following necessary functions :
i. Enter details of ‘n’ reservations ii. Display details of all reservations iii. Display reservation details of a specified Train class.


8) Create a class Date containing members as: dd mm yyyy Write a C++ program for overloading operators >> and << to accept and display a Date also write a member function to validate a date.


9) Create two base classes Learning_Info( Roll_No, Stud_Name, Class, Percentage) and Earning_Info(No_of_hours_worked, Charges_per_hour). Derive a class Earn_Learn_info from above two classes. Write necessary member functions to accept and display Student information. Calculate total money earned by the student. (Use constructor in derived class)


10) Create a Vector class to represent a series of integer values. Allocate memory for Vector object using new operator. Write a C++ menu driven program with following member functions:
i. To accept a vector ii. To display a vector in the form (10,20,30,…) iii. To multiply by a scalar value iv. To modify the value of a given position from vector.


11) Create a class College containing data members as College_Id, College_Name, Establishment_year, University_Name. Write a C++ program with following member functions:
i. To accept ‘n’ College details ii. To display College details of a specified University iii. To display College details according to a specified establishment year (Use Array of Object and Function overloading) .


12)Create a class MyString which contains a character pointer (using new operator). Write a C++ program to overload following operators:
> to compare length of two strings != to check equality of two strings + to concatenate two strings .


13)Create a class Matrix and Write a C++ program with following functions:
i. To accept a Matrix ii. To display a Matrix iii. Overload unary minus ‘–‘ operator to calculate transpose of a Matrix iv. Overload binary multiplication '*’ operator to calculate multiplication of two matrices .


14)Create a base class Shape. Derive three different classes Circle, Rectangle and Triangle from Shape class. Write a C++ program to calculate area of Circle, Rectangle and Triangle. (Use pure virtual function).


15)Create a base class Student(Roll_No, Name, Class) which derives two classes Internal_Marks(IntM1, IntM2, IntM3, IntM4, IntM5) and External_Marks(ExtM1 ExtM2, ExtM3, ExtM4, ExtM5). Class Result(T1, T2, T3, T4, T5) inherits both Internal_Marks and External_Marks classes. (Use Virtual Base Class) Write a C++ menu driven program to perform the following functions:
i. To Accept and display student details ii. Calculate Subject wise total marks obtained. Check whether student has passed in Internal and External Exam of each subject. Also check whether he has passed in respective subject or not and display result accordingly.


16)Define a class Product that contains data member as Prod_no, Prod_Name, Prod_Price. Derive a class Discount(discount_in_Percentage) from class Product. A Customer buys ‘n’ products. Accept quantity for each product , calculate Total Discount and accordingly generate Bill. Display the bill using appropriate Manipulators.


17)Create a class Distance which contains data members as: kilometer, meter. Write C++ program to perform following functions:
i. To accept a distance ii. To display a distance iii. To overload += operator to add two distances. iv. To overload > operator to compare two distances


18) Write a C++ program to read the contents of a text file. Count and display number of characters, words and lines from a file. Find the number of occurrences of a given word present in a file.


19) Write a C++ program to read the contents of a “Sample.txt” file. Store all the uppercase characters in ”Upper.txt”, lowercase characters in ”Lower.txt” and digits in “Digit.txt” files. Change the case of each character from “Sample.txt” and store it in “Convert.txt” file.


20)Write a C++ program to create a class Department which contains data members as Dept_Id, Dept_Name, H.O.D., Number_Of_staff. Write necessary member functions to
i. Accept details from user for ‘n’ departments and write it in a file “Dept.txt”. ii. Display details of department from a file. iii. Count the number of objects stored in a file.


21)Imagine a ticket Selling booth at a fair. People passing by are requested to purchase a ticket. A ticket is priced as Rs. 5/- . The ticketbooth keeps the track of the number of peoples that have visited the booth and of the total amount of cash collected. Create a class ticketbooth that contains No_of_people_visited, Total_Amount_collected. Write C++ program to perform following functions:
i. To assign initial values. ii. To increment the No_of_people_visited if visitors have just visited the booth. iii. To increment the No_of_people_visited and Total_amount_collected if tickets have been purchased. iv. To display both totals


22) Create a base class Conversion. Derive three different classes Weight (Gram, Kilogram), Volume(Milliliter, Liter), Currency(Rupees, Paise) from Conversion class. Write a C++ program to perform read, convert and display operations. (Use Pure virtual function)


23) Create a C++ class MyFile containing: - FILE *fp; - Char filename[maxsize]; Write necessary member Functions using operator overloading:
<< To display the contents of a file >> To write the contents into a file.


24)Write a C++ program to create two classes Class1 and Class2. Each class contains one float data member. Write following functions: i. To accept float numbers ii. To display float numbers in right justified format with precision of two digits iii. To Exchange the private values of both these classes by using Friend function.


25) Create a class Person that contains data members as Person_Name, City, Mob_No. Write a C++ program to perform following functions: i. To accept and display Person information ii. To search the mobile number of a given person iii. To search the Person details of a given mobile number (Use Function Overloading).


26) Write a C++ program which will accept ‘n’ integers from user through command line argument. Store Prime numbers in file “Prime.txt” and remaining numbers in “Others.txt”.


27)Create a class MyString which contains a character pointer (Use new and delete operator). Write a C++ program to overload following operators: ! To change the case of each alphabet from given string [ ] To print a character present at specified index.


28) Create a base class Media. Derive two different classes Book (Book_id, Book_name, Publication, Author, Book_price) and CD (CD_title, CD_price) from Media. Write a C++ program to accept and display information of both Book and CD. (Use pure virtual function).


29)Create a class for inventory of Mobile containing Model_Number, Company_Name, Price, Stock as data members. Mobile can be sold, if stock is available, otherwise purchase will be made. Write a C++ program to perform following functions :
i. To accept and display mobile details ii. To sale a Mobile (Sale contains Model_Number & Quantity of mobile) iii. To Purchase a Mobile (Purchase contains Model_Numbet & Quantity of mobile).


30)Create a class Fraction containing data members as Numerator and Denominator. Write a C++ program to overload operators ++ , -- and * to increment , decrement a Fraction and multiply two Fraction respectively. (Use constructor to initialize values of an object).


Search

Project Categories

Recent Posts

Mail Management System
Posted on 2019-07-18
Online food ordering system
Posted on 2019-07-18
Library Management System
Posted on 2019-07-17
Health center system project
Posted on 2019-07-17
Gym Management System
Posted on 2019-07-17
furniture management system
Posted on 2019-07-17
Electronic shop management system
Posted on 2019-07-17
Automobile Workshop Management
Posted on 2019-07-17
Online Visa Processing System
Posted on 2019-07-17
Inventory management System
Posted on 2019-07-17
petrol-management system
Posted on 2019-07-17
Cloths management system
Posted on 2019-07-17
Society Management system
Posted on 2019-07-17
Mall management system
Posted on 2019-07-17
school management system
Posted on 2019-07-17
Sales Order Processing System
Posted on 2019-07-17
Retail sales management
Posted on 2019-07-17
Raw Materials Management
Posted on 2019-07-17
railway reservation system
Posted on 2019-07-17
purchase and sales management system
Posted on 2019-07-17
Placement Management System
Posted on 2019-07-17
Pet Shop Management System
Posted on 2019-07-17
petrol pump management system
Posted on 2019-07-17
Patient Information System
Posted on 2019-07-17
news agency system
Posted on 2019-07-17
Cinema Booking System
Posted on 2019-07-17
Medical Store System
Posted on 2019-07-17
leave management System
Posted on 2019-07-17
Laboratory Information Management System
Posted on 2019-07-17
content management system
Posted on 2019-07-17
Inventory management System
Posted on 2019-07-17
Institute Management System
Posted on 2019-07-17
Hotel management System
Posted on 2019-07-17
Gym Management System
Posted on 2019-07-17
Garage Management System
Posted on 2019-07-17
Furniture shop management system
Posted on 2019-07-17
Fisheries management  System
Posted on 2019-07-17
Fertilizer scheduling system
Posted on 2019-07-17
online eye care system
Posted on 2019-07-17
Dental Clinic Management System
Posted on 2019-07-17
Cyber Café Management
Posted on 2019-07-17
Milk Billing System
Posted on 2019-07-17
Colddrink management system
Posted on 2019-07-17
Cable management System
Posted on 2019-07-17
Beauty parlor management system
Posted on 2019-07-17
Facebook Clone
Posted on 2019-05-28
Dance Class Management System
Posted on 2019-05-24
Library Management System
Posted on 2019-05-24
Cab Management System
Posted on 2019-05-23
Blood Bank Management system
Posted on 2019-05-23
Beauty Parlour Management System
Posted on 2019-05-23
vissa proccesing system
Posted on 2019-05-23
Toll Plazza
Posted on 2019-05-23
BILLING APPLICATION
Posted on 2019-05-23
FLORICULTURE MANAGEMENT SYSTEM
Posted on 2019-05-23
Car On Rent
Posted on 2019-05-23
E-commers Shop
Posted on 2019-05-23

Sign In