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 Java program to do the following

a) Read two-dimensional array (3 x3)

b) Find the diagonal elements of the array 


Write a Java program to obtain transpose of a 4 x 4 matrix. The Transpose of the matrix is obtained by exchanging the elements of each row. With the elements of the corresponding column. 


The function accepts two positive integers ‘r’ and ‘unit’ and a positive integer array ‘arr’ of size ‘n’ as its argument ‘r’ represents the number of rats present in an area, ‘unit’ is the amount of food each rat consumes and each ith element of array ‘arr’ represents the amount of food present in ‘i+1’ house number, where 0 <= i

a. Critically explain why you would consider the concept of using methods in your program again running a couple of if-else statements.


b. Declare a method with three arguments all of the type int. The method should return the greatest of the three arguments, however, if any two or all three are the same, your method should return that value.


c. Embed your method in a complete program that requests for three variables all of the types int and displays the conditions explained in “b” above. 


Write a program with total change amount in pennies as an integer input, and output the change using the fewest coins, one coin type per line. The coin types are Dollars, Quarters, Dimes, Nickels, and Pennies. Use singular and plural coin names as appropriate, like 1 Penny vs. 2 Pennies.


Road accident is the number one killer in the US. Most of the road accidents are known to have been caused by negligence. There is currently no system in place to track offenses committed by drivers. Charles Saah advised that a system should be put in place to track the number of offenses committed by drivers. The system should be able to count the number of offenses committed by each driver and make the following recommendations.

a. If a minor offense is committed by a driver, a fine of $50 should be charged and the driver cautioned. A second minor offense by the same driver should attract a fine of $150 and the bared from driving for two weeks. If the same driver commits more than two minor offenses, the driver’s license should be confiscated and directed to go for retraining as a driver.

b. However, if a major offense is committed the driver should be investigated by DVLA.

c. On a trial basis, you are to develop a system to depict “a, and b’ above and display the results.


Rate of interest using abstract class in java


Check whether atm pin num valid or not using encapsulation java

Write a program (Wrapper classes and Vectors)

a. To create a Vector, add element to it and calculate its size and capacity.

b. To add Integer element and find out first and last element in Vector.



Write a Java driven application with the following requirements:



1. Must enter names of students.



2. Enter test 1, 2 and 3 scores for each of my students.



3.  Program must calculate the average of each student.



4. Average of each student must appear below their names. ARRAY and MENU implementation should be necessary.



For example:



Student Name: Peter



Average: 56



Student Name: Roxy



Average: 89.3

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS