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
I believe the answer is B.Press releases! Hope this helps:)
Answer:
The correct answer to the following question will be Option B (Interpersonal feedback).
Explanation:
- Interpersonal feedback seems to be a mechanism under which someone talks. Individuals deliver a message regarding their sensations and expectations of actions by another.
- It encourages employees to take obligation for a group's results and to change the look they correspond to many other people in.
Therefore, Interpersonal feedback is the right answer.
Envelope - a flat paper container with a sealable flap, used to hold a small letter or document.
letterhead - a printed heading on stationery stating a person's or organization's name and address. A letterhead is very important when it comes to businesses.
Hope this helps! =D
Answer:
I believe this is a graph question which would be impossible to do on brainly. Butttt, if so, -4x means you would go to the right 4, and the 6 means you would go up 6
Hope this helps:)
if you want to further explain question I'd be glad to help :))