SlideShare a Scribd company logo
1 of 9
Download to read offline
Computer Science (083)
                               Class-XII(2008-09)
                                 List of Programs

  1. Write a function to generate the following series using functions passing the
     required parameters:-
        a. 1+x1/1! + x2/2! + x3/3!.........xn/n!
        b. 1+x2/3!-x3/4!.........xn/n+1!
        c. 1-x2/3!+x3/4!.........xn-1/n!
STRUCTURES
  2. Write a program to accept the data of a student having the following
     structure:-
   Roll    Name                   Address               Father’s      Marks in 5
   No.                                                  Name          Subjects
           Last     First         Add1 Add2 Pin
           Name Name                               Code
     And Display the following menu:-
        o Merit List Generation: - should have the roll no., name, marks in 5
            subjects, total and average.
        o Grade card Generation: - should have roll no., name, total and grade.
            Criteria of grade are: -
                        Average              Grade
                          >=90                   A
                      <90 and >=75               B
                      <75 and >=60               C
                      <60 and >=40               D
                           <40                   F

                            ENUMERATED DATA TYPE
   3. Write a program to show different rainbow colors of corresponding to the
      entered code using enumerated data type.

                                       MACROS
   4. Write a program to define following macro and their implementation:
                 • Area of rectangle
                 • Area of square
                 • Area of triangle
                 • Constant Max = 100
                 CLASSES
   5. Write a program to accept an array and display the following menu: -
        o Insertion Sort.
        o Binary search
6. To accept 2 arrays and display the following menu: -
          o Merge 2-sorted arrays.
          o Even-Odd Sorting.
          o Negative-Positive Sorting.
   7. To accept a 2-D array and display the following menu: -
         o Row total.
         o Column total.
         o Lower Triangle 1 and 2.
         o Upper Triangle 1 and 2.
   8. Write program to accept a string and display the following menu with out using
      built-in functions: -
           o Palindrome or not.
           o Frequency Table.
           o Change case.
           o String Length.
   9. Write a program to store the record of an employee with the following details:
      -
   Private members:
   Data members
                             EmpNo       Integer
                              Name     Character
                            Address    Character
                            Pin code   Character
                         Basic Salary     Float
                           HRA Rate       Float
                            DA Rate       Float
                            PF Rate       Float
                              HRA         Float
                               DA         Float
                               PF         Float
                            GROSS         Float
                              NET         Float

   • Calculate()      to calculate HRA, DA, PF, GROSS and net salary
Public:
   • Retempno()       function to return empno
   • Retename()       function to return employee name
   • Readdata()       to accept employee no, name, address, pincode, Basic salary,
        HRA rate, DA rate and PF rate. Invoke function calculate to calculate HRA, DA,
        PF, GROSS and net salary
   • Displaydata() to display employee no, name, address, pincode, Basic salary,
        HRA, DA, PF, GROSS and net salary of the employee
Display the following menu :
               o Create. (To accept data of 5 employee)
               o Salary statement. To display payslip of 5 employee
               o Query on employee number. To accept empno and display relevant
                   data
               o Query on employee name. To accept employee name and display
                   relevant data.
   10. Write a program to declare a structure of a student with the following details:
       -
                        Structure student
                         Adm_No            Integer
                          Name            Character
                         Address          Character
                         Pin Code         Character
                           Class           Integer
                  Marks in 5 Subjects       Float
                           Total            Float
                         Average            float
                          Grade           character
      Create a class Marks
private
       • object of the above structure
       • calculate() to calculate total, average and grade
Public member
   • Readdata()         to accept Adm_No, Name, Address, Pin Code, Class and invoke
       calculate function
   • Displaydata() to display Adm_No, Name, Address, Pin Code, Class. Total,
       average and grade.

Display the following menu for atleast 5 students (use functions): -
             o Create. To accept data of 5 student
            o Report card to display report card of one student
            o Name list to display data sorted on name
            o Merit List. To generate merit list
CONSTRUCTOR
   11. Write a program to accept the number and compute the factorial.
   12. Write a program to generate Tribonacci series.



                                        POINTERS
   13. Write a program to swap 2 given numbers.
   14. Write a program to create, and display the elements of an integer array.
15. Declare a structure
    struct telephone
    {
       char tno[9];
       char name[10];
    };
     Write the program to do the following :
    • Create an array with 5 elements of telephone type and initialize it with
       telephone nos. and names of your 5 friends.
    • Create a pointer to telephone array
    • Display the telephone details of your 5 friends using pointer.

