Write a program in Java to store first 20 Fibonacci numbers in an array then display only those Fibonacci which are prime. And also display how many such numbers found.
Write a program in Java to display the words of a string in alphabetical order from A to Z.
Write a program in Java to display only those words of a string which carries same letter in both the end and also display how many such words found.
Write a program that contains variables that holds the hourly rate and number
of hours worked for an employee who has the weekly salary for 250 an hour,
works 40 regular hours, and earns time and one-half (wage * 1.5) for overtime
hours worked. Display the gross pay, withholding tax, which is 15 percent of
the gross pay, and the net pay (gross pay – withholding).
Write a program to create your own Exception subclass. You need to also override toString() method to define a tailor made description of your own Exception subclass. Then create a class where an exception of the created Exception subclass is thrown by using throw keyword. You need to define a try and catch block to handle the exception in the main method. Finally, after the exception is handled, print "Exception Handling Completed".
Apply Gauss’s Divergence theorem to evaluate taken over the
sphere being the direction cosines of the external normal to the
sphere.
Write a program to create your own Exception subclass. You need to also override toString() method to define a tailor made description of your own Exception subclass. Then create a class where an exception of the created Exception subclass is thrown by using throw keyword. You need to define a try and catch block to handle the exception in the main method. Finally, after the exception is handled, print "Exception Handling Completed".
Write a java program that will satisfy the given requirements:
A. It will display the given menu:
A - Arithmetic Series
B - Geometric Series
C - Harmonic Mean
D - Largest Prime Number
E - Largest Prime Number
Q - Quit the Program
B. The program will ask the user his/her choice.
C. If the choice is A,B,C,D or E, It will prompt the user for the required inputs, then compute and display the required outputs. If the choice is Q, the program will terminate
D. Validate all your inputs by promptingg for a new value if input is invalid.
E. Display also a description of your program
F. Program should execute for as long as the user wants to continue
G. Use of arrays is not allowed