Answer:
// program in java.
import java.util.*;
// class definition
class Main
{
// main method of the class
public static void main (String[] args) throws java.lang.Exception
{
try{
// object to read input
Scanner scr=new Scanner(System.in);
System.out.print("Enter the String:");
// read string from user
String str=scr.nextLine();
System.out.print("Enter the character:");
// read character
char ch=scr.next().charAt(0);
// variable to count the occurrence of character
int char_count=0;
for(int i=0;i<str.length();i++)
{
// find the character i string
if(ch==str.charAt(i))
// increase the count
char_count++;
}
// print the count
System.out.println("count of "+ch+" in the String is:"+char_count);
}catch(Exception ex){
return;}
}
}
Explanation:
Read a string from user and assign it to variable "str".Then read a character to and assign it to variable "ch".Then Declare a variable "char_count" to count the occurrence of character in the string.Find the count of character in the string. Here upper case character is different than lower case.
Output:
Enter the String:Monday
Enter the character:n
count of n in the String is:1
Enter the String:Nobody
Enter the character:n
count of n in the String is:0
Answer:
The correct answer to the following question will be "STDEV".
Explanation:
- The method Excel STDEV generates the standard data variance describing a variable or to estimate or measure the standard deviation in a test, this method will be used.
- To find a population's standard deviation will be using the STDEV. P function in and later on throughout Excel. Either use STDEVA or STDEVPA unless you include rational or document values in the computation.
The manufacturer must, therefore, use the STDEV function, because of this.
Answer:
A
Explanation:
The main output of Project palnning is project plan.
<span>Assuming that the language is C++ and that the following variables exist:
bonusscores is an array of some numeric type (float, double, int, etc).
nent is an integer indicating how many elements are in bonusscores.
Also assuming that the array is 0 based, so legal subscripts range from 0 to nent-1.
// Code starts here
for(int x = 0; x < (nent-1); ++x) {
bonusscores[x] = bonusscores[x] + bonusscores[x+1];
}
// Code ends here
Thing to note, since the last element isn't modified, the range for the for loop is reduced by 1 so that every element to actually be modified is visited, but the last element isn't. And since each element after modification isn't needed for future modifications, it's safe to change them in situ.</span>