16. Try the following program illustrating the use of this pointer
    class one
    {     char name[10];
         public:
           one (char * s) // constructor function
            {
               strcpy(name, s);
             }
             one compare(one s)
             {
                 if (strcmp(name,s.name) ==0)
                    return this;
                else
                     return s;
               }
           void display( )
            {
                 cout <<”current calling object is : “<< name;
                 cout << “nPress any key to continue……”;
                 getch( );
             }
      };
int main( )
{
   one obj1(“Obj1”), obj2(“Obj2”), obj3(“Obj1”);
   obj2.display( );
   obj3.display( );
   one *p=obj1.compare(obj2);
   p->display();
   p=obj1.compare(obj3);
   p->display();
}




                                     INHERITANCE
17 Consider the classes:
class person{
   private:
       char name[20];
   protected:
             int age;
    public:
       void readdata();
       void displdata();

};
class employee:public person
{
              char department[20];
       protected:
              float salary;
       public:
              void read();
              void write();
              float retsal { return salary;}
              int retage(){ return age;}
              int retdep(char *d)
              { if (strcmp(d,department) == 0)
                      return 1;
                 else
                      return 0;}
};

Complete the above classes and write main function having 5 employees and display a
menu:
                     1. Create
                     2. Search on the basis of age
                     3. Search on the basis of department
                     4. Search on the basis of salary

                                 FILE HANDLING
   17. Write a program to accept a text file name and display: -
                  Number of characters
 Frequency Table
                       o No of Uppercase character
                       o No of Vowels
                       o No of Digits
                       o No of Words
                 Number of lines
   18. Write a program to accept the text file name and display the following menu: -

          Find and replace a character
          Replace lowercase character with uppercase character
   19. Write a program to accept a source file and target file and display the
       following menu: -
           Copy contents source to target
           Change case of source to target
           Replace many spaces to one space
           Change contents like “AASTHA” to “aaSTHa”

   20. Consider the following class
   class STUD
   {
       int Rno;
       char Name[20];
      public:
       void Enter(){cin>>Rno;gets(Name);}
       void Display(){cout<<Rno<<Name<<endl;}
    };
       Write the program which displays the following menu and allows following file
operations assuming the binary file is containing the objects of the above mentioned
class: -
       • Create
       • Add
       • Delete (Using Two files)
           (Use remove( ) and rename( ) functions)
       • Display
NOTE : Define separate functions for above mentioned operations

   21. Write a program to create an employee class having the following data
       members: -

Private
   Emp_no              Integer
   Name                Character
   Address             Character
Pin Code              Character
  Basic                 Float
  HRA                   Float
  DA                    Float
  PF                    Float
Public
  Readata()             To accept the data
  Retempno()            Function to return employee no.
  Showdata()            To show the data

   And display the following menu: -
      Create
      Add
      Modify (Using one file)
      Search
      Display

NOTE : Define separate functions for above mentioned operations



                                   STACKS and QUEUE
   22.Write a program to perform various stack operations like push(), pop(), display()
      on a STATIC stack.
   23.Write a program to perform various queue operations like insert(), delete(),
      display() on a circular queue array.
   24.Write a program to perform various stack operations like push(), pop(), display()
      on a linked stack having following node structure: -
                               Roll_n    Integer
                               o
                               Age       Integer
                                                        25.Write a program to perform
      various queue operations like insert(), delete(), display() on a linked queue having
      1 integer and 1 floating type data.
                       Struct Node
                       {
                              int x;
                              float y;
                              Node *link;
                       };
   26.Write a program to perform reverse a line-using stack having string to store
      each word.
STRUCTURE QUERY LANGUAGE

   27.Create employee tables having the following: -

Empno                                  Number (4)
Deptno                                 Number (2)
Empname                                Character (20)
Job                                    Character (10)
Manager                                Number (4)
Hire Date                              Date
Salary                                 Number (7,2)
Commission                             Number (7,2)

Query Statements based on that: -
   Create a table
   Insert 5 records
   Display the names of employee whose name starts with “P” or “R”.
   Display information of employee getting between Rs. 2000 and 8000.
   Display information on the basis of dept_no.

   28. Write the outputs of SQL commands given in (h) with the help of the table
       shown.
EmpNo      Name        Job        Mgr       Hiredate Sal            Deptno
Integer    Character Character Float        Date         Float      Integer

       To select all the information of employee of Dept number 20
       Find all employees who are either Clerks or who are earning between 1000
        and 2000.
       To list names of all employees in ascending order of their salary.
       To display employee’s name, Salary, Deptno for only managers.
       To count the number of employees with salary <3000.
       To insert a new row in the Employee table with the following data: 11,
        “MILLER”, “Manager”, 7698, {25/02/98}, 4300, 20.
       Give the output of the following SQL statements: -
                       o Select COUNT(*) from EMPLOYEE.
                       o Select MIN(Salary) from EMPLOYEE where deptno=20
                       o Select SUM(Salary) from EMPLOYEE where
                           department=”Clerk”.
                       o Select AVG(Salary) from EMPLOYEE.
       Consider a table Department having fields as
           Deptno              Deptname
           Integer             Character
