Write a Class FeeCalculator that’s programed against FeeStructure (or uses FeeStructure Interface) having the following members
Fields: feeStructure
Constructor (using dependency injection -> constructor injection)
Methods:
Write two complete classes (FeeStructur2020 & FreeStructur2021) that implements FeeStructure interface
Suppose:
FeeStructure2020 calculates the fee based on the following
FeeStructure2021 calculates the fee based on the following
Write an Interface FeeStructure that provide the following functionality for calculating Fee Structure
Write a program to take two numbers as input then display their total using java.io. package for input i.e. InputStreamReader isr= new InputStreamReader(System.in);
BufferedReader br=new BufferedReader(isr);
Integer.parseInt(br.readLine());
Use void only once in public static void main(String args[])
Don't use void second time.
Write a program to take a String as input then display the word which has highest number of vowels.
For example:
Enter a String
EDUCATION IS important
EDUCATION has highest number of vowels
2nd e.g.
Enter a String
Hello use dog
Hello and use has same highest number of vowels
Write a program to take a String as input then display only palindrome words found in the String and also display how many palindrome words found.
For example:
Enter a String
MOM AND dad are talking
Palindrome words: MOM dad
No. of such words: 2
for(i=s.length()-1;i>=0;i--)
{
c=s.charAt(i);
rev=rev+c;
} //To check palindrome words
Create a class Author whose attributes are: name, email, gender and books. Author constructor initializes the values
of name, email, gender and books. Define a static variable, method and block, and use this keyword in your code.
A program is required for a computer game. The user keys in the number of rounds he wishes to play.
For each round the user enters his lucky number. The program takes the number and divides it with a
secret number. If the remainder of the division is zero, it is considered a draw for the round and the total
score is incriminated by 1. Otherwise if it is any other even number, it is considered a win for the round
and the total score is incremented by 3. However if it is an odd number, it is considered a loss for the
round and the total score is decremented by 3. This is done until he completes his rounds. He wins if the
total score at the end is a positive number. Write a Java program to accomplish this.
Develop a swing application for login validation of a system as shown in the figure. The
application shows two options: one Sign up and another Sign in. When Sign up is selected, a
new screen will appear for asking name, username, password. If the entered username and
password do not exist in the database, it will show a successful message [Name] has
successfully registered and store corresponding username, password in the database,
otherwise the message [Name] already exists in the system will be displayed. On the other
hand, when Sign In option is selected, the user will be prompted to enter username,
password as shown in the figure. Eventually, the application checks whether username and
password both match with some entry in the database. If such entry found in the database,
then a welcome message Welcome [Name] will appear, otherwise an unsuccessful login
message Wrong username/password will be displayed. For message display, the swing dialogs can be used.
Write a proper program to perform any operation on jagged array{java}