Site Map



    C/C++ Programs

  1. Consider a class Complex Class Complex { float real; float imaginary; Public: //methods; }; Overload operator ‘+’ to add two objects of that class use parameterized constructor for accepting values of complex numbers. .

  2. Design two base classes Personnel (name, address, email-id, birth date) and Academic (marks in tenth, marks in twelth, class obtained). Derive a class Bio-data from both these classes. Write a C++ program to prepare a bio-data of a student having Personnel and Academic information. .

  3. Consider a class Matrix Class Matrix { int a[3][3]; Public: //methods; }; Let m1 and m2 are two matrices. Find out m3=m1+m2 (use operator overloading). .

  4. Write class declarations and member function definitions for a C++ base class to represent an Employee (emp-code, name). Derive two classes as Fulltime (daily rate, number of days, salary) and Parttime (number of working hours, hourly rate, salary). Write a menu driven program to: 1. Accept the details of ‘n’ employees and calculate the salary. 2. Display the details of ‘n’ employees. 3. Search a given Employee. .

  5. Consider a class Matrix Class Matrix { int a[3][3]; Public: //methods; }; Overload the – (Unary) should negate the numbers stored in the object. .

  6. In a bank, different customers having saving account. Some customers may have taken a loan from the bank. So bank always maintains information about bank depositors and borrowers. Design a Base class Customer (name, phone-number).Derive a class Depositor(accno, balance) from Customer. Again derive a class Borrower (loan-no, loan-amt) from Depositor. Write necessary member functions to read and display the details of ‘n’ customers. .

  7. Consider a class Matrix Class Matrix { int a[3][3]; Public: //methods; }; Let m1 and m2 are two matrices. Find out m3=m1*m2(use operator overloading). .

  8. Create a base class Roundshape(radius). Derive three different shapes as Circle, Sphere and cylinder(height) from Roundshape. Class Roundshape { Protected : float radius; Public: static float Pi; Roundshape(float); //default argument virtual float area( )=0; }; Write a C++ program to calculate area of Circle, Sphere and cylinder. .

  9. Consider the following class hierarchy. Create a base class Employee(empcode, empname). Derive the classes Manager(designation, clubdues), Scientist(deptname, publications) and Labourer from Employee class. Write a C++ menu driven program 1. to accept the details of ‘n’ employees 2. to display the information 3. to display all the scientist from “Chemistry Department”. .

  10. Consider the following class Class String { char *ptr; int length ; public: //member function definitions. }; Overload the unary operator! For the string class as a member function so that its return “true”. If the string pointed as by ptr is empty, “false” otherwise write a main() to test this function. Write other necessary functions including constructor (s) and destructor(s). .

  11. Design a class which contain static data member and member function show() which displays number of times display operation is performed irrespective of the object responsible for display using static data member. .

  12. http://activeservices-as.blogspot.in/2012/06/create-class-string-which-contains.html

  13. Write a C++ program to find volume of cube, cylinder and rectangle using function overloading. .

  14. Write a C++ program using class with function replace (char* str, char c1, char c2) every occurrence of c1 in str should be replaced with c2 and return number of replacement it makes use default value for char c2 use class. .

  15. http://activeservices-as.blogspot.in/2012/06/create-class-time-which-contains-hours.html

  16. Create a class vector that contains series of n numbers. Perform the Pre-Increment and Post- Decrement operations on a vector object using operator overloading.(Use friend Function). .

  17. Create a class Array which contains - int *ptr - int n Write a menu driven program : - to Accept an array from user - to display it. - to add two arrays using operator overloading. - to subtract two arrays using operator overloading. .

  18. Write a menu driven C++ program using class to perform all arithmetic operation (+,-,*,/) (use inline function). .

  19. Write a C++ program to define function power to raise a number m to a power n the function takes a double value for m. and integer value for n and return the result correctly use a default value of 2 for n to make the function calculate squares when this argument is omitted. .

  20. . Consider the following class Person Class Person { char Name [20]; char Addr [30]; float Salary; int Property; //in sq. foot area float tax_amount; Public: // methods }; .

  21. Write a C++ program using class to overload the operator unary increment ++ for an integer number. .

  22. Create a C++ class for student having following members. - Rollno - Name - Number of subjects - Marks of each subject (Number of subjects varies for each student) Write a parameterized constructor which initializes rollno, name & Number of subjects and creates the array of marks dynamically. Display the details of all students with percentage and class obtained. .

  23. Write a C++ program using class to overload the operator unary decrement -- for an integer number. .

  24. Create a class FDAccount containing members as: - Fdno - Name - Amt - Interest rate - Maturity amt - Number of months Use parameterized constructor to set appropriate details, where interest rate should be default argument. Calculate maturity amt using interest rate and display all the details. .

  25. Create a class student containing data members: - Rollno - name -marks1, marks2, marks3 Write necessary member functions: 1. to accept details of all students 2. to display details of one student 3. to display details of all students (Use Function overloading). .

  26. Consider the following class mystring Class mystring { char str [100]; Public: // methods }; Overload operator + to concatenate two strings such as string1+string2=string3. .

  27. Create a class time that contains hours, minute and seconds as data members. Write the member functions: 1. to add two object of type time, passed as arguments . 2. to convert a time into total number of seconds. 3. to display the time into format like: 29-11-2009. .

  28. Consider following class Numbers Class Numbers { int x,y,z; public: // methods }; Overload the operator unary minus- to negate the numbers. .

  29. Imagine a tollbooth at a bridge. A Car passing by the booth is expected to pay a toll. The tollbooth keeps the track of the number of cars that gone by and the total amount of cash collected. Create a class tollbooth with the data members as:- -total number of cars passed. -total toll collected. Write necessary member functions: 1. a constructors that initializes both data members to zero. 2. paying car(): when any car passes through the tollbooth, that much toll gets added

  30. Consider the following class mystring Class mystring { char str [100]; Public: // methods }; overload operator “= =” to compare two strings. .

  31. Write a C++ program using class to check maximum of two integer numbers using Inline function and conditional operator. .

  32. Create a class for inventory of books containing author, title, price, and publisher and stock as data members. Book can be sold, if stock is available, otherwise purchase will be made. Write necessary member functions for the following: 1. To accept details from user 2. To sale a book. (Sale contains book details & number of copies to be sold.) 3. To Purchase a book. (Purchase contains book details & number of copies to be purchased) (Use new operator to allocate memory). .

  33. Write a C++ program using class to overload following binary operators (+,-,*,/). .

  34. An electricity board charges the following rates to users - For first 100 units : 40p per unit - For next 200 units : 50p per unit - Beyond 300 units : 60p per unit All users are charged a minimum of Rs.150. If the total cost is more than Rs.250.00 then an additional charges of 15% are added. Write a C++ program using class to read the name of users & number of units consumed & print out the charges with names.(Use Array of Objects) .

  35. Define a class for 3 dimensional points necessary member functions for accepting and the point object Overload the following operators: Operator Example Purpose * (Binary) p3=p1*p2 multiplies coordinates of point p1 with p2. - (Binary) p3=p2-p1 subtracts coordinates of p1 from p2. .

  36. Define a class to represent a bank account which includes following members : Data members – 1) Name 2) Account number 3) Type of account 4) Bal. amt Member functions – a. To assign initial value b. To deposit an account c. To withdraw an account d. To display name, account number & balance. .

  37. Create a base class Student(Roll No, Name) which derives two classes Test (Mark1, Mark2) and Sport(Score). Result(total marks, grade) class inherits both Test and Sport classes. Write a C++ menu driven program to perform the following functions: - Build a master table - Calculate total of marks and grade - Display the details of all students in ascending order of marks. .

  38. Write a C++ program using class to calculate simple interest amount use default value for rate. .

  39. Create a class telephone containing name, telephone number & city as data members and write necessary member functions for the following: - Search the telephone number with given name. - Search the name with given telephone number. - Search all customers in a given city. (Use function overloading) .

  40. Write a C++ program using class to calculate square and cube of given number using inline function. .

  41. Create a class phone having data members: 1. The STD code 2. The Exchange code 3. Phone Number Ex :- 212-766-8901 Write a C++ program to accept details from user (max 10) and change input phone number to new phone number using following criteria: a) Add 1 to 1st digit of STD code. (If digit is 9 it becomes 10) b) The exchange code is retained as it is. c) In 3rd part of structure, 1st two digits should be reversed. Ex: I/P : 212-766-890 => O/P : 312-766-980 Display all changed phone numbers. |A

  42. Define a class for a 3 dimensional points. Write necessary member functions for accepting & displaying the point object. Overload the following operators: Operator Example Purpose + (Binary) p3=p1+p2 adds coordinates of point p1 to p2. - (Unary) -p1 Negates coordinates of point p1. .

  43. Write a necessary class to calculate variance & standard deviation of n numbers. Variance = 1/N ∑ (Xi-A.M.)2 for all i = 1 to N S.D. = √variance Where A.M. = 1/N ∑ Xi for all i = 1 to N .

  44. Consider the mystring class Class mystring { char str [100]; int length; Public: // methods }; Overloading the method called “check” for the class to perform the following operations. i) Check if a specific character is present in str. Returns position if found, -1 if not. ii) Compares the length of two mystring objects and returns 1

  45. Write a necessary class & member function definition for a cricket player object. (Use array of objects) The program should accept the details from user (max 10): Player code, name, runs, innings- played and number of times not out. The program should contain following menu: - Enter details of players. - Display average runs of a single player. - Display average runs of all players. (Use function overloading) .

  46. Write a C++ program using class with data member’s int feet, float inches to represent distance and define function that takes two distance values as arguments and returns the larger one. Include a main program that accepts two distance figures from the user compare them and displays the larger using Inline function. .

  47. Hello to the World .

  48. Write a menu driven program in JAVA for the implementation of Scrollable ResultSet. The menus are- - Move to the next Record. - Move to the first Record. - Move to the Previous Record - Move to the last Record. .

  49. http://activeservices-as.blogspot.in/2012/07/create-class-distance-containing-feet.html

  50. Write a menu driven C++ program using class to calculate Area and Volume of rectangle using inline function. .

  51. Create a class MyFile containing: - FILE *fp; - Char fn[maxsize]; Write necessary member Functions using operator overloading: 1. + F3=F1+F2 Put contents of F1 and F2 in F3. 2. - -F3 Changes the case of all upper and lower case characters in F3. .

  52. Consider the following Class mystring { char str [100]; Public: // methods }; Overload operator “!” to reverse the case of each alphabet in the string. .

  53. Create a class currency containing rupees and paise as data members. Write necessary member functions using operator overloading for the following: 1. currency (long int rup=0,int paise=0) 2. currency & operator += (currency &) (to add one currency to another) 3. currency & operator - = (currency &) (to subtract one currency from another) Accept Rupee & paise from user and display it. .

  54. Create a C++ class for a student object with the following attributes—roll no, name, number of subjects , marks of subjects. The number of subjects varies for each student. Write a parameterized constructor which initializes roll number, name and number of subject and creates the array for marks dynamically, write member function for accepting marks and display all information of student. .

  55. Write a C++ program to find area of triangle, circle, and rectangle using function overloading. .

  56. Consider a class point containing x and y coordinates. Write necessary functions for the following cases: 1. to accept a point 2. to display it 3. to find distance between two points using operator overloading (-) (Use friend function) .

  57. Write a program to read the contents from the file “sample.txt”. Store all the characters from “sample.txt” into the file “character.txt” & store all digits into the file “digit.txt .

  58. Write a C++ program which will find the maximum of 3 integer numbers and maximum of 3 float numbers using function overloading. .

  59. Create a class Student having data members: - RollNo - Name - Marks Write necessary member functions : 1. to accept the details and store it into the file “school.dat” 2. to read the details from file and display it. 3. to update a given record into the file. .

  60. Create a class Medicalshopee containing - medicine - qty - price Medicine details are stored into the file “medical.txt” .When any medicine has to be sold, it is first searched into the file, if found, the qty is decremented by that much qty to be sold. .

  61. Write a c++ program to read a text file and count number of vowels. .

  62. System Programming Example

  63. Write a simulation program for disk scheduling using LOOK algorithm. Accept total number of disk blocks, disk request string, direction of head moment and current head position from the user. Display the list of request in the order in which it is served. Also display the total number of head moments. .

  64. Write a simulation program for disk scheduling using SCAN algorithm.Accept total number of disk blocks, disk request string, direction of head moment and current head position from the user. Display the list of request in the order in which it is served. Also display the total number of head moments. .

  65. Write the simulation program for demand paging and show the page scheduling and total number of page faults according to SECOND CHANCE page replacement algorithm. Assume the memory of ‘n’ frames. .

  66. Write the simulation program for demand paging and show the page scheduling and total number of page faults according to LRU page replacement algorithm. Assume the memory of ‘n’ frames .

  67. Write the simulation program for demand paging and show the page scheduling and total number of page faults according to MFU page replacement algorithm. Assume the memory of ‘n’ frames. .

  68. Write the simulation program for demand paging and show the page scheduling and total number of page faults according to FIFO page replacement algorithm. Assume memory of ‘n’ frames. .

  69. http://activeservices-as.blogspot.in/2012/06/write-program-to-implement-following_8476.html

  70. http://activeservices-as.blogspot.in/2012/06/write-program-to-implement-following_13.html

  71. http://activeservices-as.blogspot.in/2012/06/write-program-to-implement-following_4526.html

  72. Write a program to implement following UNIX commands (any two options) 1) grep –c pattern filename Displays count of no. of occurrences for a given pattern 2) grep –n pattern filename Displays line no. along with the line 3) grep –v pattern filename Does not display lines for matching pattern .

  73. Shortest Job First (Non Pre-emptive) .

  74. Shortest Job First (Pre-emptive) .

  75. Round Robin .

  76. NON-Preemptive Priority .

  77. Bankers Algorithm .

  78. First Come First Serve .

  79. Java Programs

  80. Write a java program to read n integers into LinkedList collection Do the following operations i) Display only negative integers ii) Delete the last element .

  81. Write a JAVA program to accept names of n students and insert into LinkedLlist i) Display the contents of list using Iterator. ii) Display the content in reverse order. (using ListIterator) .

  82. Write a JAVA program to accept the rno of student as a command line argument and display the record of student (rno, sname, per)on the screen. .

  83. : Write a java program to display the record of Student (rno,sname,per) on the screen by selecting rno from the choice component. .

  84. Write a java program to accept the details of Employee (Eno,EName,Sal) from the user and insert it into the Database.(use Awt). .

  85. Display 10 terms of Fibonacci Series. .

  86. Write a java program that insert the details of Actor (ano, aname, movie) into the database & display the result in uppercase on the screen. .

  87. Write a menu driven program in java to display the records of Doctor (Dno,Dname,sal) from the database & display it on the screen (use JTable). .

  88. Write a java program which will create two child threads by implementing runnable interface one thread will print even nos. from 1 to 50 and other display vowels. .

  89. Display 1 to 20 in Reverse Order. .

  90. Write a JAVA program to accept the details of student (Rno , SName , Per) from the user and insert it into the table. (use PreparedStatement Class). .

  91. Write a java program to design a screen with two buttons start thread and stop thread. .

  92. Write a JAVA program to read n strings & insert into ArrayList collection. Display the elements of collection in reverse order. .

  93. All-in-One Bluestacks Solutions

  94. Universal Bluestacks Rooting Software .

  95. BlueStacks App Player's .

  96. Uninstall Bluestacks .

  97. Sharing files to bluestacks from your computer .

  98. Install Bluestacks on 1GB RAM machine .

  99. Backup your apps and data using Go backup pro .

  100. Extra Information

  101. Windows Phone 8.1 show Virtual Assistant CORTANA .

  102. What happen of Data in Cloud if it is Raining?? .

  103. Ubuntu 13.04 (Raring Ringtail) Review .

  104. Online free Linux Terminals .

  105. Setup Apache Tomcat Server to RUN JSP program. .

  106. Free VPN For Unlimited Surfing and Downloading .