o Display name of employees along with their department having deptno
              as 10 or 20.
            o Display total salary of each department.
            o Display total salary of each department whose employee name starts
              with N or P.
            o Display total salary of each department whose total salary > 20000.

   29.Write the SQL command for (a) to (f) on the basis of the table given below
      (DIRECTORY).
                                     DIRECTORY
No.           Fname            Lname          Phone            Address
Integer       Character        Character      Float            Character
       To select all the information of employee of Rohini area.
       Update the database set the phone no. as 7047645 where phone number is
         7057456.
       To create a view called Dir with the following fields-> Fname, Phone and
         Address.
       To display the data for Arpit, Rahul and Kisan.
       To delete the rows where the address is Rohini.
       To delete the table physically.

More Related Content

What's hot

Employee Management System
Employee Management SystemEmployee Management System
Employee Management SystemBhavya Chawla
 
Inheritance in java
Inheritance in javaInheritance in java
Inheritance in javaRahulAnanda1
 
Student management system project report c++
Student management system project report c++Student management system project report c++
Student management system project report c++Student
 
Java Introduction
Java IntroductionJava Introduction
Java Introductionjaveed_mhd
 
student application form Java Netbeans
student application form Java Netbeansstudent application form Java Netbeans
student application form Java Netbeansreshmajohney
 
SRS Of Social Networking
SRS Of Social NetworkingSRS Of Social Networking
SRS Of Social Networkingmaaano786
 
Std 12 Computer Chapter 7 Java Basics (Part 1)
Std 12 Computer Chapter 7 Java Basics (Part 1)Std 12 Computer Chapter 7 Java Basics (Part 1)
Std 12 Computer Chapter 7 Java Basics (Part 1)Nuzhat Memon
 
Std 12 Computer Chapter 9 Working with Array and String in Java important MCQs
Std 12 Computer Chapter 9 Working with Array and String in Java important MCQsStd 12 Computer Chapter 9 Working with Array and String in Java important MCQs
Std 12 Computer Chapter 9 Working with Array and String in Java important MCQsNuzhat Memon
 
Polymorphism In Java
Polymorphism In JavaPolymorphism In Java
Polymorphism In JavaSpotle.ai
 
Angular Advanced Routing
Angular Advanced RoutingAngular Advanced Routing
Angular Advanced RoutingLaurent Duveau
 
Practical file on web technology(html)
Practical file on web technology(html)Practical file on web technology(html)
Practical file on web technology(html)RAJWANT KAUR
 
Java servlets
Java servletsJava servlets
Java servletslopjuan
 
JDBC: java DataBase connectivity
JDBC: java DataBase connectivityJDBC: java DataBase connectivity
JDBC: java DataBase connectivityTanmoy Barman
 
Presentation on a website of Department of computer science and engineering
Presentation on a website of Department of computer science and engineeringPresentation on a website of Department of computer science and engineering
Presentation on a website of Department of computer science and engineeringS.M. Murad Hasan Tanvir
 
Web technology practical list
Web technology practical listWeb technology practical list
Web technology practical listdesaipratu10
 
A c program of Phonebook application
A c program of Phonebook applicationA c program of Phonebook application
A c program of Phonebook applicationsvrohith 9
 

What's hot (20)

Employee Management System
Employee Management SystemEmployee Management System
Employee Management System
 
Inheritance in java
Inheritance in javaInheritance in java
Inheritance in java
 
Student management system project report c++
Student management system project report c++Student management system project report c++
Student management system project report c++
 
Java Introduction
Java IntroductionJava Introduction
Java Introduction
 
Java swing
Java swingJava swing
Java swing
 
student application form Java Netbeans
student application form Java Netbeansstudent application form Java Netbeans
student application form Java Netbeans
 
SRS Of Social Networking
SRS Of Social NetworkingSRS Of Social Networking
SRS Of Social Networking
 
Std 12 Computer Chapter 7 Java Basics (Part 1)
Std 12 Computer Chapter 7 Java Basics (Part 1)Std 12 Computer Chapter 7 Java Basics (Part 1)
Std 12 Computer Chapter 7 Java Basics (Part 1)
 
Std 12 Computer Chapter 9 Working with Array and String in Java important MCQs
Std 12 Computer Chapter 9 Working with Array and String in Java important MCQsStd 12 Computer Chapter 9 Working with Array and String in Java important MCQs
Std 12 Computer Chapter 9 Working with Array and String in Java important MCQs
 
