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

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
Which of the following methods will compile without error?

public int add(List<? extends Number> list) {
int sum = 0;
for (Integer i : list) sum += i;
return sum;
}

public int add(List<? super Integer> list) {
int sum = 0;
for (Integer i : list) sum += i;
return sum;
}

public int add(List<? extends Integer> list) {
int sum = 0;
for (Integer i : list) sum += i;
return sum;
}

public int add(List<?> list) {
int sum = 0;
for (Integer i : list) sum += i;
return sum;
}
What argument do we send to the Scanner constructor to read from the java console?
Given two linked lists L, M that contain integer keys in sorted order, provide the pseudo code of a function to create a new list that contains L ∩ M in sorted order. Your function should traverse the two lists only once
LATEST TUTORIALS
APPROVED BY CLIENTS