Answer:
The program to this question can be given as:
Program:
#include <iostream> //header file
using namespace std; //using name space.
int CountCharacters(char userChar,string userString) //define function.
{
int count = 0; //define variable
for (int i=0;i<userString.length();i++) //loop
if (userString[i]==userChar) //if block
count++; //increment the value.
return count; //return value.
}
int main() //main method.
{
string userString= "Clanguage"; //define variable and assign value.
char userChar = 'a'; //define variable and assign value.
cout << CountCharacters(userChar,userString); //calling function and print value.
return 0;
}
Output:
2
Explanation:
Answer:
1: Proprietary, open-source, and embedded
Explanation:
To begin with, 'Windows, macOS and Linux' aren't categories. They're names (and also specific examples of operating systems). Technically Option 3 is also correct, but it's not as 'technical' as Option 1. Option 4 is just completely wrong, Linux is based off of Unix, and Android is based off of Linux. Again, those aren't categories.
Now onto the full explanation:
Windows is an operating system made by Microsoft, macOS is made by Apple, and Linux was originally created by Linus Torvalds.
A good tie-in between the explanation of Option 1 and 2 is that, Windows and MacOS are proprietary (owned by a person or company, the code is not publicly shared), and Linux is open-source (the general public can contribute code, albeit within reason).
Embedded operating systems aren't common-place in commercial desktop computers, but in offices generally there are plenty of them. Coffee machines run on embedded operating systems (although a fair few actually run off Linux surprisingly), printers run on embedded operating systems, and essentially the Internet of Things as a collective run on embedded operating systems.
memo
null
BLOb
The answer is Autonumber.
AutoNumber data type is commonly used for primary key fields and it automatically generates a unique number for each record. This data type stores an integer that Access increments automatically as you continue adding new records. Primary keys are great but Auto numbers are also important for insuring that records are uniquely identified.
Answer: Live preview
Explanation:
The live preview feature enables to display the current slide with the design theme formatting applied with the mouse pointer. This feature is also available in digital cameras where the screen can be used as viewfinder.
Answer:
The output of the following code is "Hello, we are open! Sincerely, the grocery store ".
Explanation:
In the given code firstly we declare the variable that is numApples and numOranges. In this variable we assign value and the datatype of the variable is var. The var datatype can hold any type of data. Then we use the conditional statement. In the conditional statement, we use the OR logical operator. In the if block we check the condition that is if numApples variable value is less then 20 OR numOranges variable value is equal to numApples then it will print "Hello, we are open!". In the else block it will print "Sorry, we are closed!". In the last, we print "Sincerely, the grocery store".So in this question, if block is executed and the additional message is printed.