Firstly we explain the variable and the declaration rule for the variable and further separating the valid and invalid variables.
- Whenever a user is given a question, variables are data values that can vary. for example age, CSL, etc.
- It may alter and during the execution of the program.
- It's a storage space for memories.
- It has a name that corresponds to the location.
- Data is stored in the memory location.
The rule for variable declaration:
- The names of your variables should be based on the phrases used in the subject area, and they should reflect the variable's function.
- By removing spaces between the words, you can make variable names. Each word in the name should be capitalized, including prepositions and pronouns that are one letter long.
- An underscore should never be used to start a variable name.
- Single-character variable names should be avoided. For loop counters, only short variable names are permitted.
- After the state that equals the "true" value, name variables that describe binary states ("true" or "false").
The valid variable is:
CSL, Age,CLS,SEE,Stop5for,Give, $shopping, and United.
The invalid variable is:
Mark-sheet, Tel $, Simple Interest, and 545Newton.
Learn more:
brainly.com/question/2684763
Answer:
A table with sample values
A chart with sample values
Explanation:
<span>I'm pretty sure that the answer is: The default view in word is print layout view, which shows the document on a mock sheet of paper in the document window.</span>
Answer:
special instance of a dataset
Answer:
#include <iostream>
#include <cstring>
using namespace std;
void replacePeriod(char* phrase) {
int i = 0;
while(*(phrase + i) != '\0')
{
if(*(phrase + i) == '.')
*(phrase + i) = '!';
i++;
}
}
int main() {
const int STRING_SIZE = 50;
char sentence[STRING_SIZE];
strcpy(sentence, "Hello. I'm Miley. Nice to meet you.");
replacePeriod(sentence);
cout << "Updated sentence: " << endl;
cout << sentence << endl;
return 0;
}
Explanation:
- Create a function called replacePeriod that takes a pointer of type char as a parameter.
- Loop through the end of phrase, check if phrase has a period and then replace it with a sign of exclamation.
- Inside the main function, define the sentence and pass it as an argument to the replacePeriod function.
- Finally display the updated sentence.