Bug Tracking System
Bug Tracking SystemBug Tracking System
Bug Tracking System
 
Polymorphism In Java
Polymorphism In JavaPolymorphism In Java
Polymorphism In Java
 
Angular Advanced Routing
Angular Advanced RoutingAngular Advanced Routing
Angular Advanced Routing
 
Practical file on web technology(html)
Practical file on web technology(html)Practical file on web technology(html)
Practical file on web technology(html)
 
Java servlets
Java servletsJava servlets
Java servlets
 
JDBC: java DataBase connectivity
JDBC: java DataBase connectivityJDBC: java DataBase connectivity
JDBC: java DataBase connectivity
 
Testing web application
Testing web applicationTesting web application
Testing web application
 
Presentation on a website of Department of computer science and engineering
Presentation on a website of Department of computer science and engineeringPresentation on a website of Department of computer science and engineering
Presentation on a website of Department of computer science and engineering
 
File in C language
File in C languageFile in C language
File in C language
 
Web technology practical list
Web technology practical listWeb technology practical list
Web technology practical list
 
A c program of Phonebook application
A c program of Phonebook applicationA c program of Phonebook application
A c program of Phonebook application
 

Viewers also liked

Number system
Number systemNumber system
Number systemaviban
 
CBSE, Grade12, Computer Science, Random Numbers - Notes
CBSE, Grade12, Computer Science, Random Numbers - NotesCBSE, Grade12, Computer Science, Random Numbers - Notes
CBSE, Grade12, Computer Science, Random Numbers - NotesMalathi Senthil
 
Python for class 11 (CBSE Computer science sub code 083)
Python for class 11 (CBSE Computer science sub code 083)Python for class 11 (CBSE Computer science sub code 083)
Python for class 11 (CBSE Computer science sub code 083)Nitin Kumar
 
CBSE XII COMPUTER SCIENCE STUDY MATERIAL BY KVS
CBSE XII COMPUTER SCIENCE STUDY MATERIAL BY KVSCBSE XII COMPUTER SCIENCE STUDY MATERIAL BY KVS
CBSE XII COMPUTER SCIENCE STUDY MATERIAL BY KVSGautham Rajesh
 
+2 Computer Science - Volume II Notes
+2 Computer Science - Volume II Notes+2 Computer Science - Volume II Notes
+2 Computer Science - Volume II NotesAndrew Raj
 
C++ Notes by Hisham Ahmed Rizvi for Class 12th Board Exams
C++ Notes by Hisham Ahmed Rizvi for Class 12th Board ExamsC++ Notes by Hisham Ahmed Rizvi for Class 12th Board Exams
C++ Notes by Hisham Ahmed Rizvi for Class 12th Board Examshishamrizvi
 
12th CBSE Practical File
12th CBSE Practical File12th CBSE Practical File
12th CBSE Practical FileAshwin Francis
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebraGagan Deep
 
CBSE XII Communication And Network Concepts
CBSE XII Communication And Network ConceptsCBSE XII Communication And Network Concepts
CBSE XII Communication And Network ConceptsGuru Ji
 
Computer Science Investigatory Project Class 12
Computer Science Investigatory Project Class 12Computer Science Investigatory Project Class 12
Computer Science Investigatory Project Class 12Self-employed
 
CBSE XII Boolean Algebra
CBSE XII Boolean AlgebraCBSE XII Boolean Algebra
CBSE XII Boolean AlgebraGuru Ji
 
Digital logic circuits important question and answers for 5 units
Digital logic circuits important question and answers for 5 unitsDigital logic circuits important question and answers for 5 units
Digital logic circuits important question and answers for 5 unitsLekashri Subramanian
 

Viewers also liked (14)

Number system
Number systemNumber system
Number system
 
CBSE, Grade12, Computer Science, Random Numbers - Notes
CBSE, Grade12, Computer Science, Random Numbers - NotesCBSE, Grade12, Computer Science, Random Numbers - Notes
CBSE, Grade12, Computer Science, Random Numbers - Notes
 
Boolean expressions
Boolean expressionsBoolean expressions
Boolean expressions
 
Python for class 11 (CBSE Computer science sub code 083)
Python for class 11 (CBSE Computer science sub code 083)Python for class 11 (CBSE Computer science sub code 083)
Python for class 11 (CBSE Computer science sub code 083)
 
CBSE XII COMPUTER SCIENCE STUDY MATERIAL BY KVS
CBSE XII COMPUTER SCIENCE STUDY MATERIAL BY KVSCBSE XII COMPUTER SCIENCE STUDY MATERIAL BY KVS
CBSE XII COMPUTER SCIENCE STUDY MATERIAL BY KVS
 
