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
It kinda depends on what you mean by special characters
Answer:
#include <iostream>
using namespace std;
double DrivingCost(int drivenMiles,double milesPerGallon,double dollarsPerGallon)
{
double dollarsperMile=dollarsPerGallon/milesPerGallon;//calculating dollarsperMile.
return dollarsperMile*drivenMiles;//returning thr driving cost..
}
int main() {
double ans;
int miles;
cout<<"Enter miles"<<endl;
cin>>miles;
ans=DrivingCost(miles,20.0,3.1599);
cout<<ans<<endl;
return 0;
}
Output:-
Enter miles
10
1.57995
Enter miles
50
7.89975
Enter miles
100
15.7995
Explanation:
In the function first I have calculated the dollars per mile and after that I have returned the product of dollarspermile and driven miles.This will give the cost of the Driving.
Answer:
A wave of sound!
Explanation:
sound waves are sound but sound comes in different wavelengths
Answer:
ROM : Read Only Memory.
RAM : Random Ascess Memory.