student kit mca 4th - scs.dauniv.ac.in kit/mca_iv.pdfweek 3 project integration management ......

22
STUDENT KIT MCA - Forth Semester January-May, 2010 Devi Ahilya Vishwavidyalaya School of Computer Science & IT “We make things happen . . .” Producing world – class IT Professionals Since 1986 www.scs.dauniv.ac.in MISSION OF SCS · To produce world-class professionals who have excellent analytical skills, communication skills, team building spirit and ability to work in cross cultural environment. · To produce international quality IT professionals, who can independently design, develop and implement computer applications. · Professionals who dedicate themselves to mankind. SCHOOL OF COMPUTER SCIENCE & IT DEVI AHILYA VISWAVIDYALAYA Takshashila Campus, Khandwa Road, Indore – 452017 Tel. (0731) – 2470027, 2461548 Fax : (0731) – 2763618 Email: [email protected]

Upload: dangtruc

Post on 08-May-2018

216 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Student kit MCA 4th - scs.dauniv.ac.in Kit/MCA_IV.pdfWeek 3 Project Integration Management ... Connection of JSP and Servlet with different database viz. Oracle, MS-SQL ... Building

STUDENT KIT

MCA - Forth Semester

January-May, 2010

Devi Ahilya Vishwavidyalaya School of Computer Science & IT

“We make things happen . . .”

Producing world – class IT Professionals

Since 1986

www.scs.dauniv.ac.in MISSION OF SCS

· To produce world-class professionals who have excellent analytical skills, communication skills, team building spirit and ability to work in cross cultural environment.

· To produce international quality IT professionals, who can independently design, develop and implement computer applications.

· Professionals who dedicate themselves to mankind.

SCHOOL OF COMPUTER SCIENCE & IT DEVI AHILYA VISWAVIDYALAYA

Takshashila Campus, Khandwa Road, Indore – 452017 Tel. (0731) – 2470027, 2461548 Fax : (0731) – 2763618

Email: [email protected]

Page 2: Student kit MCA 4th - scs.dauniv.ac.in Kit/MCA_IV.pdfWeek 3 Project Integration Management ... Connection of JSP and Servlet with different database viz. Oracle, MS-SQL ... Building

CS 5308 Information Technology Project Management 1. Course title and code: Information Technology Project Management CS 5308 2. Credit hours: Six 3. Program(s) in which the course is offered. : (If general elective available in many programs indicate this rather than list programs) MCA, MSc.(IT), MBA (CM) 4. Name of faculty member responsible for the course: Dr. A.K Ramani, Mr Nitin Uikey 5. Level/year at which this course is offered : II year IV Semester 6. Pre-requisites for this course (if any) Database Management System 7. Co-requisites for this course (if any) 8. Date of approval of the course specification within the institution: Course is approved by BoS and has been discussed within the department. It is introduced since 2003 9. Location if not on main campus : Main Campus

Aim and Objectives

Aim of the Course The aim of the course is to provide students with the knowledge and skills needed to analyze and design any software development project, using different ITPM techniques and tools, and methodologies.

Briefly describe any course development objectives that are being implemented

Information Technology projects are receiving greater attention in IT industry because of poor success rate of IT projects at international level. IT projects are needed in various industries, business and other sectors to make decisions on time. However, in view of poor success rates of IT projects it is very necessary to design and manage IT projects. This course describes and advocates a practical approach to IT Project Management. The course emphasizes on the understanding of practical IT management strategies, methods and tools for implementing project management techniques. It includes IS project goals, developing team plans, and methods to achieve these goals, and measuring progress against a project plan. The focus is on to demonstrate and effectively use the nine IT project management knowledge areas, and five process groups. An understanding of the integrated view of many concepts, skills, tools and techniques involved in ITPM will be presented. The course also includes exposure to tools like, Visible Analyst, Visio Modeller and Micosoft Project etc.

Page 3: Student kit MCA 4th - scs.dauniv.ac.in Kit/MCA_IV.pdfWeek 3 Project Integration Management ... Connection of JSP and Servlet with different database viz. Oracle, MS-SQL ... Building

This is a relatively a new course, focussing on providing skills on ITPM, which every software professional will be carrying out. The feedback from Industry has also shown that the students need to be equipped with knowledge of ITPM.

Course Description DATE TOPIC READING Week 1 Introduction to project management, key elements, need of better

project management, Case Study: Page 1-2 Discussion Questions: Page 18, Q.1-Q.5 Assignment: Page 19, Exercise 1 and 3,

Chapter 1

Week 2 The Project Management Context, Processes, System View, phases, frames of organizations, skills and attributes of good IT manager, process groups of project management Case Study: Page 21-22 Discussion Questions: Page 45, Q.1-Q.7 Assignment: Page 46, Exercise 1 and 4

Chapter 2

Week 2 How to Give a Great Presentation Using PowerPoint for Presentations Discuss group projects, form teams Team formation and team building

Week 3 Project Integration Management, framework, project plan development, IEEE standard, major components, execution and results, change control process, commitment and criticalness of project Case Study: Page 49-50 Discussion Questions: Page 71, Q.1-Q.5 Assignment: Page 72, Exercise 1, 3, 4 and 6

Chapter 3

Week 4 Project Scope Management, strategic planning process and IT project selections, project charter, scope statement and Work Break Down structure, scope verification tools Case Study: Page 75-76 Discussion Questions: Page 103, Q.4-Q.5 Assignment: Page 104, Exercise 3 , Student presentations (Minicase 2, Minicase 3, team building, giving presentations, etc.)

Chapter 4

Week 5 Project Time Management, project schedules, Gantt chart, network diagram, reality checks and people issues. Case Study: Page 109-110 Discussion Questions: Page135 , Q.1,2,5,7,8 Assignment: Page 136 Exercise 2,4 Student presentations (Minicase 4, preventing scope creep, etc.)

Chapter 5

Week 6 Project Time Management, Microsoft Project 2000

Appendix A

Week 4 Group Status Reports Week 7 Time management and Project 2000, continued.

Page 4: Student kit MCA 4th - scs.dauniv.ac.in Kit/MCA_IV.pdfWeek 3 Project Integration Management ... Connection of JSP and Servlet with different database viz. Oracle, MS-SQL ... Building

Student presentations (Minicase 5, PM software, etc.) Week 8 Project Cost Management, principle, concepts, terms, resource

planning, earn value management Case Study: Page 141-142 Discussion Questions: Page 169, Q.1,2,5 Assignment: Page 169, Exercise 3,4 Student presentations (Minicase 6, estimating, earned value, etc.)

IT Project Mgmt. Chapter 6

Week 9 Project Quality Management, Quality and its relation to various aspects of IT projects, quality planning, quality assurance, quality control, quality control tools, Organizational influences, quality maturity models. Case Study: Page 174-175 Discussion Questions: Page 203, Q.5, 7 Assignment: Page 204, Exercise Research on CMM Student presentations (Minicase 7, six sigma,)

Chapter 7

Week 10 Project Human Resource Management, Processes in HRM, people and team effectiveness, staff acquisition, team building and motivation theories Student presentations (Minicase, etc.) Read S Covey, 7 habits and write a 2 page note on this, also write a 2 page note on team building exercise. Case Study: Page 208-209 Discussion Questions: Page237 , Q.1,2,3 Assignment: Page 238, Exercise 3

Chapter 8

Week11 Project Communications Management, major components, elements of communication, information distribution, methods for improving project communication, Case Study: Page 241-242 Discussion Questions: Page 268, Q.1-Q.3 Assignment: Page 269, Exercise 1,2,5 Student presentations Review for midterm

Chapter 9

Week 12 Project Risk Management, what is risk and its tolerances, risk analysis, risk monitoring, good project risk management. Case Study: Page 272-273 Discussion Questions: Page 295 , Q.6,7 Assignment: Page 295, Exercise 1 Student presentations

Chapter 10

Week 13 Project Procurement Management, procurement planning, solicitation, source selection, contract administration Case Study: Page 299-300 Discussion Questions: Page 319 , Q.3,4,5 Assignment: Page 319, Exercise 5 Student presentations

Chapter 11

Week 14 Covey Intro (or other readings)

7 Habits

Page 5: Student kit MCA 4th - scs.dauniv.ac.in Kit/MCA_IV.pdfWeek 3 Project Integration Management ... Connection of JSP and Servlet with different database viz. Oracle, MS-SQL ... Building

Week 15 Group presentations All reports and journals due Review for final exam

Week 16 Final exam Subject Learning Outcomes Description of the knowledge to be acquired (Learning Outcomes)

1. Understands the organism of project management and its importance to improve the success of information technology and other projects.

2. Demonstrates knowledge of project management terms and techniques such as:

The triple constraint of project management

The project management knowledge areas and process group.

Project and software development life cycle

Tools and techniques of project management such as:

Project Selection Methods

Work Breakdown Structures

cost estimation and earned value analysis

Network diagrams and critical path analysis and critical chain scheduling

Motivation theory and team building 3. Applies project management concepts by working on a semester individual and group

projects as team leader or active team member.

4. Uses Microsoft Project 2000 and other software to help plan and manage a project. 5. Learn good project management and the many skills a project manager must have

Shares own examples of good and bad project management

Prepares a journal throughout the course for personal reflection

Uses knowledge and skills developed in this class 6. Studies other texts and articles related to project management

7. Demonstrate written and oral communications skills needed to be a successful project manager.

Carryout a multiphase project as a part of a team

Learning Resources

Required Text(s) . Information Technology Project Management by Kathy Schwalbe, Forth Edition, Course Technology, 2004. Buy a new copy if you want your project 2000

Page 6: Student kit MCA 4th - scs.dauniv.ac.in Kit/MCA_IV.pdfWeek 3 Project Integration Management ... Connection of JSP and Servlet with different database viz. Oracle, MS-SQL ... Building

CD to work. Compulsory for every student. Essential References

1. Cases on Strategic Information Systems: Mehdi Khosrow, Idea Group Publishing 2. Managing IT, B Deewan, Vikas Publishing

3- Recommended Books and Reference Material (Journals, Reports, etc) (Attach List)

O'Connell, F. (2001) How to Run Successful Projects lll: The Silver Bullet. Addison Wesley, ISBN: 0201748061 (This text provides the basis for the study and application of ITPM techniques). CCTA (2002) Managing Successful Projects with PRINCE2. The Stationary Office Books, Cleland, D. (2001) A Guide to the Project Management Body of Knowledge 2000. PMI. ISBN: 0113308914 (These texts include two PM methods that are found in industry, making an knowledgeable evaluation and comparison possible in an IT environment. Phillips, D. and O'Bryan, R. (2003) It Sounded Good When we Started: a Project Manager's Guide to Working With People on Projects. John Wiley and Sons Inc, ISBN: 0471485861 (This text examines the human factors of PM and the role of people in projects). Chatfield, C. (2003) Microsoft Project 2003 Step by Step. Microsoft Press International, ISBN: 0735619557 (This text provides a systematic basic introductory tutorial to a common PM package).

Suggested Reading material is given at the end of every chapter in the the required text. Other useful articles will be given in the class room

Page 7: Student kit MCA 4th - scs.dauniv.ac.in Kit/MCA_IV.pdfWeek 3 Project Integration Management ... Connection of JSP and Servlet with different database viz. Oracle, MS-SQL ... Building

CS 5617 Internet and Web Technology

1. Course title and code: Internet and Web Technology CS 5617 2. Credit hours:6 3. Program(s) in which the course is offered. MCA IV, M.Sc. (CS) IV, M. Sc. (IT), MBA (CM) IV 4. Name of faculty member responsible for the course

Mr. Ajay Tiwari, Mr. Hemant Kumar Mehta

5. Level/year at which this course is offered

IV Semester 6. Pre-requisites for this course (if any) Core Java, OOP concepts, Web Development, JavaScript 7. Co-requisites for this course (if any) None 8. Date of approval of the course specification within the institution None 9. Location if not on main campus None

Aim and Objectives

1. Aim of the Course The aim of the course is to develop skills for web based application development using advance java (JEE) concepts. 2. Briefly describe any course development objectives that are being implemented:

Learn challenges of web-based application development. Learn advanced Java concepts. To learn HTTP, Servlets, JDBC and JSP. To have an idea of the emerging technologies in the Java Enterprise Edition. To learn the concept of design patterns.

Course Description

1 Topics to be Covered Week TOPIC READING

Page 8: Student kit MCA 4th - scs.dauniv.ac.in Kit/MCA_IV.pdfWeek 3 Project Integration Management ... Connection of JSP and Servlet with different database viz. Oracle, MS-SQL ... Building

Week 1

Introduction Dynamic Web Programming, HTML Forms, scripting languages, Introduction to HTTP, web Server and application Servers, Installation of Application servers, Configuration files, Web.xml.

Lecture notes

Week 2

Java Servlet, Servlet Development Process, Deployment Descriptors, The Generic Servlet Lifecycle.

Chap. 5

Week 3

Servlet Packages, Classes, Interfaces, and Methods, Handling Forms with Servlets.

Chap. 5

Week 4

Various methods of Session Handling. Various elements of deployment descriptors.

Chap. 5

Week 5

Java Database Connectivity: various steps in process of connection to the database, Various type of JDBC Driver.

Chap. 6

Week 6

Connection of JSP and Servlet with different database viz. Oracle, MS-SQL Server, MySQL. java.sql Package. Accessing metadata from the database.

Chap. 6 and lecture notes

Week 7

Type of Statement, Connection pooling: multiple users and need of connection pooling.

Chap. 7 and lecture notes

Week 8

JSP Basics: JSP lifecycle, Directives, scripting elements, standard actions, implicit objects. Writing JSPs.

Chap. 3

Week 9

Expression Language (EL), Separating Business Logic and Presentation Logic, Building and using JavaBean.

Chap. 3

Week 10

Session handling in JSP, Types of errors and exceptions handling, Standard Tab Library in JSP, Building Custom Tag Library

Chap. 3

Week 11

JSP Tag Library, MVC Design pattern Chap. 8 and lecture notes

Week 12

Advances in J2EE and Other Web technology Chap. 8 and lecture notes

Subject Learning Outcomes

4. Development of Learning Outcomes in Domains of Learning The course objectives are to: To demonstrate the application of web programming. To design and develop web application using Servlet and JSP. To show the applicability of various J2EE frameworks to the web applications.

Page 9: Student kit MCA 4th - scs.dauniv.ac.in Kit/MCA_IV.pdfWeek 3 Project Integration Management ... Connection of JSP and Servlet with different database viz. Oracle, MS-SQL ... Building

Based upon above objectives the course goals / learning outcomes are defined below: Subject Learning Outcomes

1. Identify the need of dynamic website programming. Understand the concept of Web servers and Application servers and Application of configuration files. Gain the idea of various dynamic web programming technology.

2. Understand the servlet model for the dynamic web programming. Developing and deploying

the basic servlet application. Understand the lifecycle of the servlet and the various classes from servlet package provided in the API.

3. Understand HTML form handling using servlets. Understand the concept of session

handling. To get detail understanding of the various sessions handling techniques. Understand the idea of deployment descriptor and detail about the various elements of deployment descriptor.

