B.Sc. Semester-V: Department of Computer Science
B.Sc. Semester-V: Department of Computer Science
B.Sc. Semester-V: Department of Computer Science
2019
Look forward,
learn modern
knowledge, and
do not waste
time in studies
of old subjects of
no values.
B.Sc.
Semester-V
Editor:
Dr. Aasim Zafar
Course Description 3
Content 3
Objectives 4
Outcomes 5
Submission of Deliverables 7
Required Texts/Reading/References 8
Attendance Policy 9
Late Policy 9
#1 JAVA 17
#2 JAVA 18
#3 JAVA 19
#4 JAVA 20
#5 JAVA 21
#6 JAVA 22
#7 JAVA 23
#8 JAVA 25
#9 JAVA, HTML 26
COURSE DESCRIPTION
Application of classroom knowledge and skills in computer science to
solve real-world problems and to develop research and software development
skills.
CONTENT
This course consists of the development of a realistic application,
representative of a typical real-life software system, under semi-professional
working conditions. The students are expected to propose, analyze, design,
develop, test and implement a software system. The student will deliver oral
presentations, progress reports, and a final report.
OBJECTIVES
To help students develop openness to new ideas in computer science,
develop the ability to draw reasonable inferences from observations
and learn to formulate and solve new computer science problems using
analytical and problem-solving skills;
To help students develop the ability to synthesize and integrate
information and ideas, develop the ability to think creatively, develop
the ability to think holistically and develop the ability to distinguish
between facts and opinion;
To help students acquire the necessary competences to build a real-life
software system by completing different software life cycle phases
(like, specification, architecture, design, implementation, validation,
documentation, etc);
To help students develop the ability to work individually and as part of
a team, develop a commitment to accurate work, develop management
skills, improve speaking and writing skills, improve the ability to
follow directions, instructions and plans, and improve the ability to
organize and use time effectively;
OUTCOMES
Upon successful completion of this course students will be able to:
Use modern techniques, skills and tools necessary for computer science
practices relevant to the project they undertake; use techniques in recent
research papers to solve problems (Lifelong Learning).
In the case of a group project, each member of the group must present the
entire project, highlighting their individual contributions toward the project's
success, and a short summary of each individual's contributions should be
included in the final report as well.
SUBMISSION OF DELIVERABLES
Final project report, including all the deliverables, is required to be
submitted strictly as per notified schedule.
Proposal 5%
Presentations 1-4 (must do at least 2) 10 %
Progress Report 1 (Requirements/Specification) 10 %
Progress Report 2 (Planning and Analysis) 10 %
Progress Report 3 (System/Research Design) 10 %
Progress Report 4 (Implementation and Testing) 10 %
Final Deliverables:
Final Presentation 10 %
Technical Report (including final source code) 30 %
Project Poster 5%
REQUIRED TEXTS/READING/REFERENCES
Readings and references are project-specific, and will be determined by
students/project groups, with approval of the teacher. All the resources used
should be properly referenced.
ATTENDANCE POLICY
Attendance is vital for this class, since discussions, regular oral
presentations and progress reports will have a strong impact on the ability to
complete the project. You may be dropped from the course for missing more
than two consecutive scheduled meetings/presentations.
LATE POLICY
Late work will not be accepted. In case of any unavoidable situations,
make requests with the teacher/instructor to reschedule the assigned work/task
on case to case basis, if possible.
JAVA Programming
SIGNATURE
PAGE NO.
OF THE
PROBLEMS WITH DESCRIPTION TEACHER
WITH DATE
1#
1 2#
3#
1#
2 2#
3#
1#
3 2#
3#
Note: The students should use Header and Footer mentioning their roll no. &
name in footer and page no in header.
OBJECTIVES
After completing this Lab assignment, the students should be able to:
LAB INSTRUCTIONS
The students need to submit the solutions of each exercise.
The students need to ensure that each question is assessed and signed by
the Teacher.
All Students are required to complete the assignment before due date.
Late submission would not be accepted.
Cooperate, collaborate and explore for the best individual learning
outcomes but copying is strictly prohibited.
1# Write a Java program that takes three numbers as input to calculate and
print the average of the numbers.
2# Write a Java program to swap two variables.
3# Write a Java program to compute the distance between two points.
1# Write a Java program that takes a number as input and prints its
multiplication table upto 10.
2# Write a Java program to calculate the sum of following series:
1 + 2 + 3 + 4 + .......... + N
3# Write a Java program to take a number, divide it by 2 and print the result
until the number becomes less than 10.
1# Write a Java program to insert 10, 20, 30 .... in an array and display them.
2# Write a Java program to calculate the sum of all the array elements.
1# Create a class FRUIT which has data members color, taste and price. Also
create a method display() which will print values of FRUIT object. Create
three objects of FRUIT class and call their display() methods.
2# Create a class FRUIT which has data members color, taste and price. It has
a method setDetails() which will set the values of color, taste and price.
Also create a method display() which will print values of FRUIT object.
3# In previous question, set the values of using color, taste and price using
Constructor.
1# Create a class Vehicle, write a method cost() in this class. Create two
classes Bus and Train which have their own display() methods and inherit
from Vehicle class. Create objects of Bus and Train class and call cost()
and display() methods.
2# Create class University which has data members- name and ranking.
Create class Faculty that extends University class has data member- name
and method- Details(). Create a new class Department which is derived
from Faculty and has data member- name, chairman and method- Details()
and Display() where Display() method calls Details() methods of both
Faculty and Department class in its body. Create an object of Department
class to Display() method and University ranking.
1# Create class Person (Data Member- name, phone). Create two member
inner classes Address (Data Member- House_No, Street, City, State;
Method- displayAddr()) and DateOfBirth (Data Member- Day,
Month,Year; Method- displayDOB()). Display() is the method of Person
class which will display name, address and date of birth of a Person object.
2# Create class Edible. Within that define two static classes Fruit and
Vegetable. Fruit class will have two methods- fruitDetails() is a static
method and fruitPackaging() is a non-static method. Vegetable class also
has similar methods - vegetableDetails() and vegetablePackaging(). Call all
the four methods from main method.
Name
Train
of the Place Destination Time Fair
No.
Train
Arrival Departure
Image 1
Image 2
Image 3
1 2 3 4
5 6
Image
7 8
9 10 11 12
4# Write an HTML code to develop a Web page having two frames that
divide the Web page into two equal rows and then divide the second row
into two equal columns, then fill each frame with a different background
colour.
5# Write a code in HTML to design a page with two frames. The frame
should remain proportionate even when page is resized.
6# Write the code to develop a Web page, as shown below, using frames:
8# Design a page with a text box called „name‟ and a button with label „Enter.
When you click on the button another page should open, with the message
“Welcome <name>”, where name should be equal to the name entered in
the first page. Set default value of „name‟ text box to Victoria. Add another
button called Reset on click of this button name „text box‟ should be set to
100 default values.
To
Copy
Message
SEND
5# Design a series of three HTML Pages for ABC. COM each called from the
previous one. Accept Name on the first page. When the user clicks on the
enter button, second page should open. The second page should not display
the name but a „Welcome screen with some information about ABC.COM.
When the user will click on the „next‟ button it should display the name
accepted in page 1 on page 3. (Hint: you may use hidden fields)
6# Create a Web page; divide that page into two frames. In one frame create
two links that will display different HTML forms in the other frame.
1# Write the segment of Script that would ask the user if he wants a greeting
message and if he does, display a Gif file called Welcome .gif and display
“Welcome to Netscape Navigator!” in the document window following the
Gif.
7# Create a Web page using two image files, which switch b/w one another as
the mouse pointer moves over the image. Use the On Mouse over and On
Mouse out event handler.
8# Write a JavaScript code to accept radius & display the area of the circle.
1# Use the date function gets Date & set Date to prompt the user for an
integer between 1 – 31 & return day of the week it represents.
5# Create an HTML form that has a number of text boxes. The user fills the
textboxes with data. Write a script that verifies that all textboxes have been
filled. If a text box has been left empty pop up an alert message indicating
the box that has been left empty. When OK button is clicked, set focus to
that specific textbox. If all the textboxes are filled, display thank you.
6# Create an HTML form that inputs employee details and display the same
on the HTML page.
7# Write a program, which prompts the user to enter a sum of two numbers
and display whether the answer is correct or incorrect.
8# The form consists of two multiple choice lists and one single choice list:
a) The first multiple choice list displays the major dishes available.
c) The single choice list displays the miscellaneous (Milkshakes, soft drinks,
softy etc. available)
3# Create a website that divides the Web page into two unequal frames. In
Frame One, there are two links to two different forms. The forms are
validated on submitting and the result is shown at the bottom of the same
page. Use CSS for formatting.
A rollover effect, where an image changes if the user places the mouse
over it.
An animation that occurs in response to the user clicking on an image.
A pull-down menu with each option linking to a specific page.
5# Display the calendar using JAVA SCRIPT code by getting the year from
the user.
1# Create a HTML registration form and to validate the form using java script
code.
2# Create a HTML file to open new window from the current window using
JavaScript.
3# Create an HTML page with 2 combo box populated with month & year, to
display the calendar for the selected month & year from combo box using
javascript.
5# Create external style sheet and using the style sheet in XML file.
6# Create a XSL style sheet to display the data in the xml using HTML table.