Java | JSP | JSF Answers

Questions: 4 418

Answers by our Experts: 3 943

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

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 in java to accept cost price and selling price of an article and find out loss or profit.

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


Write a java program that accepts given n number of marks for a PRG510S test, and stores them into an array named marks. After all marks have been entered your program should accomplish the following: [n - to be provided by user input] a) Find and display the highest mark b) Find and display the lowest mark c) Compute and display the average mark (Above tasks (a, b, and c should be accomplished using only one loop) Sample Run1 Enter numbers of marks: 10 Enter 10 marks: 55 60 89 75 25 77 92 15 68 40 Output1: Highest Mark = 92% Lowest Mark = 15% Average = 58%
LATEST TUTORIALS
APPROVED BY CLIENTS