Java | JSP | JSF Answers

Questions answered by Experts: 3 611

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

1. Write a JAVA program that will input Employee Name, Rate per hour, No. of hours worked and will compute the daily wage of an employee. If the number of hours worked exceeds eight hours add 30% to each excess hours as overtime rate. Formula: Daily Wage = Rate per hour * No. of hours worked + OT pay
To make a script to display only current month,day,year, or date
What is the significance of System.out.println(" "), while making a right angle triangle with star??

*
**
***
Write a program in Java to accept a string and display only those characters which are consecutives.
Sample Input : UNDERSTANDING COMPUTER APPLICATIONS
Sample Output : D,E
R,S
S,T are consecutive characters
Write a program that lets the user enter the loan amount and loan period in number of years and displays the monthly and total payments for each interest rate starting from 5% to 8%, with an increment of 1/8. Here is a sample run:

Loan Amount: 10000
Number of Years: 5
Interest Rate Monthly Payment Total Payment
5% 188.71 11322.74
5.125% 189.28 11357.13
5.25% 189.85 11391.59
...
7.875% 202.17 12129.97
8.0% 202.76 12165.83
Give the algorithm to decide if a list of integers can be divided into two smaller lists of
equal sum. For example,
[10, 20 , 30 , 5 , 40 , 50 , 40 , 15]
can be fairly divided into
[10, 20, 30, 5, 40] and [50, 40, 15]
However,
[4, 4, 8, 10,14] cannot be divided.
Extend the Main method in such a way that repeatedly values could be read, till number 0 is given. Then the programme is finished. Before that the sum of all read in figures is still given, if all readable Values were integral numbers. In all other cases nothing is given.
Write a program to calculate students average test scores and their grades.
Use three arrays: a one-dimensional array to store the student names, a (parallel) two- dimensional array to store the test score, and a parallel one-dimensional array to store grades. Your program must contain at least the following methods: a method to read and to store data into two arrays, a method to calculate the average test score and grade and a method to output the result. Have your program also output the class average.

Johnson 85 83 77 91 76
Aniston 80 90 95 93 48
Cooper 78 81 11 90 73
Gupta 92 23 30 69 87
Blair 23 45 96 38 59

Grade calculation to be computed as follows:
Marks Grade
85 - 100 A
75 - 84 B
65- 74 C
50 - 64 D
<50 F
a = ((i * (i + 1)) / 2) + 5;
Write a program that asks the user to input an integer, i, and determines the largest consecutive pair of numbers whose product is divisible by 33 from the first i numbers in the series.

How can i multiple number by the previous number in the series?
I need to randomly split the data in a 2 dimensional array. The data is being read from a txt file. The data must be split 75% and 25%. After the split I need to calculate the euclidean distance.
LATEST TUTORIALS
APPROVED BY CLIENTS