management education & research institute masters...
TRANSCRIPT
Page 1 of 25
MANAGEMENT EDUCATION & RESEARCH INSTITUTE MASTERS IN COMPUTER APPLICATION
SEMESTER V
BATCH 2012-2015
MCA 301 Linux Programming
COURSE OUTLINE
Course Instructor: Mr. Sumit Chauhan
COURSE OBJECTIVE
Linux Operating system provides an excellent interface between the user and hardware. It is this system
which makes user to efficiently solve his problem without undue dependence on hardware knowledge. The
Linux Operating System plays a very important role during the design, development and execution phases of
application and other software. Thus, knowledge of Operating System principles, general design & functioning,
capabilities and limitations is necessary for efficient problem solving.
System software & utilities such as compilers, editors, assemblers, loaders, linkers, etc. are essential tools necessary for developing application software/packages. Although introduction to these topics have been caused in various subjects earlier still some additional revised is called for this, therefore, has been incorporated in the syllabus.
METHODOLOGY
1. The pedagogy will be lectures & exercises. 2. Audio Visual aids will be used extensively during the course.
EVALUATION
Besides the Semester end- examination, the students will be continuously assessed during the course on the following basis:
1. I Mid Term Examination : 15 marks
2. II Mid Term Examination : 15 marks
3. Internal assessment (Presentations & Assignments) : 10 marks
4. End Semester Examinations : 60 marks
Total : 100 marks
Page 2 of 25
Number of Theory Hours per week: 4 Hrs.
Books Recommended
Primary TextBook 1. Cox K., “Red Hat Linux Administrator’s Guide”, PHI, 2001
2. Richard. Stevens, “UNIX Network Programming”, PHI, 3rd Ed., 2008.
CKA
RS
Secondary TextBook 1. Peterson Richard, “The Complete Reference, Linux”, TMH 2000
2. Sumitabha Das, “Unix Concepts and
Applications”, TMH, 4th Ed., 2009.
PRC
SD
Topic wise Schedule
Topic Book Duration
Linux – The Operating System: Linux history, Linux
features, Linux distributions, Linux‟s
relationship to Unix, Overview of Linux architecture,
Installation, Start up scripts, system processes (an
overview),
[SD], [CKA]
4 Hrs.
Linux Security, The Ext2 and Ext3 File systems :General
Characteristics of, The Ext3 File system, file permissions.
[SD], [CKA] 4 Hrs.
User Management: Types of users, The powers of
Root, managing users (adding and deleting): using the
command line & GUI tools.
[SD], [CKA] 2 Hrs.
Resource Management in Linux: file and directory
management, system calls for files Process
Management,
[PRC]
,[CKA]
4 Hrs.
Signals, IPC: Pipes, FIFOs, System V IPC, Message
Queues, system calls for processes, Memory Management,
library and system calls for memory
[PRC]
,[CKA]
6 Hrs.
Page 3 of 25
Topic Book Duration
Shell Programming: Available shells under Linux (viz.
Bash, TCSH, Korn or so on), different Shell features,
editors, shell commands
[SD] 5 Hrs.
shell scripts: shell variables, environmental variables,
purpose of shell scripts, writing, storing and executing
scripts, Filters- The grep family, advanced filters-sed and
awk.
[SD] 7 Hrs.
Networking in LINUX: Socket Introduction, Elementary
TCP Sockets (Socket Function, Connect Function,
[RS]
5 Hrs.
Bind, Listen, Accept, Fork and Exec), TCP Client server
Example, Elementary UDP Sockets.
[RS]
5 Hrs.
Total no of hours: 42 Hrs.
Page 4 of 25
MANAGEMENT EDUCATION & RESEARCH INSTITUTE
MASTERS IN COMPUTER APPLICATIONS SEMESTER V
BATCH 2012-2015
MCA 305 : Enterprise Computing in Java
COURSE OUTLINE
Course Instructor: Mrs.M. Nagamani
COURSE OBJECTIVE
The objective of this course is , the student will learn a simple unified specification for developing enterprise
applications through the J2EE technology.
METHODOLOGY
1. The pedagogy will be lectures & exercises and also related case study. 2. Audio Visual aids will be used extensively during the course.
EVALUATION
Besides the Semester end- examination, the students will be continuously assessed during the course on the
following basis:
1. 1st Mid Term Examinations : 15 marks
2. 2nd
Mid Term Examinations : 15 marks
1. Internal assessment (Presentations
Assignments) : 10 marks
4. End Semester Examinations : 60 marks
Total : 100 marks
Contd…2..
Page 5 of 25
Number of theory hours perweek : 4 hrs
Number of practical hours perweek :1 hr
Topic Wise Schedule
Detailed Course Outline References No. of Sessions Unit-I
1.Introduction to J2EE and building
J2EE applications, MVC architecture
2. Introduction to servlets and it‟s life
cycle,
Problems with cgi-perl interface,
Generic and http servlet
3. Servlet configuration,
Various session tracking techniques,
Servlet context,
Servlet collaboration
GS
Ch 6
Subramanyam A
Ch 7
Subramanyam A
3hrs
4 hrs
3 hrs
Unit-II
1. JSP Basics and Architecture:
JSP directives, Scripting elements,
standard actions, implicit objects, jsp
design strategies.
2. Struts: Introduction of Struts and its
architecture, advantages and application
of Struts
Ch 10
Subramanyam A
GS
5 hrs
4 hrs
Unit-III
1. EJB fundamentals: Motivation for
EJB, EJB Echo system, J2EE
technologies,
2. Enterprise beans and types,
distributed objects and middleware,
3. Developing EJB components, remote
local and home interface
4. bean class and deployment descriptor
Ed Roman
Ed Roman
Ed Roman
Ed Roman
4 hrs
3 hrs
3 hrs
1 hr
Page 6 of 25
Unit-IV
1.Introducing session beans:
Session beans life time,
Lifecycle of session beans.
2. Stateful session beans , Stateless
session beans.
3. Introducing Entity beans:
Persistence concepts,
Features of entitiy beans ,
Entity context
4. Introduction to JMS & Message
driven beans
Ed Roman
Ed Roman
Ed Roman
Ed Roman
3 hrs
2 hrs
5 hrs
2 hrs
Total Number of Sessions 42 hrs
Text Books
1. Ed Roman, Scott W Ambler, Tyler
Jewell, “Mastering Enterprise Java
Beans”, Wiley, 2nd
Ed., 2005.
2. Govind Sesadri , “Enterprise Java
Computing: Application and
Architectures”, Cambridge University
Publications, 1999.
3. Subrahamanyam Allamaraju, Cedric
Buest, “Professional Java Server
Programming, J2EE, Apress, 1.3 Ed.,
2005.
4.Ivan Bayross and Sharanam Shah, “Java
Server Programming” , Shroff .
5. John Hunt and Chris Loftus, “Guide to
J2EE: Enterprise Java” Springer Verlag
Publications.
Page 7 of 25
MANAGEMENT EDUCATION & RESEARCH INSTITUTE
MASTERS IN COMPUTER APPLICATIONS
SEMESTER V
BATCH 2012-2015
MCA 307 : ADVANCED DATABASE MANAGEMENT SYSTEMS
COURSE OUTLINE
Course Instructor: Mrs.M. Nagamani
COURSE OBJECTIVE
The objective of this course is to provide advanced information about database management system and their
development the students. It also provides the conceptual background necessary to design and develop
distributed database system for real life applications.
METHODOLOGY
1. The pedagogy will be lectures & exercises and also related case study. 2. Audio Visual aids will be used extensively during the course.
EVALUATION
Besides the Semester end- examination, the students will be continuously assessed during the course on the
following basis:
1. 1st Mid Term Examinations : 15 marks
2. 2nd
Mid Term Examinations : 15 marks
2. Internal assessment (Presentations
Assignments) : 10 marks
4. End Semester Examinations : 60 marks
Total : 100 marks
Contd…2..
Page 8 of 25
: 2 :
TEACHING PLAN:
Detailed Course Outline References No. of
Sessions
1. Review of traditional DBMS’s, relational algebra and relational calculus,
design principles, normalization,
transaction and concurrency control,
recovery management.
Ch. 1, 2
Ch. 6,7
Ch. 10
Ch. 13,14
C.J. Date
1
2
2
2
1
2. Design Process: Design process, design evaluation, modeling process, E-R model, and semantic data model, object oriented model, models and mapping normalization and denormalization.
Data warehousing, OLAP and data mining.
Ch.12, 22
C.J. Date
Ch. 16,17
Nawathe
2
2
2
2
3. Architecture: Architecture of SQL server, SQL server and Oracle sever tuning,
SQL server tuning, Oracle server tuning,
OS tuning (Microsoft OS’s).
DB2, SQL Server,
Oracle
Documentation
1
2
3
2
4. Distributed Database Management Systems, Components, levels of data & process distribution, transparency features,
data fragmentation, data replication,
Client Server Systems, Principles, components,
ODBC, ADO, JDBC and JSQL overview.
Ch. 14
Nawathe/
Ch.21 Tewrey
DB2, SQL Server,
Oracle
Documentation
2
1
1
2
2
Total no. of Sessions 32
TEXT BOOKS:
1. C. J. Date, “Introduction to Database Systems”, AWL. 2. J. L. Warrington , “Object Oriented Database Design”, Morgan Kaufman. 3. T. J. Tewrey, “Database Modeling and Design”, Morgan Kaufman.
REFERENCES:
1. DB2, Oracle & SQL Server Documentation. 2. Elmasri, Nawathe, “Fundamentals of Database Systems”,AWL.
Page 9 of 25
MANAGEMENT EDUCATION & RESEARCH INSTITUTE
MASTERS IN COMPUTER APPLICATIONS
SEMESTER V
BATCH 2012-2015
MCA305: MULTIMEDIA TECHNOLOGY
COURSE OUTLINE
Course Instructor: Ms. Deepa Gangwani
Course Objective
It deals with basic parts of multimedia as much as about how to sew these parts together with current technology and
tools.
Methodology The pedagogy will be lectures and assignments
Evaluation
Besides the semester end examination, the students shall be continuously assessed during the semester on the
following basis:
1st Mid Term Examination 15 Marks
2nd Mid Term Examination 15 Marks
Internal Assessment (Attendance/Class Performance/Presentation) 10 Marks
End Semester Examinations 60 Marks
Total 100 Marks
Page 10 of 25
LECTURE PLAN:
S.No Topics References No. of
Sessions
1.
Multimedia definition, uses of multimedia,
CD-ROM and multimedia highway,
Introduction to making multimedia stages of Project, Requirements
to make a good multimedia
Tay Vaughan- Chapter
1,2
Ranjan Parekh- Chapter
1
3
2 Multimedia skills and training, training opportunities in multimedia Tay Vaughan- Chapter 3 1
3
Multimedia hardware-Machintosh and window production
platforms,Hardware peripherals connection and storage devices
Media software basic tools
Tay Vaughan-Chapter-
9,10
Ranjan Parekh- Chapter
1,13
3
4 Making instant multimedia, Multimedia software and authoring
tools
Tay Vaughan- Chapter
11
Ranjan Parekh-Chapter
15
2
5 Multimedia building blocks text. Sound,images, Animation and
video
Tay Vaughan- Chapter
4,5,6,7,8
Ranjan Parekh- Chapter
4,5,6,7,8,9
3
6 Digitization of Audio and Video, Data Compression Techniques Tay Vaughan- Chapter
8,10
Ranjan Parekh- Chapter
10
4
7 Problem Solving lecture 1
8 Multimedia and internet history, internet working connection,
Internet services the www, tools for www-web server, web
browsers
Tay Vaughan- Chapter
12,13
2
Page 11 of 25
9 Web page maker and editor, Plug ins and delivery vehicals,
HTML,VRML
Tay Vaughan- Chapter-
12,13
Ranjan Parekh- Chapter
16
2
10 Multimedia Applications-Media Communication, Media .. ,Digital
Communication & new Media, Interactive Television, digital
Broadcasting, digital radio, Multimedia Confrencing
K.Andleigh and
K.Thakkar Chapter-7
3
11 Assembling & Delivering a Project- Planning & costing, Desingning
& producing, content & talent, Delivering, CD-ROM Technology
Tay Vaughan-
Chapter15,16,17,18
Ranjan Parekh- Chapter
11,15
2
12 Problem Solving Lecture + Revision 2
Total 28
Text:
1. Tay Vaughan, “Multimedia making it work” , TMH, 1999
2. `K.Andleigh and K.Thakkar, “Multimedia system design” PHI, PTR, 2000
Reference:
1. Keyes, “Multimedia Handbook” , TMH,2000.
2. Ralf Steinmetz and Klara Naharstedt, “Multimedia Computing, Communication & application”v, Pearson
2001
3. Steve Rimmer, “`Advanced Multimedia Programming" ,MHI 2000
Page 12 of 25
MANAGEMENT EDUCATION & RESEARCH INSTITUTE
MASTER IN COMPUTER APPLICATION (MCA)
Course Code: MCA 329 LTC
SEMESTER-V
BATCH: 2012-2015
Organizational Behavior & Management Principles 3 1 4
COURSE OUTLINE
Course Instructor – Ms.Maitri OBJECTIVE: Effective management of Human Resources is one of the prerequisites of a successful organization, especially in the present day context of an evolving changing and competitive environment. Organizational effectiveness depends largely on its ability to manage the human behavior. A proper understanding of organizational dynamics and the various management concepts is essential for every manager. The objective of this paper is to provide understanding to the participants in understanding, predicting, and managing people at workplace through motivation, leadership, culture, performance management, career planning & development and stress management. Methodology:- The pedagogy will be Lectures, Case Studies, Role-plays and Group Activities.
EVALUATION
Besides the Semester end- examination, the students will be continuously assessed during the course on the
following basis:
1. 1st Mid Term Examinations : 15 marks
2. 2nd
Mid Term Examinations : 15 marks
3 Internal assessment (Presentations,
Assignments, Quizzes) : 10 marks
4. End Semester Examinations : 60 marks Total : 100 marks
Page 13 of 25
Teaching Plan
Course Contents References Number of Sessions
UNIT – I Introduction to OB and Management Principles Conceptual Framework; Challenges and Opportunities for OB ;Managerial Implications Evolution of Management Principles ; Scientific Management Theories ; Taylor and Scientific Management, Fayol’s Administrative Management, Bureaucracy, Hawthorne Experiments and Human Relations, Social System Approach ; Management Vs. Administration, Management Skills, Levels of Management, Characteristics of Quality Managers. Evolution of Management: Early contributions. (REPEATED) 2 Article Review Presentations UNIT 2
ORGB-Nelson Quick Khdelwal Ch: 1 & 2 Management Process & Organizational Behaviour-T.N Chhabra ch 11
Management –JS Chandan Ch :2 Management Process & Organizational Behaviour-T.N Chhabra ch 3
Management Process & Organizational Behaviour-T.N Chhabra ch 1 & 2
2
2
2
2
UNIT 3 Organizational structure & Design, Organizational Designs; Emerging Design Options Different Organizational Structures;
Management Process & Organizational Behaviour-T.N Chhabra ch 28,29
Management Process
1
Page 14 of 25
Organizational Culture (creation and sustenance of cultures), Importance of Culture; Managing Culture; High performance culture, Learning organizations,Orgnaizational climate, Total Quality Management, Techniques of TQM, Re-engineering,Empowerment, Benchmarking, Downsizing, Controlling: Concept, Types of Control, Methods:Pre-control: Concurrent Control: Post-control, An Integrated Control System,(REPEATED) Model for Managing Change, Forces for Change, resistance to change,Management of resistance. Case 1 : Case of Infosys (Learning Organisation) ICMR-LDEN003- ECCH-402-017-1 Case 2 : Case of Google culture. Case 3: Article : Louis Gerstner The Man Who Turned IBM Around’ ICMR LDEN007,ECCH-803-018-1 (2003). Case 4 : Inside Intel Inside HBS-9-502-083 (October 2009).
& Organizational Behaviour-T.N Chhabra ch 31
Management -Stoner
Management Process & Organizational Behaviour-T.N Chhabra ch 8
Management Process & Organizational Behaviour-T.N Chhabra ch 23
2
1
1
1
1
1
Page 15 of 25
UNIT 4 Individual Determinants of organizational, Behaviours; Motivation, Motivation and Performance, Theories Of Motivation, Approaches for Improving Motivation, Pay and Job Performance, Quality of Work Life, Morale Building, Performance Appraisal, Job Anxiety & Stress, Analysing, Interpersonal relations, Group Dynamics, Management of Organizational Conflicts,
Management of Change,(REPEATED)
Leadership Styles & Influence Ethics and
leadership.
Case1 : Apple Inc. HBS (February 29, 2008) Yoggie David B. Sturd Michael ; N9-708-480
Management Process & Organizational Behaviour-T.N Chhabra ch 12 Management Process & Organizational Behaviour-T.N Chhabra ch 17
Management Process & Organizational Behaviour-T.N Chhabra ch 18
Management Process & Organizational Behaviour-T.N Chhabra ch 19
Management Process & Organizational Behaviour-T.N Chhabra ch 20 Management Process & Organizational Behaviour-T.N Chhabra ch 22
Management Process & Organizational Behaviour-T.N Chhabra ch 24,32
1
1
1
1
1
1
1
1
TOTAL NO. OF SESSIONS 32
Page 16 of 25
Text Books: 1. Stephen P. Robbins, David & Decenzo, “Fundamentals of Management”, Pearson Education, 9th Ed. , 2008. 2. Singh & Chabra, “Organization Theory & Behavior”, Educational & Technical Publisher, 2005. 3. T.N. Chhabra, R. K. Chopra and Archana Despande, “Leading Issues in Management & Organizational Behavior (Text & Cases)”, Sun India Publications, 2009. 4. Prasad L. M, “Principles of Organizational Behavior and Management”, 2001. 5. Robbins, S. P., Judge, T. A. and Sanghi. S, “Organizational Behavior”, Pearson, 2009.
Reference Books: 1. Stoner, et. al., “Management”, PHI, 6th Ed., 2002. 2. J. S. Chandan, “Organizational Behavior”, Vikas Publishing House, 2004. 3. Joseph W. Weiss, “Organizational Behavior & Change, Managing Diversity, Cross- Cultural Dynamics & Ethics”, Vikas Publishing House, 2nd Ed. 2001. 4. Richard Pettinger, “Introduction to Management”, Palgrave McMillan , 3rd Ed., 2002. 5. Udai Pareek, “Understanding Organizational Behavior”, Oxford University Press 1st Ed., 2004. 6. Fred Luthans, “Organizational Behavior,” McGraw Hill International Edition, 9th Ed., 2002. 7. Kavita Singh, “Organization Behavior Text and Cases”, Pearson, 2010. 83 Management Magazines & Journals
Effective Executive by ICFAI press Management Review Harvard Business Review Indian Management by AIMA Human Capital
Page 17 of 25
List of Practicals
MCA – V
MCA-301 LINUX PROGRAMMING
Set-I
1. Write a shell script using ‘case’ statement. This offers following choices to the user
i) sort file contents in ascending order.
ii) count the no. of lines
iii) converts the contents into capital letters iv) Exit According to the user’s choice, ask the file name and perform the desired action.
2. Write a script which takes text files as command-line argument and converts all the lowercase letters to
uppercase, and then stores the results in a file of the same name but with a ‘none’ extension.
3. Write a script which takes text files as command-line argument and converts all the uppercase letters to
lowercase, and then stores the results in a file of the same name but with a “low” extension.
4. Assume you have a file of student’s result with name “mark.text” having information in sequence as Name, Roll
No., Subject1, subject2, subject3 and total marks i.e. total 6 columns. Write a gawk script to store Name and
total marks in another file with name “result”.
5. Write a shell script using ‘Case’ statement. Which offers following choices to the user
a. display file contents
b. count the no. of lines
c. converts the contents into capital letters
d. exit
According to the user’s choice, ask the file name and performs the desired action.
6. Take the input from the user & report whether it is file or a directory or something else.
7. Write a script which reads your name, surname & year of birth as command line arguments and gives the output
like.
My name is : ………………
My Surname is : ………………
My YOD is : ………………
8. Write a script that takes a no. ‘n’ & a word as command line input. Then it prints the word ‘n’ times.
9. Write a program to sort a list of N integers.
10. Write a script which displays the options as follows
Page 18 of 25
i) Display time
ii) Display day, month & year
iii) Display day of week
According to user’s choice it displays the required output.
11. Write a shell program to print the factorial of an integer.
12. Write a shell program to print the Fibonacci series.
13. Write a shell program to construct a multiplication table from 1 to 10.
14. Write a shell program to print the reverse of a number.
15. Write a shell program to find out the HCF of 2 numbers.
16. Write a shell program to display the table of a number.
17. Write a gawk program to generate a bill of the goods that you have purchased from a shop.
18. Assume that you have a file of student’s result with name “mark.text” having information in sequence as Name,
Roll No., Subject1, subject2, subject3 and total marks i.e. total 6 columns. Write a gawk script to search the
name ABCD and show all the information about that student.
19. Assume you have a file of student’s info with name “Stu_info “ having information in sequence as Name,
Father’s name, Address, City, Pin, Telephone, Email address i.e. total 7 columns. Write a gawk script to search
the name ABCD and EFGH, show telephone no. of ABCD and address of EFGH.
20. Assume you have a file of student’s info with name “Stu_info “ having information in sequence as Name,
Father’s name, Address, City, Pin, Telephone, Email address i.e. total 7 columns. Write a gawk script to search
compare the Name = ABCD and show all the information.
21. Assume you have a file of student’s result with name “mark.text” having information in sequence as Name, Roll
No., Subject1, subject2, subject3 i.e. total 5 columns. Write a gawk script to search the name ABCD and show all
the total of its marks.
Set-II
1 Script to send a message "Good Morning/Afternoon/ Evening to all the users who are currently logged
in.
2 Accept a string on command line. If it represents a file then show contents, if it is a directory show directory
listing else display error message
3 Check if file name provided as a command line argument represents the regular file, directory, character
special file, block special file, symbolic link, pipe and socket.
Page 19 of 25
4 Assuming you have a file, containing roll no, name, MSub1, MSub2, MSub3. Display the names and
total marks sorted in reverse order of marks.
5 List all the hard links to a file whose name is provided as command line parameter.
6 Generate a user wise report of total number of files and bytes occupied by various users in a directory whose path is entered by user.
7 List the groups to which a user belongs and interactively let him/her login using one of those group accounts. Give appropriate message when user enters invalid data.
8 Write a shell script which renames all .txt file as .text files in the current directory.
9 Write a shell script to take a process id from user and either kill it or change its priority with nice command show the proper message for priority.
10 Assuming date as 15 -02-2011 write a program to display the date in the following manner:
February 15,two zero one one ( Tuseday) ( hint: use +%b,d,y,a etc). 11 Write a shell program to wish “ Good Morning”, “Good Afternoon”, ”Good Evening ” using system date.
12 Write a shell script which takes a name as parameter and returns the PID(s) of processes with that name.
13 Write a shell program which takes a file name as parameter and check whether the current user has write access on it or not.
14 Write a shell program to evaluates an arithmetic expression like: ./calculator 10 + 20 ,where 10 is op1 and + is operator and 20 is op2. Using command line argument and operator may be (+,-,*,/ )
15 Write a C program to create a TCP Socket.
16 Write a C program to create a socket and implement bind, listen and accept functions.
17 Write a C program to implement TCP client server.
18 Write a C program to create a UDP Socket.
Page 20 of 25
MANAGEMENT EDUCATION & RESEARCH INSTITUTE
MASTERS IN COMPUTER APPLICATIONS
SEMESTER V
MCA 303 : SOFTWARE TESTING
PRACTICAL LIST
Course Instructor: Mrs.Nidhi Pruthi
1) A system manages the personal information data of the employees of an organization that includes their Name,DOB,DOJ, salary, designation. The following are the features to be tested for the system:
a) The name must have at least three characters and maximum 20 characters. b) Age of any employee must not be less than 18 years and more than 50 years. c) No employee can serve the organization for more than 25 years.
Perform Black Box (BVA)Testing on these Features.
2) A system manages the personal information data of the employees of an organization that includes their Name,DOB,DOJ, salary, designation. The following are the features to be tested for the system:
d) The name must have at least three characters and maximum 20 characters. e) Age of any employee must not be less than 18 years and more than 50 years. f) No employee can serve the organization for more than 25 years. On the above data, perform
Equivalence Testing.
3) Consider a simple program to classify a triangle. Its input is a triple of positive integers(say a,b and c) and data type for input parameters ensures that these will be integers greater than zero and less than or equal to 200. The program output may be one of the following words: [Scalane,Isosceles,Equilateral: Not a Triangle]
Design the Decision Table accordingly.
4) Make a boundary value test suite for the system meeting the following conditions: a) 30<=X<=60 || 130<=X<=160 b) 50<=Y<=100
5) Find out the smallest of the three numbers. Write a program and design its test cases using slice based testing.
Page 21 of 25
6) Of the given program, find the cyclomatic complexity,draw the flow diagram and find the independent paths.
Public double calculate(int amount)
{
1-double rushcharge=0;
1-if(nextday.equals(“yes”))
2-rushcharge=14.50
3-double tax=amount*.0725;
3-if(amount>=1000)
4- shipcharge=amount*.06+rushcharge;
5-else if(amount>=200)
6- shipcharge=amount*.08+rushcharge;
7-else if(amount>=100)
8- shipcharge=13.25+rushcharge;
9-else if(amount>=50)
10- shipcharge=9.95+rushcharge;
11-else if(amount>=25)
12- shipcharge=7.25+rushcharge;
else
13-shipcharge=5.25+rushcharge;
14-total=amount+tax+shipcharge
14-return total
}//end of calculate
7) Perform White Box Testing on the given function: Void sortArray(int arr[],int n){
A: for(int i=START;i<n;i++){
B: for(int j=i+1;j<n;j++){
C: if(arr[i]<arr[j]);
D: int temp=arr[j];
E:arr[j]=arr[i];
F:arr[i]=temp;
G:}
H:}
I:}
J:}
8) In an income tax processing system, if the annual taxable salary of a person is less than equal to Rs.60000/- and expenses donot exceed Rs.30000, 10% income tax is charged. If the salary is greater than Rs.60000/- and less equal to Rs.200000/- and expenses dont exceed Rs.40000/-, tax
of 20% is charged.
For salary greater than Rs.200000, 5% additional surcharge is also charged. If expenses are greater than
Rs.40000, surcharge is 8%. Design the test cases for problem using cause effect graph technique.
Page 22 of 25
MANAGEMENT EDUCATION AND RESEARCH INSTITUTE
LIST OF PRACTICALS FOR Enterprise computing in java lab(MCA 355) FOR SESSION August 2013
Units Concepts Practical
UNIT I Java Servlet Write hello world in servlet
UNIT I Java Servlet Displaying Date in Servlet
UNIT I Java Servlet Snooping the server
UNIT I Java Servlet Getting Init Parameter Names
UNIT I Java Servlet Session Tracking
UNIT I Java Servlet To Determine whether the
Session is New or Old
UNIT I Java Servlet Display session value Using
Servlet
UNIT I Java Servlet Get Session ID
UNIT I Java Servlet Implement
ServletContextListener
example
UNIT I Java Servlet Implement
HttpSessionListener example
UNIT I Java Servlet Show Parameter In Servlet
UNIT I Java Servlet Get Parameter Name From
Servlet Request
UNIT I Java Servlet Use of Cookie in Servlet
UNIT II JSP Writing the Date JSP
UNIT II JSP Reading the Request
Information
UNIT II JSP Retrieving the data posted to
a JSP file from HTML file
UNIT II JSP Accessing database from JSP
UNIT II JSP Implement JavaScript with
JSP
UNIT II JSP Working with JSP Sessions
UNIT II JSP JSP Cookies Example
UNIT II
JSP Cookie Example to Store and
Show only 10 values
UNIT II
JSP Disabling Session in JSP
UNIT II JSP & Servlet Send Email From JSP &
Servlet
UNIT III
EJB A Message-Driven Bean
Example
UNIT III
EJB A Java Persistence Example
Page 23 of 25
Enterprise Java Program List
UNIT III
EJB Implement EJB remote
interface
UNIT III EJB Implement EJB message
driven bean
UNIT III EJB Implement EJB Interfaces
UNIT III EJB Implement EJB deployment
descriptor
UNIT III EJB Implement EJB Hello world
example
UNIT III EJB Implement Deleting a Row
from SQL Table Using EJB
UNIT III EJB Implement Accessing
Database using EJB
JSP,SERVLET,java Script Website design
Page 24 of 25
LIST OF EXPERIMENTS – SQL SERVER 2008 Employee database
employee (employee-name, street, city)
works (employee-name, company-name, salary)
company (company-name, city)
manages (employee-name, manager-name)
Consider the employee database given above, where the primary keys are underlined.
A.Write SQL queries for the following:
A. Create the above database and insert appropriate data.
B. Create a trigger after every update on „works‟.
C. Find the names of all employees who work for First Bank Corporation.
D. Find the names and cities of residence of all employees who work for First Bank Corporation.
E. Find the names, street addresses, and cities of residence of all employees who work for First Bank
Corporation and earn more than $10,000.
F. Find all employees in the database who live in the same cities as the companies for which they work.
G. Find all employees in the database who live in the same cities and on the same streets as do their
managers.
H. Find all employees in the database who do not work for First Bank Corporation.
I. Find all employees in the database who earn more than each employee of Small Bank Corporation.
J. Assume that the companies may be located in several cities. Find all companies located in every city in
which Small Bank Corporation is located.
K. Find all employees who earn more than the average salary of all employees of their company.
L. Find the company that has the most employees.
M. Find the company that has the smallest payroll.
N. Find those companies whose employees earn a higher salary, on average, than the average salary at
First Bank Corporation.
O. Modify the database so that Jones now lives in Newtown.
P. Give all employees of First Bank Corporation a 10 percent raise.
Q. Give all managers of First Bank Corporation a 10 percent raise.
R. Give all managers of First Bank Corporation a 10 percent raise unless the salary becomes greater than
$100,000; in such cases, give only a 3 percent raise.
S. Delete all tuples in the works relation for employees of Small Bank Corporation.
T. Using SQL, define a view consisting of manager-name and the average salary of all employees who
work for that manager.
B.Write query to Insert Multiple Records Using One Insert Statement (Row Constructor).
C.Write a UDF – Function to Display Current Week Date and Day – Weekly Calendar.
D.Write a query to Insert Data From One Table to Another Table (using INSERT INTO SELECT and
SELECT INTO TABLE)
E.SELECT TOP n number of rows in SQL Server Management Studio (SSMS).
F.DATABASE TUNING ADVISOR - Tune a workload Transact-SQL script file,view tuning
recommendations and reports.
G.SQLServer Profiler - Creating a Profiler trace template and retrieving the trace file through T-SQL.
Page 25 of 25
MANAGEMENT EDUCATION & RESEARCH INSTITUTE
MASTERS IN COMPUTER APPLICATIONS
SEMESTER V
Multimedia Practical List
Create the following using Blender software.
1. A Glass
2. A cup
3. A chair & a table.
4. A coca cola or a Pepsi can
5. Set of coffee mugs
6. Set of glasses on the table.
7. Moving ball
8. Stick man
9. Walking man
10. Some more animations……