Question

In: Computer Science

(1) Define the term identifier as a name for something, such as a variable, constant, or...

(1) Define the term identifier as a name for something, such as a variable, constant, or function.

(2) Define the term data type as a set of values together with a set of operations.

(3) Discuss the five arithmetic operators in C++ that are used to manipulate integral and floating-type data types.

Solutions

Expert Solution

1)  Identifier refers as a name given to entities such as constant, variables, functions, structures etc. Reserved words in any programming language cannot be used as identifiers.

ex int sum , summation

No two identifiers in the program have same name as to avoid the collision of what is being called and what is served. Unique name to identify it during the execution of the program. Their can be same name but it all depends on the scope of the identifiers like in the two different functions have same variable name but functions should be different,like wise all the identifiers in their scope should be unique.

2) A data type is an attribute of data which tells the compiler what type of data user is going to store in it. Most programming language support int, float, double, boolean etc. Different types of operations can be performed over the them and store in the resulted data  

ex int y = 4; int x = 8; int z = x+y;

similarly for float ,double and all remaining data types

3) The five of them are for integral type   c = a+b; c = a-b; c = a*b; c = a/b; c = a%b ;

four for the floating type c = a+b; c = a-b; c = a*b; c = a/b;


Related Solutions

1) A C++ identifier is a name that identify. Click below identifier and type what could...
1) A C++ identifier is a name that identify. Click below identifier and type what could an identifier be identifying? ( just explain it in words from C++) 2) Click below each of the following type after Declaration, type the statement that declares a variable capable of storing a value of the specified type.    A non-negative integer.                                                                                                                          Declaration: A short integer Declaration: A Boolean value Declaration:
1. Declare/define the variable/constant as indicated: a. a variable to store the grade for a student...
1. Declare/define the variable/constant as indicated: a. a variable to store the grade for a student (as whole number) b. a variable to store a letter grade for a course, like A, B, or C c. a variable to store an average for a student (may have decimal places) d. a variable to represent if a student passed the course or not, with a value of TRUE or FALSE e. a constant to represent the passing grade of 65 2....
QUESTION 1 Define the term coenzyme. 2 pts. Name and describe the role of the B...
QUESTION 1 Define the term coenzyme. 2 pts. Name and describe the role of the B vitamins that function as part of the structure of coenzymes. 4 pts. QUESTION 2 Why does following a vegan diet result in risk for B-12 deficiency? 2 pts. What is Vitamin B-12 deficiency, list 3 ways to supplement for this deficiency and list when each method is appropriate. 3 pts. QUESTION 3 How do the vitamins function in the metabolic process? (list the vitamins)...
Create a Java class with the name (identifier) MyProgram and place it in the Questions package....
Create a Java class with the name (identifier) MyProgram and place it in the Questions package. You will need to create a main method for this class and place all of your code inside of that method. Your program should complete the following steps: - Prompt the user to enter a name for a Student. - Use the Scanner class to read in the user input and store the result in a variable. - Use the Random class to generate...
What is a variable? What is an independent variable? What makes something a variable?
What is a variable? What is an independent variable? What makes something a variable?
4. An identifier name in a program may represent Group of answer choices a location a...
4. An identifier name in a program may represent Group of answer choices a location a specific machine memory address a value all of the above none of the above In order for a language to support unbounded length character strings, it must have: Group of answer choices static storage allocation dynamic storage allocation static type checking dynamic type checking Suppose that the vehicle registration department for the State of Florida is becoming decentralized. Each county will now handle its...
In ArcGIS, What is conforming property? Name something that has this property and something that does...
In ArcGIS, What is conforming property? Name something that has this property and something that does not-
1. Define the term six sigma.
1. Define the term six sigma.
2A. Define the term rhizome. 2B. What is the name given to a fern leaf? List...
2A. Define the term rhizome. 2B. What is the name given to a fern leaf? List and describe the parts of a fern leaf. 2C. Define the term sorus. What is an indusium? What is a sporangium?
In Java 1a. Declare a legal identifier for a variable called test as type double. 1b....
In Java 1a. Declare a legal identifier for a variable called test as type double. 1b. Create an if.. else statement that will display You get an A if grade is at least 95 else it will display Maybe you get an A next time
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT