Community Sites
Create your own community website and start earning today !
It's Free !
 
Communities Members BookmarksPolls Fresher Jobs Funny Pictures MCA Projects New Member FAQ  



My Profile
Active Members
TodayLast 7 Days more...



Awards & Gifts
Online Exams

Fresher Jobs


Our fresher job section is exclusively for fresh graduates! Find jobs for freshers in major Indian cities including Bangalore, Chennai, Hyderabad, Pune or Kochi

Resources


Find educational articles, blogs, discussion threads and other resources.

Colleges


Find details about any college in India or search for courses.

website counter




JNTU 2007-2008 II YEAR I SEM. B. TECH. AME - OBJECT ORIENTED PROGRAMMING LAB


Posted Date: 09 Dec 2007    Resource Type: Articles/Knowledge Sharing    Category: Syllabus

Posted By: Sri       Member Level: Gold
Rating:     Points: 1



2007-08
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY
HYDERABAD
II Year B.Tech. AME I Semester T P C
0 3 2
OBJECT ORIENTED PROGRAMMING LAB
Objectives:
• To make the student learn a object oriented way of solving problems.
• To teach the student to write programs in Java to solve the problems

Recommended Systems/Software Requirements:

• Intel based desktop PC with minimum of 166 MHZ or faster processor with atleast 64 MB RAM and 100 MB free disk space
• JDK Kit. Recommended

Week1
a) Write a Java program that prints all real solutions to the quadratic equation ax2 + bx +c = 0. Read in a, b, c and use the quadratic formula. If the discriminant b2 -4ac is negative, display a message stating that there are no real solutions.
b)The Fibonacci sequence is defined by the following rule:
The fist two values in the sequence are 1 and 1. Every subsequent value is the sum of the two values preceding it. Write a Java program that uses both recursive and non
recursive functions to print the nth value in the Fibonacci sequence.
Week 2
a)Write a Java program that prompts the user for an integer and then prints out all prime numbers up to that. integer.
b)Write a Java program to multiply two given matrices.
c)Write a Java Program that reads a line of integers, and then displays each integer, and the sum of all the integers (Use StringTokenizer class of java.util)
Week 3
a)Write a Java program that checks whether a given string is a palindrome or not.
Ex: MADAM is a palindrome.
b)Write a Java program for sorting a given list of names in ascending order.
c)Write a Java program to make frequency count of words in a given text.
Week 4
a)Write a Java program that reads a file name from the user, then displays information
about whether the file exists, whether the file is readable, whether the file is writable, the type of file and the length of the file in bytes.
b)Write a Java program that reads a file and displays the file on the screen, with a line
number before each line.
c) Write a Java program that displays the number of characters, lines and words in a text file.
Week 5
a)Write a Java program that:
i) Implements stack ADT. ii) Converts infix expression into Postfix form iii) Evaluates the postfix expression
Week 6
a)Develop an applet that displays a simple message.
b)Develop an applet that receives an integer in one text field, and computes its factorial value and returns it in another text field, when the button named “Compute” is clicked.
Week 7
a)Write a Java program that works as a simple calculator. Use a grid layout to arrange
buttons for the digits and for the +, -,*, % operations. Add a text field to display the
result.
Week 8
a)Write a Java program for handling mouse events.
Week 9
a)Write a Java program that creates three threads. First thread displays “Good Morning” every one second, the second thread displays “Hello” every two seconds and the third thread displays “Welcome” every three seconds.
b)Write a Java program that correctly implements producer consumer problem using the concept of inter thread communication.
Week 10
a)Write a program that creates a user interface to perform integer divisions. The user
enters two numbers in the textfields, Num1 and Num2. The division of Num1 and
Num2 is displayed in the Result field when the Divide button is clicked. If Num1 or
Num2 were not an integer, the program would throw a NumberFormatException. If
Num2 were Zero, the program would throw an ArithmeticException Display the
exception in a message dialog box.
Week 11
a)Write a Java program that implements a simple client/server application. The client
sends data to a server. The server receives the data, uses it to produce a result, and
then sends the result back to the client. The client displays the result on the console.
For ex: The data sent from the client is the radius of a circle, and the result produced by the server is the area of the circle. (Use java.net)
Week 12
a)Write a java program that simulates a traffic light. The program lets the user select one of three lights : red, yellow, or green. When a radio button is selected, the light is
turned on, and only one light can be on at a time No light is on when the program
starts.
b)Write a Java program that allows the user to draw lines, rectangles and ovals.
Week 13
a)Write a java program to create an abstract class named Shape that contains an empty method named numberOfSides ( ).Provide three classes named Trapezoid, Triangle and Hexagon such that each one of the classes extends the class Shape. Each one of the classes contains only the method numberOfSides ( ) that shows the number of sides in the given geometrical figures.
b) Suppose that a table named Table.txt is stored in a text file. The first line in the file is the header, and the remaining lines correspond to rows in the table. The elements are seperated by commas. Write a java program to display the table using JTable
component.




Responses

Author: prateek    12 Jan 2008Member Level: Bronze   Points : 1
here is the program for first two questions which i made.


2.txt
Author: prateek    12 Jan 2008Member Level: Bronze   Points : 1
here is the program for first two questions which i made.


2.txt
Author: prateek    12 Jan 2008Member Level: Bronze   Points : 1
for 1st program


1.txt
Feedbacks      
Popular Tags   What are tags ?   Search Tags  
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: JNTU 2007-2008 II YEAR I SEM. B. TECH. AME - ELECTRICAL AND ELECTRONICS ENGINEERING
Previous Resource: JNTU 2007-2008 II YEAR I SEM. B. TECH. AME - ELECTRICAL AND ELECTRONICS ENGINEERING LAB
Return to Discussion Resource Index
Post New Resource
Category: Syllabus


Post resources and earn money!
 
Related Resources



Watch TV Channels
  • Watch Asianet TV online
  • Kairali TV in Internet
  • Surya TV online
  • Amritha TV Channel

  • Contact Us    Privacy Policy    Terms Of Use   

    SpiderWorks Technologies Pvt Ltd. 2006 - 2007 All Rights Reserved.