vikrama simhapuri university: nellore third year ... year b. com...sql, pl/sql the programming...

19
1 Code No: 32041A VIKRAMA SIMHAPURI UNIVERSITY: NELLORE Third Year B.Com. (Computer Applications) PART II : Paper XIII BUSINESS DATA BASE MANAGEMENT SYSTEMS This Elective can be chosen by B.Com Computer Applications LECTURE PERIODS/WEEK: UNIVERSITY EXAM : 3 HRS. MARKS : 70+30 UNIT - I : Introduction of Database- Data, Information and Information processing - Introduction - Definition of Information - History of Information - Quality of Information - Information Processing - Information and the Enterprise - Integrated Management Information Database Processing Systems File Organization Structure - Storage Media - Record Types- Merits and Demerits of File Processing System.- ranges of Database Approaches: personal database, workgroup data base, Departmental and Enterprise database- Components of a Database System Environment Database Development Process - Software Development Life Cycle (SDLC) and Database Development Life Cycle (DDLC), UNIT-II: Modeling Data in the Organization: Introduction-Modeling Rules of the Organization-Scope of Business Rules-Data Names and Definitions Entity Relationship (E-R) Modeling - Introduction - E-R Model - Components of an E-R Model -E-R Modeling Symbols - Attributes of E-R Model, Entity Types of E-R Model- Relationships: Degree of relationships- Cardinality Constraints Enhanced Entity Relational (EER) Modeling : - Relationship - Generalization and Specialization. Data Normalization - introduction - First Normal Form (1NF) Second Normal Form (2NF) - Third Normal Form (3NF) - Boyce - Codd Normal Form (BCNF) - Fourth Normal Form (4NF) - Fifth Normal Form (5NF) UNIT - III : Introduction to Structured Query Language (SQL) - Introduction - History of SQL - Characteristics of SQL - Advantages of SQL - SQL in Action - SQL Data Types and Literals -SQL Environment- Types of SQL Commands SQL Operators - Arithmetic Operators - Comparison Operators - Logical Operators - Set Operators - Operator Precedence Tables , Views and Indexes - Tables - Views - Indexes - Nulls - Introduction - Nulls in Action - Effect of Nulls - Null Indicators - Nulls and Comparison Operators - BETWEEN , LIKE and IN Condition - ALL and ANY Conditions - ORDER By Clause - Queries and Sub queries - Queries - Sub queries. Aggregate Functions - Introduction - Genera! Rules - COUNT () and COUNT (*) - SUM - AVG() - MAX 0 and MIN () - Insert , Update and Delete Operations - Introduction - INSERT Statement - Bulk Inserts of Data - UPDATE Statement - DELETE Statement UNIT-IV: ADVANCED SQL: Multiple table processing: Joins and Unions - Joins - Unions PL/SQL-Introduction of PL/SQL- PL/SQL Block Structure - PL/SQL Control Statements Introduction of Cursors - Cursor Operations - Cursor Positions - Cursor Coding Guidelines Procedures and functions- Sub procedures- functions- packages Triggers - Introduction - What is a Trigger - Types of Triggers - Trigger Syntax - Combining Trigger Types - Setting Inserted Values - Disabling and Enabling Triggers - Replacing Triggers - Dropping Triggers - Advantages and Limitations of Triggers UNIT - V: Client-Server Database Environment: Introduction of client/server architecture-file server architecture-database server architecture-3 Schema Architecture and 3 Tire Architecture for database development Database Security - Introduction Data Security Risks - Data Security Requirements - Dimension of Database Security - Types of Database Users - Transaction States - ACID Properties - Types of Failures - Recovery Facilities - Concurrency Control Schemas - Concurrency Control Techniques - The COMMIT Command - The ROLLBACK COMMAND - The SAVEPOINT Command - Data Encryption - Authentication Users to the Database - Integrity Constraints.

Upload: others

Post on 01-Feb-2021

10 views

Category:

Documents


1 download

