How Information Systems Impact Organizations and Business Firms

Only available on StudyMode
  • Download(s) : 518
  • Published : May 10, 2013
Open Document
Text Preview
LAB MANUAL

CS102 Object Oriented Programming using C++

DESCRIPTION OF SCHEDULE:
Week| Practical List|
Week 1| Revised Concept: 1. Write a C++ program to display "Hello Computer" on the screen. And then explain the working mechanism, and execution of the program. 2. Write a C++ program to display Your Name, Address and City in different lines 3. Write a C++ program to find the area of a circle using the formula: Area = PI * r2 4. Write a C++ program to find the area and volume of sphere. Formulas are: 5. Area = 4*PI*R*R Volume = 4/3*PI*R*R*R. 6. Write a C++ program to print the multiply value of two accepted numbers 7. Write a C++ program to convert centigrade into Fahrenheit. Formula: C= (F-32)/1.8. 8. Write a C++ program that declares 5 integers, determines and prints the largest and smallest in the group. 9. Write a C++ program that declares two integers, determines whether the first is a multiple of the second and print the result. [Hint: Use the remainder operator.] 10. Write a C++ program that declares two integers, determines whether the first is a multiple of the second and print the result. [Hint: Use the remainder operator.]| Week 2, 3| Classes & ObjectsSpecifying a class, creating class objects, accessing class members, access specifiers: public, private, and protected, classes, objects and memory, static members, the const keyword and classes, the static objects, empty classes, nested classes, local classes, abstract classesList of programs: 1. Write a program in C++ to display your name, Branch, Year on too the computer screen without using classes and object. All information should be displayed in the separate line. 2. Write a menu driven program in C++ to perform all basic arithmetic operation addition, subtraction, multiplication, and division of two given values. Program receives two values and required operation to be performed from the keyboard and display particular result of the required operation. 3. Write a menu driven program in C++ that receives 4 digit integer value the keyboard and perform following operations (a) Reverse of that no. (b) sum of number with it’s reverse (c). sum of alternative digits(1 digit+3 digit and 2 digit+4 digit) 4. Write a menu driven program in C++ to receive integer number and convert equivalent binary, octal, hexadecimal number. 5. Write a menu driven program in C++ to perform all basic arithmetic operation addition, subtraction, multiplication, and division of two given values using function and switch case. Program receives two values and required operation to be performed from the keyboard and display particular result of the required operation. 6. Write a program in C++ to display mark sheet. Of the student. Define a class that contains data members to store student information line name, Branch, semester, marks in 6 different subjects, etc. Declare some member functions to get these information from the key board, to calculate result and to display all gathered information on to the computer screen in proper format. 7. Define a class employee. Include the following members:Data Members: a. Name of the employeeb. Age of the employeeMember Functions:a. To get the name and age of the employeeb. To display the name and age of the employee. 8. Define a class BankAccount to represent a bank account. Include the Following members:Data Members:1. Name of the depositor2. Account Number3. Type of account4. Balance amount in the accountMember Functions:1. To assign initial value2. To deposit an amount3. To withdraw an amount after checking 11. Define a class employee having data members as emp_code, dept_code, age, basic, DA, HRA and three member functions as getdata(), putdata(), calculatesalary() to get, display all the values of data members and calculate the total salary by adding basic, DA, HRA. Write this program...
tracking img