OOPJ Practical

GUJARAT TECHNOLOGICAL UNIVERSITY 

OBJECT ORIENTED PROGRAMMING USING JAVA (OOPJ)

SUBJECT CODE: 2150704 


B.E. 5th SEMESTER

List of Experiments:

1. Write a program to convert rupees to dollar. 60 rupees=1 dollar. 



2. Write a program that calculate percentage marks of the student if marks of 6 subjects are given. 



3. Write a program to enter two numbers and perform mathematical operations on them. 


Get Code

4. Write a program to find length of string and print second half of the string. 


Get Code

5. Write a program to accept a line and check how many consonants and vowels are there in line. 


Get Code

6. Write a program to count the number of words that start with capital letters. 


Get Code

7. Write a program to find that given number or string is palindrome or not. 


Get Code

8. Create a class which ask the user to enter a sentence, and it should display count of each vowel type in the sentence. The program should continue till user enters a word “quit”. Display the total count of each vowel for all sentences. 


Get Code

9. Write an interactive program to print a string entrered in a pyramid form. For  instance, the string “stream” has to be displayed as follows: 
S                                                                       
S t                                                                    
S t r                                                                 
S t r e                                                               
S t r e a                                                             
S t r e a m 


Get Code

10. Write an interactive program to print a diamond shape. For example, if user enters the number 3, the diamond will be as follows: 
  *                                                                      
 * *                                                                     
* * *                                                                       
 * *                                                                         
  * 


Get Code

11. Create a class called Student. Write a student manager program to manipulate the student information from files by using FileInputStream and FileOutputStream 


Get Code

12. Refine the student manager program to manipulate the student information from files by using the BufferedReader and BufferedWriter 


Get Code

13. Refine the student manager program to manipulate the student information from files by using the DataInputStream and DataOutputStream. Assume suitable data 


Get Code

14. Prepare a class diagram for given group of classes using multiplicity, generalization, association concepts. And add at least 5-7 attributes and 3-5 operations for particular class Page, Shape, Point, Line, Arc, Ellipse, Rectangle, Circle 


Get Answer

15. Prepare a class diagram for given group of classes using multiplicity, generalization, association concepts. And add at least 5-7 attributes and 3-5 operations for particular class. City, Airport, Airline, Pilot, Flight, Plane, Seat, Passenger.


Get Answer

16. Categorize the following relationships into generalization, aggregation or association. 
[A] A country has a capital city 
[B] A dining philosopher uses a fork 
[C] A file is an ordinary file or a directory file 
[D] Files contains records 
[E] A polygon is composed of an ordered set of points 
[F] A drawing object is text, a geometrical object, or a group 
[G] A person uses a computer language on a object 
[H] Modems and keyboards are input/output devices 
[I] Classes may have several attributes 
[J] A person plays for a team in a certain year 
[K] A route connects two cities 
[L] A student takes a course from a professor 


Get Answer

17. Prepare a state diagram for an interactive diagram editor for selecting and dragging objects 


Get Answer

18. Prepare a use case diagram and sequence diagram for a computer email system 


Get Answer

19. Prepare an activity diagram for computing a restaurant bill, there should be charge for each delivered item. The total amount should be subject to tax and service charge of 18% for group of six and more. For smaller groups there should be a blank entry. Any coupons or gift certificates submitted by the customer should be subtracted 


Get Answer

20. Prepare a sequence diagram for issuing a book in the library management system


Get Answer


No comments:

Post a Comment