4. Understand the need of database programming for dynamic website designing. Develop

programmers using various JDBC driver types and the SQL package from the JDBC API. Also develop programmer to access metadata information.

5. Understand various types of Statement classes available in JDBC. Understand the concept

and applicability of connection pooling.

6. Understand the basics of JSP viz. lifecycle of JSP, various scarping elements of JSP. Developing JSP program. Understand better designing concept of Web application using JavaBeans.

7. To get detail understanding of the various sessions handling techniques. Understand and use

the standard tag library of JSP. Developing the custom Tag Library.

8. Understand the need and concept of Hibernate. Develop the J2EE application using the Hibernate. Understand the concept of MVC design pattern and develop the web application under the MVC design pattern using Struts.

Learning Resources

1. Required Text(s) 1. Kevin Mukhar, Chris Zelenak, James L Weaver, “Beginning Java EE 5: From Novice to Professional” Apress 2.. Essential References:

1. Marty Hall, Larry Brown, “Core Servlets and Java Server Pages”, 2nd edition, Pearson Education 2. JavaDoc for various technologies

Page 10: Student kit MCA 4th - scs.dauniv.ac.in Kit/MCA_IV.pdfWeek 3 Project Integration Management ... Connection of JSP and Servlet with different database viz. Oracle, MS-SQL ... Building

3- Recommended Books and Reference Material (Journals, Reports, etc): 1. S. Allamaraju, “Prefessional Java Server Programming”, Wrox Press 2. G. Franciscus, “Struts Recipes”, Manning Press 3. C. Bauer, G. King, “Hibernate in Action”, Manning Press 4-.Electronic Materials, Web Sites etc www.sun.java.com www.coreservlets.com http://www.javaranch.com 5- Other learning material such as computer-based programs/CD, professional standards/regulations None

Assignment

Topics to be Covered Week TOPIC READING Week 1

Introduction Dynamic Web Programming, HTML Forms, scripting languages, Introduction to HTTP, web Server and application Servers, Installation of Application servers, Configuration files, Web.xml.

Lecture notes

Week 2

Java Servlet, Servlet Development Process, Deployment Descriptors, The Generic Servlet Lifecycle. Lab Assignments:

1. Write a servlet that prints "Hello World" 2. Write a servlet that knows to whom it's saying hello, This servlet must be called from

an HTML page taking user name as input. (Use both get and post method) 3. Write a servlet that counts and displays the number of times it has been accessed since

the last server reboot. 4. Write a servlet that counts the times it has been accessed, the number of instances

created by the server, and the total times all of them have been accessed. 5. Write a servlet that counts and displays the number of times it has been accessed, and

reads an init parameter to know what at what number to begin counting. 6. This servlet counts and displays the number of times it has been accessed, and saves

the count to a file in its destroy() method to make the count persistent. 7. Write a servlet that searches for prime numbers above one quadrillion. The algorithm

it uses couldn't be simpler: it selects odd-numbered candidates and attempts to divide them by every odd integer between 3 and their square root. If none of the integers evenly divides the candidate, it is declared prime. It's disabled to let the server's CPU handle important tasks.

8. Write a servlet that prints the name and value for all of its init parameters. 9. Write a servlet that displays information about its server (The process is called

Snooping).

Chap. 5

Page 11: Student kit MCA 4th - scs.dauniv.ac.in Kit/MCA_IV.pdfWeek 3 Project Integration Management ... Connection of JSP and Servlet with different database viz. Oracle, MS-SQL ... Building

10. Write a servlet that snoops the server's servlet and Java version.

Week 3

Servlet Packages, Classes, Interfaces, and Methods, Handling Forms with Servlets. Lab Assignments:

11. Write a servlet to compute arithmetic operations on numbers and strings as follows:

First val: Enter a name:

Second val: Length:

Result: Add

Subtract

Multiply

Divide Compute Length

Reset

12. Write a servlet that checks the client machine and only allows access if the client appears to be coming from somewhere other than the Terrorist 7 countries. A servlet like this could help restrict the export of strong encryption.

13. Write a servlet that prints its query string and then prints the name and value for all its parameters.

14. Write a servlet that prints the extra path information it receives and the resulting translation to a real path.

15. Write a servlet that serves files by using the getPathTranslated() and getMimeType() methods to return whatever file is given by the extra path information.

16. Write a servlet that prints information about its HTTP request headers. 17. Write a servlet that performs a random redirect, sending a client to a random site

selected from its site list. Depending on the site list, a servlet like this could have many uses. As it stands now, it's just a jump-off point to a selectino of cool servlet sites. With a site list containing advertising images, it can be used to select the next ad banner.

