You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-4Lines changed: 10 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -101,13 +101,15 @@ This repository contains all the java programming assignments for the CSE1007 la
101
101
*[MyServer.java](https://github.com/jacobjohn2016/Java-Programming/blob/master/RMI/src/Multiples/MyServer.java): Create and run server application
102
102
*[MyClient.java](https://github.com/jacobjohn2016/Java-Programming/blob/master/RMI/src/Multiples/MyClient.java): Create and run client application
103
103
> Eg., Develop an RMI application to invoke a remote method that takes two numbers and returns true if one number is an exact multiple of the other and false otherwise.
@@ -120,9 +122,11 @@ This repository contains all the java programming assignments for the CSE1007 la
120
122
## Assignment 6
121
123
1. Write a program to demonstrate the knowledge of students in Servlet programming.
122
124
>Eg., Assume two cookies are created whenever a VIT student visits the VIT webpage-one for his/her name and the other for his campus. For subsequent visits, he/she should be greeted with the message similar to the one below.
* [web.xml](https://github.com/jacobjohn2016/Java-Programming/blob/master/Servlet-Programming/WebContent/WEB-INF/web.xml): File for mapping URL
128
132
* [Hello.html](https://github.com/jacobjohn2016/Java-Programming/blob/master/Servlet-Programming/WebContent/Hello.html): Initial html landing page. **Run this file on the server**.
@@ -158,6 +162,7 @@ This repository contains all the java programming assignments for the CSE1007 la
158
162
Store these values in an array. Find the average rainfall and display the count of the number of months in which the rainfall is more than the average. [Ans](https://github.com/jacobjohn2016/Java-Programming/blob/master/extra-assignment/src/RainMain.java)
6. Write a program to print the following patterns using loops. [Ans](https://github.com/jacobjohn2016/Java-Programming/blob/master/extra-assignment/src/Pattern.java)
165
+
161
166
```
162
167
1 2 3 4 5 6 7
163
168
2 3 4 5 6 7
@@ -173,10 +178,11 @@ Store these values in an array. Find the average rainfall and display the count
173
178
2 3 4 5 6 7
174
179
1 2 3 4 5 6 7
175
180
```
176
-
7. Write a program called NumberGuess to play the number guessing game. The program shall generate a random number between 0 and 99. The player inputs his/her guess and the program shall response with "Too higher", "Too lower" or "Congratulations! You got it.." accordingly. [Ans](https://github.com/jacobjohn2016/Java-Programming/blob/master/extra-assignment/src/NumberGuess.java)
177
-
8. Create a class Film with string objects which stores name, language and lead_actor and category (action/drama/fiction/comedy). Also include an integer data member that stores the duration of the film. Include parameterized constructor, default constructor and accessory functions to film class. Film objects can be initialized either using a constructor or accessor functions. [Ans](https://github.com/jacobjohn2016/Java-Programming/blob/master/extra-assignment/src/FilmMain.java)
178
-
9. Demonstrating multiple inheritance in Java. [Source](https://www.geeksforgeeks.org/java-and-multiple-inheritance/) [Ans](https://github.com/jacobjohn2016/Java-Programming/blob/master/extra-assignment/src/MultipleInheritance.java)
179
-
10. Write a program to demonstrate the knowledge of students in advanced concepts of Java string handling. [Ans](https://github.com/jacobjohn2016/Java-Programming/blob/master/extra-assignment/src/Genes.java)
181
+
182
+
1. Write a program called NumberGuess to play the number guessing game. The program shall generate a random number between 0 and 99. The player inputs his/her guess and the program shall response with "Too higher", "Too lower" or "Congratulations! You got it.." accordingly. [Ans](https://github.com/jacobjohn2016/Java-Programming/blob/master/extra-assignment/src/NumberGuess.java)
183
+
2. Create a class Film with string objects which stores name, language and lead_actor and category (action/drama/fiction/comedy). Also include an integer data member that stores the duration of the film. Include parameterized constructor, default constructor and accessory functions to film class. Film objects can be initialized either using a constructor or accessor functions. [Ans](https://github.com/jacobjohn2016/Java-Programming/blob/master/extra-assignment/src/FilmMain.java)
184
+
3. Demonstrating multiple inheritance in Java. [Source](https://www.geeksforgeeks.org/java-and-multiple-inheritance/) [Ans](https://github.com/jacobjohn2016/Java-Programming/blob/master/extra-assignment/src/MultipleInheritance.java)
185
+
4. Write a program to demonstrate the knowledge of students in advanced concepts of Java string handling. [Ans](https://github.com/jacobjohn2016/Java-Programming/blob/master/extra-assignment/src/Genes.java)
180
186
>Eg., (Bioinformatics: finding genes) Biologists use a sequence of letters A, C, T, and G to model a genome. A gene is a substring of a genome that starts after a triplet ATG and ends before a triplet *TAG, TAA, or TGA*. Furthermore, the length of a gene string is a multiple of 3 and the gene does not contain any of the triplets ATG, TAG, TAA, and TGA. Write a program that prompts the user to enter a genome and displays all genes in the genome. If no gene is found in the input sequence, displays no gene. Here are the sample runs: done
181
187
```
182
188
Enter a genome string: TTATGTTTTAAGGATGGGGCGTTAGTT
0 commit comments