+2 Computer Science - Volume II Notes
+2 Computer Science - Volume II Notes+2 Computer Science - Volume II Notes
+2 Computer Science - Volume II Notes
 
School Management (c++)
School Management (c++) School Management (c++)
School Management (c++)
 
C++ Notes by Hisham Ahmed Rizvi for Class 12th Board Exams
C++ Notes by Hisham Ahmed Rizvi for Class 12th Board ExamsC++ Notes by Hisham Ahmed Rizvi for Class 12th Board Exams
C++ Notes by Hisham Ahmed Rizvi for Class 12th Board Exams
 
12th CBSE Practical File
12th CBSE Practical File12th CBSE Practical File
12th CBSE Practical File
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 
CBSE XII Communication And Network Concepts
CBSE XII Communication And Network ConceptsCBSE XII Communication And Network Concepts
CBSE XII Communication And Network Concepts
 
Computer Science Investigatory Project Class 12
Computer Science Investigatory Project Class 12Computer Science Investigatory Project Class 12
Computer Science Investigatory Project Class 12
 
CBSE XII Boolean Algebra
CBSE XII Boolean AlgebraCBSE XII Boolean Algebra
CBSE XII Boolean Algebra
 
Digital logic circuits important question and answers for 5 units
Digital logic circuits important question and answers for 5 unitsDigital logic circuits important question and answers for 5 units
Digital logic circuits important question and answers for 5 units
 

Similar to Computer Practical

Important C program of Balagurusamy Book
Important C program of Balagurusamy BookImportant C program of Balagurusamy Book
Important C program of Balagurusamy BookAbir Hossain
 
JAVA practical Exam Questions (1).docx
JAVA practical Exam Questions (1).docxJAVA practical Exam Questions (1).docx
JAVA practical Exam Questions (1).docxLucky Ally
 
ABAP Programming Overview
ABAP Programming OverviewABAP Programming Overview
ABAP Programming Overviewsapdocs. info
 
Abapprogrammingoverview 090715081305-phpapp02
Abapprogrammingoverview 090715081305-phpapp02Abapprogrammingoverview 090715081305-phpapp02
Abapprogrammingoverview 090715081305-phpapp02wingsrai
 
Chapter 1abapprogrammingoverview-091205081953-phpapp01
Chapter 1abapprogrammingoverview-091205081953-phpapp01Chapter 1abapprogrammingoverview-091205081953-phpapp01
Chapter 1abapprogrammingoverview-091205081953-phpapp01tabish
 
chapter-1abapprogrammingoverview-091205081953-phpapp01
chapter-1abapprogrammingoverview-091205081953-phpapp01chapter-1abapprogrammingoverview-091205081953-phpapp01
chapter-1abapprogrammingoverview-091205081953-phpapp01tabish
 
Chapter 1 Abap Programming Overview
Chapter 1 Abap Programming OverviewChapter 1 Abap Programming Overview
Chapter 1 Abap Programming OverviewAshish Kumar
 
Abapprogrammingoverview 090715081305-phpapp02
Abapprogrammingoverview 090715081305-phpapp02Abapprogrammingoverview 090715081305-phpapp02
Abapprogrammingoverview 090715081305-phpapp02tabish
 
C programming assignment presentation file
C programming assignment presentation fileC programming assignment presentation file
C programming assignment presentation filesantoshkumarhpu
 
Computing an average mark for four tests Design the algorithm and the.docx
Computing an average mark for four tests  Design the algorithm and the.docxComputing an average mark for four tests  Design the algorithm and the.docx
Computing an average mark for four tests Design the algorithm and the.docxljohn878
 
Devry cis-170-c-i lab-5-of-7-arrays-and-strings
Devry cis-170-c-i lab-5-of-7-arrays-and-stringsDevry cis-170-c-i lab-5-of-7-arrays-and-strings
Devry cis-170-c-i lab-5-of-7-arrays-and-stringsnoahjamessss
 
Devry cis-170-c-i lab-5-of-7-arrays-and-strings
Devry cis-170-c-i lab-5-of-7-arrays-and-stringsDevry cis-170-c-i lab-5-of-7-arrays-and-strings
Devry cis-170-c-i lab-5-of-7-arrays-and-stringscskvsmi44
 
Devry cis 170 c i lab 5 of 7 arrays and strings
Devry cis 170 c i lab 5 of 7 arrays and stringsDevry cis 170 c i lab 5 of 7 arrays and strings
Devry cis 170 c i lab 5 of 7 arrays and stringsjody zoll
 