TRANSCRIPT

  • 1

    Code No: 32041A

    VIKRAMA SIMHAPURI UNIVERSITY: NELLORE

    Third Year B.Com. (Computer Applications) PART – II : Paper – XIII BUSINESS DATA BASE MANAGEMENT SYSTEMS

    This Elective can be chosen by B.Com Computer Applications

    LECTURE PERIODS/WEEK: UNIVERSITY EXAM : 3 HRS. MARKS : 70+30 UNIT - I :

    Introduction of Database- Data, Information and Information processing - Introduction - Definition of Information - History of Information - Quality of Information - Information Processing - Information and the Enterprise - Integrated Management Information Database Processing Systems File Organization Structure - Storage Media - Record Types- Merits and Demerits of File Processing System.- ranges of Database Approaches: personal database, workgroup data base, Departmental and Enterprise database- Components of a Database System Environment Database Development Process - Software Development Life Cycle (SDLC) and Database Development Life Cycle (DDLC),

    UNIT-II: Modeling Data in the Organization: Introduction-Modeling Rules of the Organization-Scope of

    Business Rules-Data Names and Definitions Entity Relationship (E-R) Modeling - Introduction - E-R Model - Components of an E-R Model -E-R Modeling Symbols - Attributes of E-R Model, Entity Types of E-R Model- Relationships: Degree of relationships- Cardinality Constraints Enhanced Entity Relational (EER) Modeling : - Relationship - Generalization and Specialization. Data Normalization - introduction - First Normal Form (1NF) Second Normal Form (2NF) - Third Normal Form (3NF) - Boyce - Codd Normal Form (BCNF) - Fourth Normal Form (4NF) - Fifth Normal Form (5NF)

    UNIT - III : Introduction to Structured Query Language (SQL) - Introduction - History of SQL -

    Characteristics of SQL - Advantages of SQL - SQL in Action - SQL Data Types and Literals -SQL Environment- Types of SQL Commands SQL Operators - Arithmetic Operators - Comparison Operators - Logical Operators - Set Operators - Operator Precedence Tables , Views and Indexes - Tables - Views - Indexes - Nulls - Introduction - Nulls in Action - Effect of Nulls - Null Indicators - Nulls and Comparison Operators - BETWEEN , LIKE and IN Condition - ALL and ANY Conditions - ORDER By Clause - Queries and Sub queries - Queries - Sub queries. Aggregate Functions - Introduction - Genera! Rules - COUNT () and COUNT (*) - SUM - AVG() - MAX 0 and MIN () - Insert , Update and Delete Operations - Introduction - INSERT Statement - Bulk Inserts of Data - UPDATE Statement - DELETE Statement

    UNIT-IV: ADVANCED SQL: Multiple table processing: Joins and Unions - Joins - Unions

    PL/SQL-Introduction of PL/SQL- PL/SQL Block Structure - PL/SQL Control Statements Introduction of Cursors - Cursor Operations - Cursor Positions - Cursor Coding Guidelines Procedures and functions- Sub procedures- functions- packages Triggers - Introduction - What is a Trigger - Types of Triggers - Trigger Syntax - Combining Trigger Types - Setting Inserted Values - Disabling and Enabling Triggers - Replacing Triggers - Dropping Triggers - Advantages and Limitations of Triggers

    UNIT - V: Client-Server Database Environment: Introduction of client/server architecture-file server

    architecture-database server architecture-3 Schema Architecture and 3 Tire Architecture for database development Database Security - Introduction Data Security Risks - Data Security Requirements - Dimension of Database Security - Types of Database Users - Transaction States - ACID Properties - Types of Failures - Recovery Facilities - Concurrency Control Schemas - Concurrency Control Techniques - The COMMIT Command - The ROLLBACK COMMAND - The SAVEPOINT Command - Data Encryption - Authentication Users to the Database - Integrity Constraints.

  • 2

    Code No: 32041A

    TEXT BOOKS: 1. Modern Database Management by Jeffery A. Hffer, Prescott, McFadden, Pearson Education. 2. SQL, PL/SQL the programming language of Oracle by Ivan Bayross, BPB Publication, Second

    Edition. 3. REFERENCE BOOKS: 1. Database Management Systems, Alexis Leon and Mathews Leon, Vikas Publications, 2. Database Management Systems by Pannerselvam R and published by PH of India, New Delhi. 3. A Guide to Oracle by John Morrison, Mike Morrison - Galgotia Publishers 4. Database System Concepts by Silbcrsehats, Korth, S.Sudharshanam - McGraw Hill.

    Practical - III BDBMS PRACTICAL LIST 1. Write an SQL command to create table client master with the following constraints

    b. A CHECK constraint on the client no, so that client no, value must start with C, c. A CHECK constraint on name so that name is entered in uppercase. C. A CHECK constraint on city so that only the cities " BOMBAY ", NEW DELHI, MADRAS, CALCUTTA. d. Include the following columns with appropriate data types.

    Address State Balance 2. Create a View get employee name and his manager name from the following : EMP. '

    Emo No Char (6) Emp Name Varchar2{ 15) Dept-no Char(6) foreign key dept (dept-no) Hire date date Mgr char{16) foreign key Emp (Emp-no) Sal number (6,2)

    3. Write a PL/SQL program to calculate the commission for given basic, to be calculate As follows : If basic is greater than or equal to Rs.6000/- then the commission is 20% of the basic, but basic is greater than or equal to Rs.4000/- and less than then 6000 then the commission is 10% of the basic, otherwise the commission is 5% of the basic. The basic is COM, the corresponding columns are COMM, CNO, BASIC,

    4. The basic table is having the columns of Htno, marks, rank, enterHTno, and marks in the base tables up to 20 records write a PL-SQL program to update the base while allocating rank.

    5. Write a PL/SQL program to evaluate the HRA, INCOME TAX, GROSS SALARY, and NETSALARY? Base table is pay and the corresponding columns ae ENUMBER, ENAME, GCODE, BASIC, DA, HRA, [TAX, GSAL, NETSAL.

    Input from the base table is Enumber, Ename, Gcode, Basic:, Da, 6. Write a PL/SQL program to process the X class results for the following Conditions?

    Eng,te!,mat,sc,soc >34 pass total is > is >=360 I class, total is >=300II class, otherwise III class? The base table is Tenth and corresponding fields are HTNO, ENG,HIN,MA T,SCI,SOC,TOT,RESULT. Input Htno.en g,tel ,h in, m at, s c i,soc

    7. write a pl/sql program to calculate electrical charges as per the rates given below; industry Rs. 10-00, Agricultural Rs,5-00, Demestic Rs.7-50. The fields of the base table are Cno, Cpmr, Cmr, Rate, Des, Tcharge. The program input; should be Rate, Des, Tcharge. Enter the input Cno, Cpmr, Cmr, in the base table ELEC.

    8. create a master detail form called dept emp which should alow the basic data manipulation operations, insert, update, delete and query on Dept (master) and Emp (detail table).

    EMP. Emo No Char (6) Emp Name Varchar2(15) Dept-no Chr(6) fpreogm leu de[t (de[t-n0) Hire date date

    Mgr char(16) foreign key Emp (Emp-no) Sal number (6,2)

    DEPT Deptno char (6) primary key Deptname varchar2(15)

  • 3

    Code No: 32041A

    9. Create table called CANDIDATE with the following attributes. Candidate-no char(6) primary key

    Candidate-name varchar2(15) Course Name chr (1) Material Status chr(1)

    Create a form called candidate which should allow insert, update, delete and query. Validation 1. The candidate-no should be of 6 characters. 2. The course-name should be displayed as a list item (pop list). The default should be COMPUTER. 3. The sex should be displayed as a check box. The default should be checked, 4. Marital status should be displayed as a radio group with the following

    radio buttons : Radio Buttons Values to stored Married M Unmarried U Widow W The default should be unmarried.

    5. Attach a LOV to CNO we shouid open immediately when you run the form

    10. Consider the following tables : ORDER Ord-no char(6) primary key

    Cust char(6) Ord-date date Ship-Date date Ord-fill char(1) Pay mode varchar2(10)

    CUSTOMER Cust-no char{6) primary key

    Cust-name varchar2(15) City varchar2(l5) State varchar2{6) pin number(6)

    Crdlist varchar2(10)

    Create a form in developer 2000 called order which will allow the operator to make date entry only in the order table with the following conditions :

    1. Create a block called order block based on order table, 2. Create a text item called cut-name which should have same size and type cust-name,

    column of customer table. 3. Write a trigger which will display the name of the customer in the ord block that

    existing customer for equivalent customer number given in order block into the cust-name of order block

    4. Createn a LOV called cust-list and add it to cust-no of order block. Create a LOV button which will display customer list LOV when the operator click it. So the Customer number can be either selected from cust-list LOV or entered through standard input device.

    5. Ship-date should be 15 days after the ord-date. Write a trigger which will operator can modify the ship-date, (default ord-date as system date).

    6. The ord fill column indicate weather the order as been executed or not. it should be displayed as check box and default should be checked. Write a trigger which will make ship-date and updated when ord-fill is checked.

    7. The pay-mode column should be displayed as radio group with the following radio buttons :

    Radio buttons value Cheque cheque Cash cash Credit card credit-card

    Write a trigger which will verify the credit history of the customer when the operator select a radio button from the payment mode radio group. If the credit history is "POOR", "EXCELLENT", "GOOD", "POOR".

    11. Create a library, which will include the following mathematical functions a) ADD (x,y)b) DIFF (x,y) c) PROD (x,y) d) DIV (x,y) create a four separate forms module ie, add-form, sub-form, die-form, create a menu module to ingrate all these forms module. All these forms module. The menu module will have the following items ;

  • 4

    Code No: 32041A

    FORMS EDIT ACTION Add-form cut clear Diff-form Plate exit Orod-fform Copy exit div-form Copy exit

    12. Create a report on order-table customer wise. 13. Create a report on order-table based on order-wise 14. Create a report on order-table based on payment-mode 15. Create a report on order-table on product wise 16. From EMP database, generate a department wise control break. Report with sub total and grand

    total using SQL, PLUS Date Page

    V.S. University Non-Teaching Employees

    Section No. Emp No. Emp. Name Annual Salary ----------------------------------------------------------------------------------------------------------------------------

    10 xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxx xxxxxx -------- Dept. Total xxxxx -------

    20 xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxx xxxxxx xxxxxx xxxxxxxx xxxxxx -------- Dept. Total xxxxx ------- -----------------------------------------------------------------------------------------------------------------------------

    Practical Marks Distribution

    Total for Lab Examination : 30 Marks Record Work : 10 marks Written Exam and Execution : 10 Marks Viva Voce : 10 Marls

  • 5

    Code No: 42041A

    VIKRAMA SIMHAPURI UNIVERSITY: NELLORE

    Third Year B.Com. (Computer applications) PART – II : Paper – XIV WEB TECHNOLOGIES AND E- COMMERCE

    This Elective can be chosen by B.Com Computer Applications LECTURE PERIODS/WEEK: UNIVERSITY EXAM : 3 HRS UNIVERSITY EXAM.MARKS:70 + 30

    UNIT -1 : Introduction to Web Database Processing : Web Basics - Database Basics-Dynamic Web

    pages. Structured Query Languages : Using SQL to Create Database Queries - Performing Calculations in Queries - Creating SQL Queries to join data in Multiple Tables - Creating an union Query - Using SQL group functions to insert, update and delete data. Introduction to HTML Commands : Basic HTML - Introduction - HTML Document Structure- HTML Tags - Basefont tag, Title tag, Body tag- Text formatting commands : text line spacing and justification, line break tag, HTML character Entities,- Character tags: Content based tags, Physical Based tags - Graphical Objects - HTML Lists: ordered list, Unordered list, Data definition lists, Nested lists- Tables in Web pages - Hyperlinks.

    UNIT - II Advance HTML: Frames; Frame usage, frame tags, target hyperlinks, nested frames - HTML

    Forms: Introduction - Form controls: text box, Check box, Password, Radio Button, Buttons, Text Area, select. - Form methods with suitable examples. Multimedia Objects- Audio- Video. Cascading Style sheets: Introduction - Using styles: Simple Examples - Defining your own styles- properties and values in styles- Formatting blocks of information: Classes, Divisions, Spans, Layers with suitable examples.

    Unit- III VB Scripts : - Introduction to Scripts - Creating Client Side Scripts using VB Script - Referencing

    Form fields and Button click events- creating function procedures - Variable Declarations- Branching statements-Looping statements- Usage of Arrays in VBscript- Creating a Script to validate HTML Forms Inputs: like using Textbox , checkbox, radio buttons, select, button methods - Debugging - Using Client Side Scripts to Create Cookies: temporary cookies and persistence cookies - Using Scripts to displaying a webpage in new browser window, and in same browser window .

    (E- Commerce) UNIT-IV :

    History of E-Commerce : Early business - Information exchange efforts - Emergence of Internet and World Wide Web - Mile stones - Advantages and disadvantages of E - Commerce. Enabling technologies of the World Wide Web: Internet Client Server Applications - Net works and Internets - Software Agents - Internet Standard and Specifications - Internet Service Providers.

    E-Security : Security on the Net - E-Business - Risk Management issues UNIT - V:

    Mobile Commerce: Growth of Mobile Commerce - Wireless applications - Technologies for Mobile Commerce - Origins of WAP - WAP programming Model - Wireless Technologies. Electronic Data Interchange (EDI) : EDI benefits - Systems and Communications Approach - Internet and WWW tools - Overview of Safe electronic Commerce - Secure Electronic Transaction (SET) - Internet Monetary Payment and Security Requirements - Payment and Purchase order process - online Electronic Cash. TEXT BOOKS:

    1) Database - Driven Web sites by Mike Morrison and Joline Morrison and Published by Vikas Publishing House, New Delhi.

    2) E-Commerce :A Managerial Perspective by P.T,Joseph and Published by Prentice Hall of India Private Limited, New Delhi.

    3) Web Commerce Technology - Hand book by Daniel Minoli and Emma Minoli and published by Tata McGraw Hill.

    4) Web Programming by chris bates, by Wiley - dreatech India Pvt.Ltd

  • 6

    Code No: 42041A

    PRACTICALIV : Webtechnologies and E-Commerce Practical

    Marks : 30 1. Write a paragraph about your family (assume that is has father, mother two sons and two

    daughters). In this paragraph, see to it that all names of all members of your family appear as hot text. When the name of each member is clicked, it must open another HTML document which displays the information of age, school rank etc. of that member. In that HTML document, the name of the school must be a hot text when the school name is clicked, another HTML document must be opened which gives the details of the school.

    2. Prepare a two - paragraph text about your house. In this paragraph mention that your house has a garden, a drawing room, two bed rooms etc. develop an HTML document, which displays these two paragraphs in such a way that the words garden, drawing room, kitchen etc are hot text. Prepare HTML documents garden html, kitchen, Html, drawing room html etc. To describe the respective rooms (say, in terms of dimensions, furniture, equipment (like multimedia, air conditioner) placed in that room. All the gadgets (example television) should be hot text. The develop television-html to explain the brand, model, price etc of the television. Similarly other gadgets should be described. Note that the garden may have a mango tree; the kitchen may have an electric oven and so on.

    3. Write the names of several countries in a paragraph and store it as an HTML document, namely world.html. Each continent's name must be hot text. When you click Europe, it should open a file called Europe.html. So separate Europe.html, America.html, Africa.html, Asia.html, and Australia.html. Each of these html documents should be give a brief description of the continent {an atlas may also give some information). These documents should contain a list of important countries in that continent. Each country's name must be hot text, when you click India, it must open India.html, which should contain information on India.

    4. Consider an html document which shows the map of India. In this map the cities of Chennai, Delhi, Mumbai and Calcutta are in the coordinates (115,240),(100,100), (70,70) and (200,150). We want to define them as hot spots and when we click a city, a corresponding html document should be opened (for example Delhi.html).

    5. Design a web page of an important person (for example Mahatma Gandhi) explaining his academic and personal facets and give suitable heading and horizontal rules. Design facets and give suitable headings and horizontal rules. Design it in appropriate color.

    6. Design the web page of your home, town (or district) head quarters in appropriate colors. 7. Develop an html document to print the following.

    Who can use solor water heaters? Anybody with a regular hot water demand. In houses for domestic purposes (Cooking, bathing, washing). For engineering / Chemical industries, dairies, textile / leather processing plants. For hotels, hospitals, guesthouses and industrial canteens. For food processing plants and processing applications. Develop an html document to print the above message as an unordered list.

    8. Write an HTML document to print your bio-data in the following format

    Name

    Gender

    Date of Birth

    Nationality

    Address Street Town District State

    Phone/Fax/E-mail Phone (Office) Phone (Reisdent) Fax (Office) Fax (Resident) E-mail (Office

    EDUCATIONAL QUALIFICATIONS

    DEGREE University/Institution Month & Year

  • 7

    Code No: 42041A

    9. Write a few HTML documents each explaining HTML Frames 10. Develop an HTML document to display the registration form of an example of E-mail id creation. 11. Create an HTML document which demonstrates IMAGE MAP

    VB Script 12. Robinson travels wants to computerize its Flight booking for Chennai, New Delhi sector. The different airways and their fares are given in the following table. Design a web page for this task by the use of Radio buttons in the form

    13. Write a VBScript which accepts User name and Email-Id ensure that they are not blanks, store in variable and print in the another form of accepted data

    14. Write a VBScript display current day's week like Sunday, Monday etc. and display an image according to weekday.i.e., Sunday-image], Monday-image2 and so on

    15. Write a VBScript for the following A school has conducted Quarterly examinations. They would like to take student name and marks

    in all six subjects and print the result. A student is considered pass if she/he scores more than 35 in all subjects.

    Airways Fare

    Indian Airlines 7800

    Alliance Air 7000

    Jet Airways 7300

    Others 7500

  • 8

    Code No: 42041A

    16. Write an example of Mouse Over Event 17. Write a VBScript to input the form and print the duplicate copy of that form

    18. Write a VB Script to an example of server-side script 19. write a VBScript to an example of Cookie that will give the tiime and date of accessing of website. 20. write a VBSript for an example shows Mouse Event .

    Practical Marks Distribution Total for Lab Examination : 30 Marks Record Work : 10 marks Written Exam and Execution : 10 Marks Viva Voce : 10 Marls

  • 9

    Code No: 32041B

    VIKRAMA SIMHAPURI UNIVERSITY: NELLORE

    Third Year B.Com. (Computer applications) PART – II : Paper – XIII FUNDAMENTALS OF C++ This Elective can be chosen by B.Com Computer Applications

    This elective is offered only to B.Com., Computer Applications only. P.P.T.W. 5 (4+1) Marks 100 (70+30) Time 3 Hours

    Unit -1 Object Oriented Programming

    Introduction to OOP - Meaning of Object - Meaning of Class - LOOP characteristics : -Creation of new Data Types, Giving importance to Class, Inheritance , Encapsulation, Abstraction , Polymorphism, Operator Overloading , Function Overloading , Function Defining , Software Reusability.

    Unit -2 C Versus C++ Comparison between C and C++ - Data Types : - Integer Data Types . Char. Unsigned Char, Short, Unsigned Short, Int , Unsigned Int , Long , Unsigned Long . Floating Data Types . Input Statement (or) Input Function -Cin » - Output Statement ( or ) Output Function - Cout « - Arithmetic Operators - Logical Operators - Relational Operators.

    Unit -3 Arrays Introduction to Arrays - Declaration of Arrays - Different Types of Arrays : - One Dimensional Array, Two Dimensional Array. Array Examples on Variables - Array Examples on Constants.

    Unit -4 Programming Constructs Unary Operators - Increment Operator ( ++ ), Prefix Notation, Postfix Notation, Decrement Operator (--). Conditional Constructs - Switch .Case Construct, Break Statement, Default Keyword, Conditional Operator. Loop Construct - While Loop, Do,, while Loop, For loop. Examples on Programming Constructs.

    Unit -5 Important Features of C++ Classes -Objects - Structure - Pointers - Enumerated Data Types - Constructors-Destructors

    Lab: Using Turbo "C". Suggested Readings:

    1. Object Oriented Programming with C++ by E.Balagurusamy . 2. Introduction to Object Oriented Programming with C++ by Yashavant Kanetkar, 3. Programming with C++ by D.Ravichandran . 4. Let Us C++ by Yashavant Kanetkar.

    *****

  • 10

    Code No: 32041B

    FUNDAMENTALS OF C++ LAB 1. Write a C++ Program to calculate Simple Interest and Compound Interest for the given values. 2. Write a C++ program to calculate Roots of Quadratic Equation 3. Write a C++ program to calculate to find out the biggest of thee numbers with minimum if

    statements 4. Write a C++ program to implement Arithmetic operations using Switch-Case Statement. 5. Write a C++ program to calculate Sum of Natural Numbers. 6. Write a C++ program to calculate the factorial of a given number. 7. Write a C++ program to calculate whether the given number is prime or not 8. Write a C++ program to find out whether the given number is Armstrong or not. 9. Write a C++ program to find out whether the given number is Palindrome or not. 10. Write a C++ program to generate Fibonacci Series up to n. 11. Write a C++ program to find out the sum and average for the given n number. 12. Write a C++ program to Sort the given set of number in ascending order. 13. Write a C++ program to find out the transpose of given Matrix. 14. Write a C++ program to find out the addition of given two matrices. 15. Write a C++ program to find out the multiplication of given two matrices. 16. Write a C++ program to find out the reverse of given string. 17. Write a C++program to count vowels in a given string. 18. Write a C++ to implement ADT for Rational Numbers. 19. Write C++ program to find out Total Marks, Average, and Result for the given student details

    Student Number, Student Name, and Marks in three subjects using Class Concepts. 20. Write C++ program to implement Employee Payroll using Class Concepts. 21. Write a C++ program to explain the concept of Inline functions. 22. Write a C++ program to explain the concept of Constructors and Destructions. 23. Write a C++ program to explain the concept of Function Overloading (Unary Operators). 24. Write a C++ program to explain the concept of Function Overloading (Binary Operators). 25. Write a C++ program to explain the concept of Friend function using two different classes. 26. Write a C++ program to display the contents and the address of a pointer variable using

    different types of incrementation., 27. Write a program in C++ to find the number of words in a set of lines using pointers. 28. Write a C++ program to find out the addition of given two matrices using pointers. 29. Write a C++ program to explain the concept of Enumerated Data type. 30. Write a program in C++ to simulate a simple banking system in which the initial balance and

    the rate of interest are read from the keyboard and these values are initialized using the constructor member function. The program consists of the following methods, (a) To initialize the balance and the rate of interest using Constructors, (b) To Make a deposit (c) To With draw an amount from the balance (d) Compound Interest based on the rate of Interest (e) To know the Balance Amount (f) To display the menu options (h) to Destroy the object of class.

    Practical Marks Distribution

    Total for Lab Examination : 30 Marks Record Work : 10 marks Written Exam and Execution : 10 Marks Viva Voce : 10 Marls

    ******

  • 11

    Code No: 42041B

    VIKRAMA SIMHAPURI UNIVERSITY: NELLORE

    Third Year B.Com. (Computer applications) PART – II : Paper – XIII FUNDAMENTALS OF JAVA

    This Elective can be chosen by B.Com Computer Applications

    This elective is offered only to B.Com., Computer Applications only.

    P.P.T.W. 5 (4+1) Marks 100 (70+30) Time 3 Hours Unit-1 Fundamentals of Java

    Introduction to Java - History of Java - Features of Java - Java and Internet, www - Web Browsers - Java Environment - Comparing Java with C++ - OOP concepts supporting Java :- Class, Object, Method , Inheritance, Encapsulation , Abstraction , Polymorphism . Comparison between Compiler and Interpreter.

    Unit -2 Java Developer Kit Java Compiler - Java Interpreter - Java Debugger - Applet Meaning - Applet Viewer - Input and output : BufferReader class, InputStreamReader, and Scanner Class – System out.

    Unit -3 Fundamental Concepts Identifier - Literals :- Integer Literals - Character Literals - Boolean Literals - Floating Point Literals - String Literals - Null Literals - Operators :- Assignment Operator( = ), Arithmetic Operators( + ,- ,*,/,%), Unary Operators( +,-,++,-,!), Equality and Relational Operators( = = ,! = ,>,> = ,, A (EXCLUSIVE OR) , | (INCLUSIVE OR)), Conditional Operator ( & & (AND)), jj (OR)). Variables - Keywords - Data Types

    Unit -4 Programming Constructs If..else statement - Break statement - Switch statement - Return statement - While statement - Do..while statement - For loop - Continue statement.

    Unit -5 Importance of Java Classes - Objects - Fields - Access Controls - Constructors - Interfaces - Exceptions - Interrupted, Runtime, Arithmetic, Null Pointer. Threads - Strings

    Lab: Using Core JAVA. Suggested Readings:

    10. Programming with Java by E.Balagurusamy. 10. Your Brain on Java by Kathy Sierra and Bert Bates . 10. Java Complete Reference by Herbert Schildt. 10. Programming with Java by Bhave 10. Java and Object Oriented Programming Paradigm by Debasish Jana - PHI

    ******

  • 12

    Code No: 42041B

    FUNDAMENTALS OF JAVA LAB

    10. Write a Java program to find the sum of two numbers. 10. Write a Java program to observe the effects of various bitwise operators. 10. Write a Java program to display numbers from 1 to 100. 10. Write a java program to display the stars in a Triangular form. i.e. a single star in first line, 2 stars in second line and so on. 10. Write a Java program to use for - each loop and retrieve the elements from an an-ay and display it. 10. Write a Java program for using switch statement to execute a particular task depending on color value. 10. Write a Java program use break statement to goto end of block 10. Write a Java program using for loop to display the number in descending order 10. Write a Java program to demonstrate nested loops. 10. Write a Java program Accepting and displaying employee details. 10. Write a java program to create ID an-ay and read its elements by using a loop and display them one by one. 10. Write a Java program to find out the transpose of a matrix. 10. Write a Java program how to create strings and how to use some important methods of string class. 10. Write a Java program for splitting a string into pieces when ever a space is found 10. Write a Java program to check the given string is palindrome or not. 10. Write a Java program to demonstrate class and its object. 10. Write a Java program initialize the person class instance variables in demo class. 10. Write a Java program using a default constructor to initialize the instance variables of a person class. 10. Write a Java program to initialize the instance variables of person class using parameterized constructor. 10. Write a Java program to understand the use of methods in a class. 10. Write a Java program to create an interface Mylnter that connects to a database and retrieves data from the database. 10. Write a Java program illustrate how to achieve multiple inheritance using multiple interfaces. 10. Write a Java program to demonstrate the try, catch and finally blocks. 10. Write a Java program to handle the ArithmeticException and ArraylndexOutofflounds Exception 10. Write a Java program that show the compile time error for IOException. 10. Write a Java program that shows the throw clause for throwing the null pointer exception. 10. Write a Java program to find the Thread used by JVM to execute the statements. 10. Write a Java program Showing two threads acting up on a single object. 10. Write a Java program showing execution of multiple tasks with in a single thread. 10. Write a Java program show two threads working simultaneously up on two objects.

    Practical Marks Distribution

    Total for Lab Examination : 30 Marks Record Work : 10 Marks Written Exam and Execution : 10 Marks Viva Voce : 10 Marks

    *******

  • 13

    Code No: 32061

    VIKRAMA SIMHAPURI UNIVERSITY: NELLORE

    Third Year B.Com. (General) PART – II : Paper – XIII DATA BASE MANAGEMENT SYSTEM

    This Elective can be chosen by B.Com General No. of Hours: P.P.W: 5 (3T + 2P) Max. Marks 100 (70+30) 3 Hours UNIT-I:

    Database Systems- Evolution- File Oriented Systems- Database Models database System Components- Database Systems in the Organisation- Data sharing Strategic Database Planning-database and Management Control- Risks and Costs and Databases- Database development.

    UNIT-II:

    Database Design-Principlcs of Conceptual Database Design- Conceptual Data Models- Aggregation- Modeling conceptual Objects vs. Physical Objects- Relational Data Model- Fundamental Concepts- Normalization-Transforming a conceptual model - Relational Model- Relational Database Implementation- Relational Algebra and Calculus.

    UNIT-III:

    SQL-Schema and Table Definition-Data Manipulation- View Definition Graphical Query Language-Client-Server Databases- Defining Database Tables and Server- Server Data Manipulation and Programming- Developing Client Applications

    UNIT-IV:

    Physical Database Systems- Storage Media- Disk Performance Factors- File Organisation- Implementing Logical Relationships- Mapping logical Data Structures to Physical Structures- Secondary Keys Access- Database Administration and Control DBA Functions- DBA Goals- Database Integrity- Database Security- Database Recovery

    UNIT-V:

    Distributed Database Systems-Design.- Query Processing- Data Integrity Recovery- Client/Server Systems- DBMS Selection and Implementation- Information Needs- DBMS Functions and Capabilities- Classifying DBMS feature requirement Evaluation Models- Implementation Issues- Case studies of RDBMS package such as ORACLE/MS-SQL Server.

    Lab Work : Using SQL commands creating Database Schema and Tables and Retrieval of data.

    SUGGESTED READINGS:

    1. Modem Database Management : McFadden 2. An Introduction to Database System : Bipin C.Desai 3. Database Management & Design : Gary Hansen & James Hansesn. 4. Fundamentals of Database System : Elmasri

    *******

  • 14

    Code No: 32061 Practical - III 305 Data Base Management Systems

    PRACTICAL LIST 1. Write an SQL command to create table client master with the following constraints

    a. A CHECK constraint on the client no, so that client no, value must start with C. b. A CHECK constraint on name so that name is entered in uppercase. c. A CHECK constraint on city so that only the cities " BOMBAY ", NEW DELHI. MADRAS,

    CALCUTTA. d. Include the following columns with appropriate data types.

    Address State Balance

    2. Create a View get employee name and his manager name from the following EMP. Emo No Char (6) Emp Name Varchar2(15) Dept-no Char(6) foreign key dept (dept-no) Hire date date Mgr char(16) foreign key Emp (Emp-no) Sal number (6,2)

    3. Write a PL/SQL program to calculate the commission for given basic, to be calculate As follows : If basic is greater than or equal to Rs.6000/- then the commission is 20% of the basic, but basic is greater than or equal to Rs.4000/- and less than then 6000 then the commission is 10% of the basic, otherwise the commission is 5% of the basic. The basic is COM, the corresponding columns are COMM, CNO, BASIC.

    4. The basic table is having the columns of Htno, marks, rank, enterHTno, and marks in the base tables up to 20 records write a PL-SQL program to update the base while allocating rank.

    5. Write a PL/SQL program to evaluate the HRA, INCOME TAX, GROSS SALARY, and NETSALARY? Base table is pay and the corresponding columns ae ENUMBER, ENAME, GCODE, BASIC, DA, HRA, 1TAX, GSAL, NETSAL,

    Input from the base table is Enumber, Ename, Ocode, Basic, Da,

    6. Write a PL/SQL program to process the X class results for the following Conditions? Eng,tel,mat,sc,soc >34 pass total is > is >=360 I class, total is >=300 II class, otherwise III class?

    The base table is Tenth and corresponding fields arc HTNO, ENG.HIN,MAT,SCI,SOC,TOT,RESULT. Input Htno,eng,tel,hin, mat, sci,soc

    7. write a pl/sql program to calculate electrical charges as per the rates given below: industry Rs. 10-00, Agricultural Rs.5-00, Demestic Rs.7-50. The fields of the base table are Cno, Cpmr, Cmr, Rate, Des, Tcharge. The program input; should be Rate, Des, Tcharge. Enter the input Cno, Cpmr, Cmr, in the base table ELEC.

    8. create a master detail form called dept emp which should alow the basic data manipulation operations, insert, update, delete and query on Dept (master) and Emp (detail table). EMP. Emo No Char (6) EmpName Varchar2(15) Dept-no Char(6) foreign key dept (dept-no) Hire date date Mgr char( 16) foreign key Emp (Emp-no) Sal number (6,2) DEPT Deptno char (6) primary key

    ****

  • Code No: 42061

    VIKRAMA SIMHAPURI UNIVERSITY: NELLORE

    Third Year B.Com. (General) PART – II : Paper – XIV ELECTRONIC COMMERCE

    This Elective can be chosen by B.Com General No. of Hours: P.P.W: 5 (3T + 2P) Max. Marks 100 (70+30) 3 Hours UNIT-I:

    Overview of Electronic Commerce Definition of Electronic Commerce- E-Business - Potential Benefits of Electronic Commerce- The Internet and World Wide Web (WWW) as enabler of E-Commerce- Impact if E-Commerce on Business Models- E-Commerce Applications- Market forces influencing highway- Global Information Distribution Networks.

    UNIT-II:

    E-Commerce and WWW- Architecture Framework- Technology behind the Web- Hyper text Pubiishing- Security and the Web- Security protocols and the Web Security issues- Encryption techniques.

    UNIT-III:

    Consumer Oriented E-Commerce Applications- Mercantile Process Models from Consumers and Merchant's Perspective- Electronic Payment Systems- Types of Payment System (Credit Card; E-Cash, Smart- Cards - Digital Payments, etc.,)- Risks in E-Payments- Designing E-Payment Systems.

    UNIT-IV:

    Web-based Marketing- Introduction and Scope of Marketing- Business, Marketing and Information Technology congruence- Advertising and Marketing on the internet- Application of 4 Ps (Product, Price, Place & Promotion) in internet-Marketing Supply Chain Management.

    UNIT-V: Introduction to Tally

    Features of Tally, Starting Tally - Gateway of Tally and Exit from Tally, Company creation in Tally, Saving the company profile, Alteration / deletion of company, Selection of company; Account Groups and Ledgers, Hierarchy of Account groups and Ledgers; Reserved Account Groups; Account Group of Balance Sheet - Account group of Liabilities, Account Groups of Assets, Account Groups of Profit and Loss Account; Account groups of Direct Income and Direct Expenses apart from Sale and Purchases; Indirect Income and Indirect Expenses; Account Masters—Account Group Creation, Account Ledgers Creation; Feeding of Opening Balances, Alteration/Deletion of Account Master Records, Feeding of Closing Slock Value Lab work: Using Microsoft front-page editor and HTML in Designing a Static (simple) Website. Suggested Readings: 1. E-Commerce: A Managerial Perspective : Micheal change, et. A1 2. Electronic Commerce - Security,

    Risk Management & Control : Greenstein & Feinman 3. Frontiers of Electronic Commerce : Ravi Kalakota & A.B. Whinslon 4. E Business & E Commerce Management : Chaffey 5. Simple Tally 9 Ashok K. Nadani

    ****

  • 16

    Code No: 42061

  • 17

    Code No: 42061

    i. Which report will show the financial position of the company ii. Name any 5 Accounting reports that can be displayed or printed in tally.

    Assign- 5: From the following information create Inventory in tally.

    Stock Group S. Category S, Godown UOM Stock Item Name

    Automobiles Automobiles

    Cars 800cc cars Cars godown Nos Maruthi Car 800 cc

    Nos Zen Car 800cc

    1000 cc cars Nos Maruthi Car 1000 cc

    Nos Zen Car l000cc

    Motor Cycles 80 cc M.Cycles M.Cycle godown Nos Hero Motor cycle 80cc

    Nos Yamaha Motor cycle 80cc

    Nos Suzuki Motor cycle 80cc

    Electronics

    T.V.S 21 inch T.V's T.V'S godown Nos L.G T.V21 inch

    Nos Samsung T.V 21 inch

    Nos ONIDA T.V 21 inch

    25 inch T.V's Nos L.G T.V 25 inch

    i Nos Samsung T.V 25 inch

    Nos ONIDA T.V 25 inch

    Computers P-l Computers Nos L.G Computer P-l

    Nos Samsung Computer P-l

    P-Il Computers Nos L.G Computer P-2

    Nos Samsung Computer P-2

    P-4 Computers | Nos L.G Computer P-4

    Nos Samsung Computer P-4

    Floppy's 3.5 Floppy's Floppy's Nos 3.5 Sony Floppy

    Nos 3.5 Imation Floppy

    5.25 Floppy's Nos 5.25 Sony Floppy

    Nos 5.25 Imation Floppy

    6 Goods sold for cash 18,000

    10 Cash paid to Gopal 1,000

    13 Goods purchased for cash 15,000

    16 Goods sold to Narayana, Nellore 4,000

    19 Purchased Furniture for cash 2,000

    20 Received cash from Narayana, Nellore 750

    24 Goods purchased from Sridhar, Hyderabad 2,000

    28 Cash paid to Sridhar, Hyderabad 2,000

    28 Withdrew from S.B.I, Tirupati 1,000

    29 Withdrew from S.B.I, Tirupati for personal use 250

    30 Paid for stationary 200

    31 Paid Rent 500

    31 Discount Received 700

    31 Paid salaries 3,100

  • 18

    Code No: 42061 Assign- 6: From the following ledgers balances prepare the Trial Balance in the books of

    M/s ABC & CO., for the year ended31st March, 2006 in Tally Krishna Capital: Rs.60,000; Krishna Drawings Rs.6000; Purchases Rs.25,000; Sundry debtors Rs.4,000; Sundry creditors Rs.3,000; Bills payable Rs.2,000; Sales Rs.50,000; Carriage Inwards Rs. 1,000; Carriage Outwards Rs.2,000; Wages Rs.5,000; Salaries Rs. 10,000; Advertisement Rs. 1,000; Fuel and Powg| Rs. 1,000; Postage and Telegraph Rs.500; Repairs Rs.500; Discount allowed Rs. 1,000 Bad debts Rs. 1,000; Commission received Rs.4,000; Insurance Premium paid Rs.l000; Taxes (office) Rs. 1,000; General Expenses Rs. 1,000; Depreciation Rs.2,000; Travelling Expenses Rs. 1,000; Furniture & Fittings Rs.2,000; Loose tools Rs.8,000; Plant & Mapbinery Rs.4,000; Land & Buildings Rs.28,000; Bills receivables Rs.3,000; Bills Paybles Rs. 1,000; Railway Sidings Rs. 1,000; Fixed Deposit with State bank of India Rs.6000; Opening Stock Rs.4,000. Assign- 7: From the following Trial balance of M/s AB&CO., prepare the Final Accounts

  • 19

    Code No: 42061 L.G Computers, P-l l00nos @ Rs.l 2,000 each Samsung Computers P-2,25nos @ Rs.14,000 each. 3. Sales Invoice No.003: Sold on credit to M/s King furniture Suppliers, Madanapalli The following items are: 12doz. Easy Chairs @Rs.1, 950 per doz. 6 doz. Folding Chairs @ Rs.1, 650 per doz. 10 Dinning Tables @ Rs.1, 850 each.

    Assign -10: Journalise the following transactions with narration in the books of M/s Srinivas & Co., Ltd as on 1st, April, 2007.

    Advertisement Rs.l 000.

    i. Which report will show the financial position of the company

    ii. Name any 5 Accounting reports that can be displayed or printed in Tally. iii. Name any 3 Inventory Reports that can be displayed or printed in tally.

    Assign -11: Prepare a Trading and P/L A/C for the year ending 31.3.2000 and Balance Sheet, Ratio Analysis, Funds Flow Statement as at that date from the following Trial Balance: Debit Balances: Opening Stock Rs. 16,000; Salaries Rs.l3,000; Drawings Rs.4,000; Carriage Inwards Rs.500; Carriage Outwards Rs. 1,000; Sales Returns Rs.l,000; Loan to Mr.X Rs.l 1,000; Rent Rs.l,300; Purchase Rs.40,000; Debtors Rs.25,000; Bad debts Rs.800; Discount Allowed Rs.600; Furniture Rs.l 1,700; Wages Rs.500; Insurance Premium Rs. 1,200; Cash Rs.700; Andhra Bank Rs.8,000. Total Rs.l, 36,300 Credit Balances: Murali Capital Rs.45,000; Purchase Return Rs.700; Loan from Mr.Y Rs.7,000; Sales Rs.73,100; Creditors Rs.8,000; Reserves for Bad Debts Rs.l,200; Discount Received Rs.300; Rent by Sub-Letting Rs.800. Total Rs.l, 36,300 Adjustments: 1. Closing Stock Rs. 10,500, but the market value of closing stock was Rs.9, 500. 2. Insurance premium prepaid Rs.200. 3. Loan to Mr.X, given at 10% interest p.a and loan taken from Mr.Y carries 9% interest p.a. 4. Depreciation is to be provided @5% on Furniture. 5. Goods worth Rs.500 have been taken by the proprietor for private use. 6. Bad and Doubtful debts are to be provided @ 10%.

    Assign - 12: Calculate the following ratios from the financial statements of Pallavi Limited

    Company.

    1. Current Ratio

    2. Liquid Ratio

    3. Fixed Assets Ratio

    4. Debt Equity Ratio 5. Proprietary Ratio. Balance Sheet of Pallavi Limited as on 31s", March, 2002 Liabilities: Equity Share Capital Rs.l,00,000; 6% Preference share capital Rs.l,00,000; 7% Debentures Rs.40,000; 8% Govt. Loan Rs.20,000; Bank Overdraft Rs.40,000; Creditors Rs.67,000; Proposed Dividends Rs.10,000; Reserves Rs.20,000; Provision for tax Rs. 20,000; Profit and Loss a/c Rs.20,000. Total of Rs.5, 67,000 Assets: Cash in hand Rs.2,000; Andhra Bank Rs.l0,000; Bills Receivable Rs.30,000; Investments (Short Term) Rs.20,000; Debtors Rs.70,000; Stock Rs.40,000; Furniture Rs.30,000; Land, Buildings Rs. 2,20,000; Machinery Rs.l,00,000; Good will Rs.35,000; Preliminary Expenses Rs.10,000. Total of Rs.5,67,000

    ********

    1. Mr. Srinivas brought capital into the Business Rs. 20,000 2. Purchased Furniture for cash Rs.4,000 3. Purchase of goods with cheque (S.B.I) Rs.l 5,000.

    4. Purchase of goods from M Rs.10, 000. 5. Sold goods to N Rs.8, 000.

    6. Cash sales Rs.10,000. 7. Cash paid to M Rs.10, 000.

    8. Salaries paid Rs.2,000, wages Rs.l 000, Rent Rs.500,