Write a program to store 25 numbers in a Single dimension array then display numbers in one column and even or odd Message in another column with appropriate heading as follows:
Number Message
10 Even
12 Even
101 Odd
Write a Program to create a SDA to store 25 numbers. Then display the following data:
We've already tried comparing 3 numbers to see the largest among all, so let's try a more complicated mission where we locate the position of the largest among 5 numbers. There are only 4 possible cases for this mission:
- if the largest digit is the first digit, print "Leftmost"
- if the largest digit is the third digit, print "Middle"
- if the largest digit is the last digit, print "Rightmost"
- if none of the above is correct, print "Unknown"
Write a Java program that ask the user of the number of elements in array and input
elements as much as the number of elements. Print the inputted elements and determine the
sum and average of the array. (You must input 10 elements and varying 3-digit numbers).
Use Spring MVC to do the following:
1.Main page to display two Links
2.Save student exam data
3.Display all the students data
4.Student Exam Data Form would contain the following
5.Basic Student Details and Address with Validations
6.Details of Marks for Five Subjects (All marks subjects should be >= 0)
7.Save all the marks to an arraylist
8.The display Page would list all the students in decreasing order of percentage
Web Application:
Main
- Link to upload student marks
- Display all the student marks
For Link 1 :
Form
Roll Number (*) -> EDYXXXX (Roll Number should start with EDY and XXXX means digits)
First Name (*)
Last Name
Semester (*)
Marks (5 Subject)
All the marks have to be greater than or equal 0
- If validation fails please display error
Submit the form
Store it in any Collection (DB)
Link 2
Display all the marks
table
Student Roll Number | First Name | Last Name | Semester | Total Marks | Percentage Marks
Diplay this in decending order of marksCreate a class Student with the following attributes: name, age and grade.
1. Define a method called inputName(Stringname)that verifies the validity of the name passed as a parameter. The name must contain between 4 to 10 alphabets otherwise the exception IllegalArgumentException that displays the message “The name must contain between 4 to 10 alphabets” is generated.
2. Define a method called inputAge(int age) that verifies the validity of the age passed as a parameter. The age must be between 18 and 26 otherwise the exception IllegalArgumentException that displays the message "The age must be between 18 and 30" is generated.
3. Define a method called inputGrade(double grade) that verifies the validity of the grade passed as a parameter. The grade must be between 0 and 20 otherwise the exception IllegalArgumentException is generated which displays the message "The grade must be between 0 and 20".
Write a program to keep records and perform statistical analysis for a team of players. The information of each Player contains ID, Name, Gender, match scores int[] (size should be total matches played), The program will prompt the user to choose the operation of records from a menu on JFrame as shown below:
============================================
Menu
============================================
1. Add Player record
2. Delete Player record
3. Update Player record
4. View all Players (in JTable on JFrame)
5. Calculate the average of a selected Player’s score.
6. Find Player by ID (display details of player in Jtextarea).
Ask the user to enter his/her choice then perform the desired function.
Note: All records store in a Array List of Players and use JFrame.
You are required to develop a small chatting application where two or more friends can communicate each other through messages.
Create a class Message which has Date d, and message (string). Provide getters/setters, constructors, toString.
Create a class Friend having String name, String contact, email and ArrayList of Messages provide getters/setters, constructors, toString addMessage(Message m) method which will add new message to the list.
Provide following options to the user using JFrame.
1. Login which will help user login to the application.
2. View Friends (Display List of All Friends)
3. View Messages ( This should display all message of a Friend)
4. Send message (This should ask for friend name and message match the friend name and write that message to the array list).
Write a program to keep records and perform statistical analysis for a team of players. The information of each Player contains ID, Name, Gender, match scores int[] (size should be total matches played), The program will prompt the user to choose the operation of records from a menu on JFrame as shown below:
============================================
Menu
============================================
1. Add Player record
2. Delete Player record
3. Update Player record
4. View all Players (in JTable on JFrame)
5. Calculate the average of a selected Player’s score.
6. Find Player by ID (display details of player in Jtextarea).
Ask the user to enter his/her choice then perform the desired function.
Note: All records store in a Array List of Players and use JFrame.
Write a Program that will ask the user to input the
length and width of the rectangle pattern using
“*”.
Enter the length of rectangular pattern: 5
Enter the width of the rectangular pattern: 4
Output:
****
****
****
****
****
Hint: Use Do-while inside a Do-while