Objectives 1. using indirect addressing 2. passing parameters.pdf
Objectives 1. using indirect addressing 2. passing parameters.pdfObjectives 1. using indirect addressing 2. passing parameters.pdf
Objectives 1. using indirect addressing 2. passing parameters.pdffcsondhiindia
 
1 ECE 175 Computer Programming for Engineering Applica.docx
1  ECE 175 Computer Programming for Engineering Applica.docx1  ECE 175 Computer Programming for Engineering Applica.docx
1 ECE 175 Computer Programming for Engineering Applica.docxoswald1horne84988
 
cmp104 lec 8
cmp104 lec 8cmp104 lec 8
cmp104 lec 8kapil078
 
ANSHUL RANA - PROGRAM FILE.pptx
ANSHUL RANA - PROGRAM FILE.pptxANSHUL RANA - PROGRAM FILE.pptx
ANSHUL RANA - PROGRAM FILE.pptxjeyel85227
 
Write a task that will perform some of the functions performed by a s.docx
 Write a task that will perform some of the functions performed by a s.docx Write a task that will perform some of the functions performed by a s.docx
Write a task that will perform some of the functions performed by a s.docxajoy21
 

Similar to Computer Practical (20)

Important C program of Balagurusamy Book
Important C program of Balagurusamy BookImportant C program of Balagurusamy Book
Important C program of Balagurusamy Book
 
JAVA practical Exam Questions (1).docx
JAVA practical Exam Questions (1).docxJAVA practical Exam Questions (1).docx
JAVA practical Exam Questions (1).docx
 
ABAP Programming Overview
ABAP Programming OverviewABAP Programming Overview
ABAP Programming Overview
 
Abapprogrammingoverview 090715081305-phpapp02
Abapprogrammingoverview 090715081305-phpapp02Abapprogrammingoverview 090715081305-phpapp02
Abapprogrammingoverview 090715081305-phpapp02
 
Chapter 1abapprogrammingoverview-091205081953-phpapp01
Chapter 1abapprogrammingoverview-091205081953-phpapp01Chapter 1abapprogrammingoverview-091205081953-phpapp01
Chapter 1abapprogrammingoverview-091205081953-phpapp01
 
chapter-1abapprogrammingoverview-091205081953-phpapp01
chapter-1abapprogrammingoverview-091205081953-phpapp01chapter-1abapprogrammingoverview-091205081953-phpapp01
chapter-1abapprogrammingoverview-091205081953-phpapp01
 
Chapter 1 Abap Programming Overview
Chapter 1 Abap Programming OverviewChapter 1 Abap Programming Overview
Chapter 1 Abap Programming Overview
 
Abapprogrammingoverview 090715081305-phpapp02
Abapprogrammingoverview 090715081305-phpapp02Abapprogrammingoverview 090715081305-phpapp02
Abapprogrammingoverview 090715081305-phpapp02
 
C programming assignment presentation file
C programming assignment presentation fileC programming assignment presentation file
C programming assignment presentation file
 
C++
C++C++
C++
 
Computing an average mark for four tests Design the algorithm and the.docx
Computing an average mark for four tests  Design the algorithm and the.docxComputing an average mark for four tests  Design the algorithm and the.docx
Computing an average mark for four tests Design the algorithm and the.docx
 
Devry cis-170-c-i lab-5-of-7-arrays-and-strings
Devry cis-170-c-i lab-5-of-7-arrays-and-stringsDevry cis-170-c-i lab-5-of-7-arrays-and-strings
Devry cis-170-c-i lab-5-of-7-arrays-and-strings
 
Devry cis-170-c-i lab-5-of-7-arrays-and-strings
Devry cis-170-c-i lab-5-of-7-arrays-and-stringsDevry cis-170-c-i lab-5-of-7-arrays-and-strings
Devry cis-170-c-i lab-5-of-7-arrays-and-strings
 
Devry cis 170 c i lab 5 of 7 arrays and strings
Devry cis 170 c i lab 5 of 7 arrays and stringsDevry cis 170 c i lab 5 of 7 arrays and strings
Devry cis 170 c i lab 5 of 7 arrays and strings
 
Objectives 1. using indirect addressing 2. passing parameters.pdf
Objectives 1. using indirect addressing 2. passing parameters.pdfObjectives 1. using indirect addressing 2. passing parameters.pdf
Objectives 1. using indirect addressing 2. passing parameters.pdf
 
1 ECE 175 Computer Programming for Engineering Applica.docx
1  ECE 175 Computer Programming for Engineering Applica.docx1  ECE 175 Computer Programming for Engineering Applica.docx
1 ECE 175 Computer Programming for Engineering Applica.docx
 
Python
PythonPython
Python
 
cmp104 lec 8
cmp104 lec 8cmp104 lec 8
cmp104 lec 8
 
ANSHUL RANA - PROGRAM FILE.pptx
ANSHUL RANA - PROGRAM FILE.pptxANSHUL RANA - PROGRAM FILE.pptx
ANSHUL RANA - PROGRAM FILE.pptx
 
Write a task that will perform some of the functions performed by a s.docx
 Write a task that will perform some of the functions performed by a s.docx Write a task that will perform some of the functions performed by a s.docx
Write a task that will perform some of the functions performed by a s.docx
 

Recently uploaded

Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerunnathinaik
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Recently uploaded (20)

Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developer
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 

Computer Practical

  • 1. Computer Science (083) Class-XII(2008-09) List of Programs 1. Write a function to generate the following series using functions passing the required parameters:- a. 1+x1/1! + x2/2! + x3/3!.........xn/n! b. 1+x2/3!-x3/4!.........xn/n+1! c. 1-x2/3!+x3/4!.........xn-1/n! STRUCTURES 2. Write a program to accept the data of a student having the following structure:- Roll Name Address Father’s Marks in 5 No. Name Subjects Last First Add1 Add2 Pin Name Name Code And Display the following menu:- o Merit List Generation: - should have the roll no., name, marks in 5 subjects, total and average. o Grade card Generation: - should have roll no., name, total and grade. Criteria of grade are: - Average Grade >=90 A <90 and >=75 B <75 and >=60 C <60 and >=40 D <40 F ENUMERATED DATA TYPE 3. Write a program to show different rainbow colors of corresponding to the entered code using enumerated data type. MACROS 4. Write a program to define following macro and their implementation: • Area of rectangle • Area of square • Area of triangle • Constant Max = 100 CLASSES 5. Write a program to accept an array and display the following menu: - o Insertion Sort. o Binary search
  • 2. 6. To accept 2 arrays and display the following menu: - o Merge 2-sorted arrays. o Even-Odd Sorting. o Negative-Positive Sorting. 7. To accept a 2-D array and display the following menu: - o Row total. o Column total. o Lower Triangle 1 and 2. o Upper Triangle 1 and 2. 8. Write program to accept a string and display the following menu with out using built-in functions: - o Palindrome or not. o Frequency Table. o Change case. o String Length. 9. Write a program to store the record of an employee with the following details: - Private members: Data members EmpNo Integer Name Character Address Character Pin code Character Basic Salary Float HRA Rate Float DA Rate Float PF Rate Float HRA Float DA Float PF Float GROSS Float NET Float • Calculate() to calculate HRA, DA, PF, GROSS and net salary Public: • Retempno() function to return empno • Retename() function to return employee name • Readdata() to accept employee no, name, address, pincode, Basic salary, HRA rate, DA rate and PF rate. Invoke function calculate to calculate HRA, DA, PF, GROSS and net salary • Displaydata() to display employee no, name, address, pincode, Basic salary, HRA, DA, PF, GROSS and net salary of the employee
  • 3. Display the following menu : o Create. (To accept data of 5 employee) o Salary statement. To display payslip of 5 employee o Query on employee number. To accept empno and display relevant data o Query on employee name. To accept employee name and display relevant data. 10. Write a program to declare a structure of a student with the following details: - Structure student Adm_No Integer Name Character Address Character Pin Code Character Class Integer Marks in 5 Subjects Float Total Float Average float Grade character Create a class Marks private • object of the above structure • calculate() to calculate total, average and grade Public member • Readdata() to accept Adm_No, Name, Address, Pin Code, Class and invoke calculate function • Displaydata() to display Adm_No, Name, Address, Pin Code, Class. Total, average and grade. Display the following menu for atleast 5 students (use functions): - o Create. To accept data of 5 student o Report card to display report card of one student o Name list to display data sorted on name o Merit List. To generate merit list CONSTRUCTOR 11. Write a program to accept the number and compute the factorial. 12. Write a program to generate Tribonacci series. POINTERS 13. Write a program to swap 2 given numbers. 14. Write a program to create, and display the elements of an integer array.
  • 4. 15. Declare a structure struct telephone { char tno[9]; char name[10]; }; Write the program to do the following : • Create an array with 5 elements of telephone type and initialize it with telephone nos. and names of your 5 friends. • Create a pointer to telephone array • Display the telephone details of your 5 friends using pointer. 16. Try the following program illustrating the use of this pointer class one { char name[10]; public: one (char * s) // constructor function { strcpy(name, s); } one compare(one s) { if (strcmp(name,s.name) ==0) return this; else return s; } void display( ) { cout <<”current calling object is : “<< name; cout << “nPress any key to continue……”; getch( ); } }; int main( ) { one obj1(“Obj1”), obj2(“Obj2”), obj3(“Obj1”); obj2.display( ); obj3.display( ); one *p=obj1.compare(obj2); p->display(); p=obj1.compare(obj3); p->display();
  • 5. } INHERITANCE 17 Consider the classes: class person{ private: char name[20]; protected: int age; public: void readdata(); void displdata(); }; class employee:public person { char department[20]; protected: float salary; public: void read(); void write(); float retsal { return salary;} int retage(){ return age;} int retdep(char *d) { if (strcmp(d,department) == 0) return 1; else return 0;} }; Complete the above classes and write main function having 5 employees and display a menu: 1. Create 2. Search on the basis of age 3. Search on the basis of department 4. Search on the basis of salary FILE HANDLING 17. Write a program to accept a text file name and display: -  Number of characters
  • 6.  Frequency Table o No of Uppercase character o No of Vowels o No of Digits o No of Words  Number of lines 18. Write a program to accept the text file name and display the following menu: -  Find and replace a character  Replace lowercase character with uppercase character 19. Write a program to accept a source file and target file and display the following menu: -  Copy contents source to target  Change case of source to target  Replace many spaces to one space  Change contents like “AASTHA” to “aaSTHa” 20. Consider the following class class STUD { int Rno; char Name[20]; public: void Enter(){cin>>Rno;gets(Name);} void Display(){cout<<Rno<<Name<<endl;} }; Write the program which displays the following menu and allows following file operations assuming the binary file is containing the objects of the above mentioned class: - • Create • Add • Delete (Using Two files) (Use remove( ) and rename( ) functions) • Display NOTE : Define separate functions for above mentioned operations 21. Write a program to create an employee class having the following data members: - Private Emp_no Integer Name Character Address Character
  • 7. Pin Code Character Basic Float HRA Float DA Float PF Float Public Readata() To accept the data Retempno() Function to return employee no. Showdata() To show the data And display the following menu: -  Create  Add  Modify (Using one file)  Search  Display NOTE : Define separate functions for above mentioned operations STACKS and QUEUE 22.Write a program to perform various stack operations like push(), pop(), display() on a STATIC stack. 23.Write a program to perform various queue operations like insert(), delete(), display() on a circular queue array. 24.Write a program to perform various stack operations like push(), pop(), display() on a linked stack having following node structure: - Roll_n Integer o Age Integer 25.Write a program to perform various queue operations like insert(), delete(), display() on a linked queue having 1 integer and 1 floating type data. Struct Node { int x; float y; Node *link; }; 26.Write a program to perform reverse a line-using stack having string to store each word.
  • 8. STRUCTURE QUERY LANGUAGE 27.Create employee tables having the following: - Empno Number (4) Deptno Number (2) Empname Character (20) Job Character (10) Manager Number (4) Hire Date Date Salary Number (7,2) Commission Number (7,2) Query Statements based on that: -  Create a table  Insert 5 records  Display the names of employee whose name starts with “P” or “R”.  Display information of employee getting between Rs. 2000 and 8000.  Display information on the basis of dept_no. 28. Write the outputs of SQL commands given in (h) with the help of the table shown. EmpNo Name Job Mgr Hiredate Sal Deptno Integer Character Character Float Date Float Integer  To select all the information of employee of Dept number 20  Find all employees who are either Clerks or who are earning between 1000 and 2000.  To list names of all employees in ascending order of their salary.  To display employee’s name, Salary, Deptno for only managers.  To count the number of employees with salary <3000.  To insert a new row in the Employee table with the following data: 11, “MILLER”, “Manager”, 7698, {25/02/98}, 4300, 20.  Give the output of the following SQL statements: - o Select COUNT(*) from EMPLOYEE. o Select MIN(Salary) from EMPLOYEE where deptno=20 o Select SUM(Salary) from EMPLOYEE where department=”Clerk”. o Select AVG(Salary) from EMPLOYEE.  Consider a table Department having fields as Deptno Deptname Integer Character
  • 9. o Display name of employees along with their department having deptno as 10 or 20. o Display total salary of each department. o Display total salary of each department whose employee name starts with N or P. o Display total salary of each department whose total salary > 20000. 29.Write the SQL command for (a) to (f) on the basis of the table given below (DIRECTORY). DIRECTORY No. Fname Lname Phone Address Integer Character Character Float Character  To select all the information of employee of Rohini area.  Update the database set the phone no. as 7047645 where phone number is 7057456.  To create a view called Dir with the following fields-> Fname, Phone and Address.  To display the data for Arpit, Rahul and Kisan.  To delete the rows where the address is Rohini.  To delete the table physically.