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

In a class room everyone is very friendly and has bonded with others in a short span of time. During the exams, students will sit along with their friends and will write the exams, which actually resulted in the finding that only a few members in the batch are good at studies and others are not. After getting several complaints from the staff members, the Principal has agreed to change the sitting pattern during the exams for which she has formed a committee. Using a spy, committee was able to get a list of close friends for all the students in the class. Now using this list they want to identify two groups of people such that a person in one group must not be a friend to any other in the same group. Your task is to help the committee
A Milkman serves milk in packaged bottles of varied sizes. The possible size of the bottles are {1, 5, 7 and 10} litres. He wants to supply desired quantity using as less bottles as possible irrespective of the size. Your objective is to help him find the minimum number of bottles required to supply the given demand of milk.

Input Format:

First line contains number of test cases N Next N lines, each contain a positive integer Li which corresponds to the demand of milk.

Output Format:

For each input Li, print the minimum number of bottles required to fulfill the demand

Constraints: 1 <= N <= 1000

Li > 0

1 <= i <= N

Sample Input and Output

SNo. Input Output 1
2 17 65

2 7
Problem : The power of compounding



Manish has realized the power of compounding. Since the days he started earning, he has diligently set aside a small corpus which he saves from his monthly salary and deposits in his bank account. Bank pays him interest every month. Manish is also a determined investor and refrains from withdrawing anything from this account because he now believes in power of compounding. Given investment corpus, fixed annual rate of interest and maturity period calculate the amount the Manish will end up saving at the end of his tenure.

Submit
Super ASCII String Checker
In the Byteland country a string "S" is said to super ascii string if and only
if count of each character in the string is equal to its ascii value.


In the Byteland country ascii code of 'a' is 1, 'b' is 2 ...'z' is 26.


Your task is to find out whether the given string is a super ascii string or not.


Input Format:

First line contains number of test cases T, followed by T lines, each containing
a string "S".


Output Format:

For each test case print "Yes" if the String "S" is super ascii, else print "No"
Constraints:

1<=T<=100

1<=|S|<=400, S will contains only lower case alphabets ('a'-'z').

Sample Input and Output

SNo. Input Output

1 bba Yes

2 scca No
1. In the main method place a method call to the method that will store the returned result in a variable of your choosing. Use number1 and number2 as the parameters.
Inside the main method, output the returned value from the method using the variable in a single println statement
write a program in java to display your name and average marks obtained in physics ,chemistry, biology.
HOW TO EXECUTE FULLSCREEN / F11 USING JAVA SCRIPT ON LOADEVENT
Write a pseudo code algorithm to create a linked list with a header and insert five numbers to the list.
given a set of integers(separated by spaces). Print the sum of their cubes
HOW TO IMPROOVE PROGRAMMING LOGIC
LATEST TUTORIALS
APPROVED BY CLIENTS