Answer:
The answer is "Option C".
Explanation:
This technique is also known as walking-sectional experimental research, which only collects information at one stage. The goal of using this strategy is to create a single point, that provides representations to the population of interest, and other choices were wrong, that can be described as follows:
- In option A, It is wrong, because this designing technique is used to search the relationship between variables.
- In option B, It is a form of marketing, that provides communication via telephone, that's why it is incorrect.
- In option D, It is used in research, that's why it is not correct.
- In option E, It is wrong, because it is used in business.
Answer:
it is organized reusable code to perform some action
Answer:
Here the code is given as follows,
Explanation:
OUTPUT:
Message: AAAABBBCCDDDDDDDE
Number of symbols in the alphabet = 5
Characters in the alphabet = A,B,C,D,E
Number of bits per symbol = 3
Histogram showing the frequency of the symbols in the alphabet
A | ****
B | ***
C | **
D | *******
E | *
public class JavaApplication72 {
public static void longestStreak(String str){
char prevC = '_';
String largest = "";
String txt = "";
for (int i = 0; i < str.length(); i++){
char c = str.charAt(i);
if (c != prevC){
txt = "";
}
txt += c;
if (txt.length() > largest.length()){
largest = txt;
}
prevC = c;
}
System.out.println(largest.charAt(0)+" "+largest.length());
}
public static void main(String[] args) {
longestStreak("CCAAAAATTT!");
}
}