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).
Create 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
Write a program to create a SDA to store 15 numbers . Then create another array to store their unit digits. Then display values of first array in one line if the value in second array exceeds 5. And also display how many such numbers found.
Find latitude and longitude of utmost 20 countries, ordered by population, with a population greater or equal to the population limit given below and have atleast one currency exclusively for themselves. (countries like Madagascar, Sri Lanka but not India, USA). Use the country details from this dataset. Your task is to find the sum of the length of all lines (in kms) that can be drawn between co-ordinates of these countries. Assume radius of earth: 6371 km Round length ef each line and final result to 2 decimal points f co-ordinates are missing for any country use 0.000NO.000DE Population limit: 28875 Note: Population limit will change at random intervals. So please make sure answer is computed for the correct population limit before submitting Answer *
Write a program to create two SDA to store 15 numbers each. Then create another array to store their sum. Then display values of three arrays in three different consecutive columns.
For example:
10 + 7 = 17
18 + 30 = 48
Where first column represents first array, second column represents second array and third column represents values of third array.