18. Redirections can be used to learn where clients go when they leave your site. Assume you have several pages containing lists of links to other sites. Instead of linking directly to the external site, you can link to a redirecting servlet that can record each time an external link is selected. The HTML looks like this: <a href="/goto/http://www.servlets.com">Servlets.com</a> Write a servlet that can be registered to handle the /goto/* path prefix where it will receive the selected URL as extra path info and redirect the client to that location after making a note in the server log. servlet shows a servlet that uses client pull to display the current time, updated every 10 seconds.

19. Write a servlet that shows a servlet that uses client pull to display the current time, updated every 10 seconds.

20. Write a servlet that redirects requests for one host to another host, giving an explanation to the client before the redirection.

21. Write a servlet that demonstrates session tracking using hidden form fields by displaying the shopping cart for a booksite.

Chap. 5

Page 12: Student kit MCA 4th - scs.dauniv.ac.in Kit/MCA_IV.pdfWeek 3 Project Integration Management ... Connection of JSP and Servlet with different database viz. Oracle, MS-SQL ... Building

Week 4

Various methods of Session Handling. Various elements of deployment descriptors. Lab Assignments:

22. Write a servlet that uses session tracking to count the number of times a client has accessed it.

23. Write a servlet that demonstrates how to programmatically alter the current timeout. On first execution, the current timeout displays the application-wide setting. On second execution, the current timeout displays two hours—because that’s the timeout set during the first execution.

24. Write a servlet that snoops all the information about the current session.

25. Write a servlet that is protected by BASIC authentication as shown in web.xml and tomcat-users.xml. To see the salary information you'll need to login as a "manager" using names and passwords in tomcat-users.xml.

26. Write a servlet that lets a user vote for his favorite food from a combo box or radio buttons (the user must be able to make multiple food selections per request).

Store the favorite foods and the number of votes for each food.

Display all foods and their number of votes in alphabetical order back to the user.

Use an appropriate Collection class or Map class to store the data.

Chap. 5

Week 5

Java Database Connectivity: various steps in process of connection to the database, Various type of JDBC Driver

Chap. 6

Week 6

Connection of JSP and Servlet with different database viz. Oracle, MS-SQL Server, MySQL. java.sql Package. Accessing metadata from the database. Lab Assignments:

27. Write a servlet that establishes a database connection using the values stored within the its sql.properties file having the following contents.

connection.driver=sun.jdbc.odbc.JdbcOdbcDriver connection.url=jdbc:odbc:somedb user=user password=passwd 28. Write a servlet that uses the Oracle JDBC driver to perform a simple query, printing

names and phone numbers for all employees listed in a database table. Here assume that the database contains a table named EMPLOYEES, with at least two fields, NAME and PHONE.

Chap. 6 and lecture notes

Week 7

Type of Statement, Connection pooling: multiple users and need of connection pooling. Chap. 7 and lecture notes

Week 8

JSP Basics: JSP lifecycle, Directives, scripting elements, standard actions, implicit objects.Writing JSPs. Lab Assignments:

Chap. 3

Page 13: Student kit MCA 4th - scs.dauniv.ac.in Kit/MCA_IV.pdfWeek 3 Project Integration Management ... Connection of JSP and Servlet with different database viz. Oracle, MS-SQL ... Building

29. Write a JSP to output the values returned by System.getProperty for various system properties such as java.version, java.home, os.name, user.name, user.home, user.dir

30. Write a JSP to output the entire line, "Hello! The time is now ..." but use a scriptlet for the complete string, including the HTML tags.

31. Write a JSP to output all the values returned by System.getProperties with "<BR>" embedded after each property name and value. Do not output the "<BR>" using the "out" variable.

32. Modify exercise # 28-30 to import the java.util packages. 33. Write a JSP to do either a forward or an include, depending upon a boolean

variable. 34. Write a JSP/HTML set that allows a user to enter the name of a system property, and

then displays the value returned by System.getProperty for that property name (handle errors appropriately.)

35. Make a JSP page that randomly selects a background color for each request. Just choose at random among a small set of predefined colors. Be sure you do not use the JSP-Styles.css style sheet, since it overrides the colors given by <BODY BGCOLOR="...">.

36. Make a JSP page that lets the user supply a request parameter indicating the back-ground color. If no parameter is supplied, a background color should be selected at random.

Week 9

Expression Language (EL), Separating Business Logic and Presentation Logic, Building and using JavaBean. Lab Assignments: 37. Make a JSP page that lets the user supply a request parameter indicating the back-

ground color. If no parameter is supplied, the most recently used background color (from a previous request by any user) should be used.

38. The java.math package has a class called BigInteger that lets you create whole numbers with an arbitrary number of digits. Create a JSP page that makes a large BigInteger from a String you supply as a request parameter, squares it, and prints out the result. Use the online API at http://java.sun.com/j2se/1.5.0/docs/api/ to see the syntaxfor the BigInteger constructor and squaring operations.

39. Make an HTML “signature” block with your name and email address. Include it in two JSP pages.

40. The value of the page attribute of jsp:include is allowed to be a JSP expression. Use this idea to make a JSP page that includes a “good news” page or a “bad news” message at random.

41. Suppose that you have two different JSP pages that do two different things. However, for both pages you want to let the user supply a bgColor attribute to set the background color of the page. Implement this, but use an include mechanism to avoid repeating code. For example:

White background: http://host/path/page1.jsp White background: http://host/path/page2.jsp Red background: http://host/path/page1.jsp?bgColor=RED Yellow background: http://host/path/page2.jsp?bgColor=YELLOW

For testing, I do not care if you write an HTML form to collect the bgColor parameter

Chap. 3

Page 14: Student kit MCA 4th - scs.dauniv.ac.in Kit/MCA_IV.pdfWeek 3 Project Integration Management ... Connection of JSP and Servlet with different database viz. Oracle, MS-SQL ... Building

or if you simply attach it onto the end of the URL “by hand.”

Week 10

Session handling in JSP, Types of errors and exceptions handling, Standard Tab Library in JSP, Building Custom Tag Library Lab Assignments: 42. Make two separate JSP pages that have bulleted lists containing random integers in a

certain range. Avoid repeating code unnecessarily by including a page that defines a randomInt method.

43. Define a class called ColorBean that stores strings representing a foreground color and a background color. Compile and test it separately (i.e., without using a servlet or JSP page). Note: if your tester class (i.e., the one that has “public static void main(String[] args) {...}” in it) is in a package, remember that you have to use the package name when you run it from the command line. That is, you have to do “javac BeanTester.java” and then “java yourPackage.BeanTester”.

44. Make a “color preference” form that collects the user’s preferred foreground and background colors. Send the data to a JSP page that displays some message using those colors. This JSP page should use a default value for any form value that the user fails to supply (but don’t worry about empty strings). So, for example, if the user goes directly to the JSP page (bypassing the form), the JSP page should still work fine. For now, don’t worry about the user sending you whitespace; just handle totally missing values.

45. Redo the color preference example, but if the user fails to supply either of the colors, use whatever value they gave last time. If you have no previous value, use a default. (Hint: this problem is almost exactly the same difficulty as the previous one.)

46. Redo the color preference example, but if the user fails to supply any of the parameters, use whatever color the most recent user gave last time. Why could this give bad results?

47. Write a JSP that takes the user’s name and age from a form. Echo back the name and age along with a message stating the price of movie

tickets. The price is determined by the age passed to the JSP. If the age is greater than 62, the movie ticket price is $7.00. If the user is less than 10 years old, the price is $5.00. For everyone else, the price is $9.50.

48. Write a JSP that will allow a user to enter two values, select a type of mathematical operation to apply against them, and then upon clicking Submit, will display the result of the operation. An example of the default entry form:

49.

Chap. 3

Page 15: Student kit MCA 4th - scs.dauniv.ac.in Kit/MCA_IV.pdfWeek 3 Project Integration Management ... Connection of JSP and Servlet with different database viz. Oracle, MS-SQL ... Building

And the page that displays upon Submit:

A valid code must also have:

● one jsponly - Math.jsp - that submits to itself ● four types of operations - add, subtract, multiply, divide ● display some kind of error if the user attempts to divide by 0

50. Create a database table to store contact information, then write a web application to

manage viewing, adding, and deleting contacts from that table. The view should look similar to:

Some items of note from the view: 1. There is a delete link next to each record which triggers a delete servlet and will delete that record in the database before redirecting back to the view 2. There is an 'Insert a new Contact' link at the bottom of the page that directs the user to ContactsInsert.html The insert page should look similar to:

Page 16: Student kit MCA 4th - scs.dauniv.ac.in Kit/MCA_IV.pdfWeek 3 Project Integration Management ... Connection of JSP and Servlet with different database viz. Oracle, MS-SQL ... Building

An item to note about insert: once the user clicks submit, the form directs to a ContactsInsertServlet.java, which insert a record into the database then redirects to the view. A description of each file needed for this exercise: 1. Write a sql script that creates a Contacts table in derby that holds text values for id, firstName, lastName, phoneNumber, city, state, and zip. Add to the script a couple of INSERT statements so that the table will not be empty. Run your script in Squirrel to confirm it works, and so you have the table on hand for the rest of the exercise. Save the script in the root of the web application as Contacts.sql. 2. ContactsViewServlet.java - displays an html table containing all records in the table. Also displays links to ContactsDeleteServlet.java and ContactsInsert.html. 3. ContactsInsert.html - have text fields for each field in the database. On submit, execution moves to ContactsInsertServlet.java. 4. ContactsInsertServlet.java - uses an INSERT statement to add a record to the database. After the INSERT has been performed, redirect back to ContactsViewServlet.java. 5. ContactsDeleteServlet.java - uses a DELETE statement to records from the database. After the DELETE has been performed, redirect back to ContactsViewServlet.java. 6. web.xml - must have valid references to ContactsViewServlet.java, ContactsInsertServlet.java, and ContactsDeleteServlet.java.

Page 17: Student kit MCA 4th - scs.dauniv.ac.in Kit/MCA_IV.pdfWeek 3 Project Integration Management ... Connection of JSP and Servlet with different database viz. Oracle, MS-SQL ... Building

CS 5701 Artificial Intelligence

1. Course title and code: Artificial Intelligence CS 5701 2. Credit hours: 04 3. Program(s) in which the course is offered. MCA 4. Name of faculty member responsible for the course : Ms. Pritika Bahad 5. Level/year at which this course is offered: IV Semester 6. Pre-requisites for this course : Discrete Mathematics, Data Structures 7. Co-requisites for this course: Computer Programming 8. Date of approval of the course specification within the institution: Since beginning of the programmes 9. Location if not on main campus: Main Campus

Aim and Objectives

1. Aim of the Course:

The course aims to make students learn basic tools and algorithms required to produce AI systems in applications of human like learning and knowledge processing.

2. Objectives: To familiarize students with techniques of knowledge representation, problem

solving, and learning in intelligent-system engineering. To enable students to formulate Artificial Intelligence problems. To enable students to use heuristic techniques to solve the AI problem. To enable students to develop intelligent systems by assembling solutions to

concrete computational problems.

Course Description RK- Rich and Knight (Artificial Intelligence) DWP- DW Patterson (Introduction to AI and Expert Systems) DWPNN- DW Patterson (Artificial Neural Networks)

Page 18: Student kit MCA 4th - scs.dauniv.ac.in Kit/MCA_IV.pdfWeek 3 Project Integration Management ... Connection of JSP and Servlet with different database viz. Oracle, MS-SQL ... Building

DATE TOPICS READINGS

Week 1 Introduction: Intelligence v/s Artificial Intelligence, Knowledge and related issues, Applications of AI. Assignment 1: To characterize any five definitions of AI.

RK Ch 1 DWP Ch1

Week 2 Knowledge Management: Representation, organization, manipulation, acquisitions and maintenance of knowledge. Role of intelligent behavior. Assignment 2: To study any five AI applications.

RK Ch 4 DWP Ch2

Week 3 Knowledge Representation Techniques: Symbolic Approaches, Representation of knowledge using prepositional logic (PL), First Order Predicate Logic (FOPL)

RK Ch 5 DWP Ch 4

Week 4 Conversion to clausal form, Inference Rules, The Resolution principle, non-deductive inference methods. Associative networks and Frame Structures.

RK Ch 1 DWP Ch 4

Week 5 Conceptual Dependencies and Scripts Introduction to LISP and PROLOG. Assignment 3: Formulation and solution of Monkey Banana Problem using LISP / PROLOG

RK Ch 10 DWP Ch 4

Week 6 Search and Control Strategies: Introduction, Classical AI problems: The Eight Puzzle, Traveling Salesman Problem, Uninformed and Informed search techniques.

RK Ch 3 DWP Ch 9

Week 7 Uninformed Search : Breadth-First Search & Depth First Search; Heuristic Search Techniques: Hill Climbing. Assignment 4: Formulation and solution of any two classical AI problems.

RK Ch 3 DWP Ch9

Week 8 Heuristic Search Techniques: Best first search, A* algorithm Case Study: 8-puzzle problem.

RK Ch 3 DWP Ch 9

Week 9 Heuristic Search Techniques: Problem reduction, And/Or graph, AO* algorithm Assignment 5: Designing data structure to implement A* and AO* techniques.

RK Ch 3 DWP Ch 9

Week 10 Heuristic Search Techniques: Constraint Satisfaction, Means-end Analysis. Case studies: Crypto-arithmetic problems, household robot. Assignment 6: Heuristic for solving SEND+MORE=MONEY

RK Ch 3

Week 11 Neural Network Computing: Introduction, basics of ANN, terminology and models of neuron, topology and basic learning laws.

DWPNN Ch1 RK Ch 18

Week 12 Activation and synaptic dynamics, learning methods, stability and convergence in ANN, Functional units of an ANN for pattern recognition. Assignment 7: Study of Perceptron and ADALINE networks.

DWPNN Ch 3 RK Ch 18

Week 13 Expert Systems: Characteristics and elements of an expert system.

RK Ch 20 DWP Ch15

Week 14 Building an expert system using LISP/ PROLOG. RK Ch 20

Page 19: Student kit MCA 4th - scs.dauniv.ac.in Kit/MCA_IV.pdfWeek 3 Project Integration Management ... Connection of JSP and Servlet with different database viz. Oracle, MS-SQL ... Building

Assignment 8: Expert system for time table planning. DWP Ch 3 Week 15

End Semester Exam

Subject Learning Outcomes

Description of the knowledge to be acquired

(a) The student would able to formulate and represent trivial real life problems using available knowledge representation techniques. (b) Using LISP/PROLOG programming the student would be able to model mini expert system. (c) The student will also be able to use the available expert systems. (d) The student would be able to apply the heuristic search techniques to solve some classical computer science problems. (e) The student would also be able to model the problems using ANN.

Learning Resources

1. Required Text(s): Elaine Rich, Kevin Knight, Artificial Intelligence, 2nd edition, McGraw Hill,

1991 Dan W. Patterson, Introduction to Artificial Intelligence and Expert Systems, 1st

edition, Prentice Hall ,1990. Dan W. Patterson, Artificial Neural Networks, 1st edition, Prentice Hall 1998. Elaine Rich, Kevin Knight, Shivshankar B. Nair, Artificial Intelligence,3rd

Edition, McGraw Hill, 2009. 2. Essential References: Artificial Intelligence:

P.H. Winston, Artificial Intelligence, 3rd edition, Addison Wesley, 1992.

3- Recommended Books and Reference Material (Journals, Reports, etc) N. J. Nilsson, Artificial Intelligence: A New Synthesis, Morgan Kaufmann

Publishers, 1998. S.J. Russell & P. Norvig Artificial Intelligence: A Modern Approach Prentice

Hall, 2nd edition, 2002. Ivan Bratko, Prolog Programming for Artificial Intelligence,Addison Wesley;

3rd edition ,2000. 4-.Electronic Materials, Web Sites etc:

http://www.jair.org/ 5- Other learning material such as computer-based programs/CD, professional standards/regulations:

Page 20: Student kit MCA 4th - scs.dauniv.ac.in Kit/MCA_IV.pdfWeek 3 Project Integration Management ... Connection of JSP and Servlet with different database viz. Oracle, MS-SQL ... Building

CS 5309 Object Oriented Analysis and Design 1. Course title and code: Object Oriented Analysis and Design CS 5309

2. Credit hours: 52 3. Program(s) in which the course is offered. : (If general elective available in many programs indicate this rather than list programs) MCA, MBA (CM), M.Sc (IT) –IV 4. Name of faculty member responsible for the course :

Mr. Nitin Uikey, Mr. Chetan Awasthi

5. Level/year at which this course is offered : II year IV Semester 6. Pre-requisites for this course (if any)

Basic Knowledge of Objected Oriented concept and software development. 8. Date of approval of the course specification within the institution: Course is approved by BoS and has been discussed within the department. It is introduced since 2003 9. Location if not on main campus Main Campus

Aim and Objectives

Aim of the Course Upon completion of this course, each student should be able to:Describe the role of analysis and design in software engineering. Develop a richer description of a design using UML diagrams (including sequence diagrams, class diagrams, state charts, and activity diagrams) and other techniques. Specify the architecture of an OO system using UML. Briefly describe any course development objectives that are being implemented. (eg increased use of IT or web based reference material, changes in content as a result of new research in the field)

This course presents an integrated set of techniques for software analysis and design based on object-oriented concepts and the UML notation.

Topics include an introduction to object concepts, fundamentals of an object oriented analysis and design process, use-case analysis, object modeling using behavioral techniques, design patterns, frameworks.

Page 21: Student kit MCA 4th - scs.dauniv.ac.in Kit/MCA_IV.pdfWeek 3 Project Integration Management ... Connection of JSP and Servlet with different database viz. Oracle, MS-SQL ... Building

Class Schedule Week Topic Reading Week 1 Review of object oriented concepts, potential

benefits and drawbacks of object oriented

Ref. book- Object-Oriented analysis & design -----Grady Booch

Week 2 Compare object oriented paradigm with structural/procedural paradigm. Elements of Object model

Chapter -2 Ref. book- Object-Oriented analysis & design -----Grady Booch

Week 3 What is class, how to Identify them, relationship among objects, relationship among classes.

Chapter -3 Ref. book- Object-Oriented analysis & design -----Grady Booch

Week 4 Test-1 UML , Class diagrams – relationships, association, generalization, dependence, constraints

Ref. book- Teach Yourself UML, by Joseph Schmuller, Techmedia

Week 5 Use case diagrams, Object diagrams

Ref. book- Teach Yourself UML, by Joseph Schmuller, Techmedia

Week 6 Case Study Teach Yourself UML, by Joseph Schmuller, Techmedia Week 7 State Machine view- state machine, event, state

transition and composite state. Week 8 Activity view- activity diagram, activities and

other views.

Ref. book- Teach Yourself UML, by Joseph Schmuller, Techmedia

Week 9 Test-2 Interaction view- collaboration, Interaction, sequence diagrams

Ref. book- Teach Yourself UML, by Joseph Schmuller, Techmedia

Week 10

Best practices of software engineering

Ref- PPT Given in Class

Week 11

Introduction to Rational Unified Process Ref- PPT Given in Class

Week 12

Architecture centric process, Use-case driven process.

Ref- PPT Given in Class

Week 13

Case study and minor project

Page 22: Student kit MCA 4th - scs.dauniv.ac.in Kit/MCA_IV.pdfWeek 3 Project Integration Management ... Connection of JSP and Servlet with different database viz. Oracle, MS-SQL ... Building

Subject Learning Outcomes

Development of Learning Outcomes in Domains of Learning

1) Provide a conceptual introduction to Object-Oriented Analysis and Design technique. 2) Comparing Object Oriented with Structured Analysis. 3) Understands and uses inheritance and polymorphism features in problem solving. 4) Introduction to various UML diagrams and different relationship like generalization,

association etc. 5) Understands use case, class, object and state diagram and use it in solving problem. 6) Understands collaboration and interaction diagram 7) Provide an introduction to Best Software Engineering Practices. 8) Understands RUP (Rational Unified Process) Use Case Driven Process.

Learning Resources

1. Required Text(s) The Unified Modelling language Ref. manual by James Rumbaugh, Ivar Jacobson,

Grady booch Object-oriented analysis and design – Grady Booch. Developing software with UML: Bernd Oestereich.

2. Essential References

Fundamentals of object-oriented design in UML, by Meilir Page-Jones. Teach Yourself UML, by Joseph Schmuller, Techmedia.

4-.Electronic Materials, Web Sites etc 5- Other learning material such as computer-based programs/CD, professional standards/regulations Rational Rose.