Question

In: Operations Management

IN 200 WORDS OR MORE Explain why a sample of data may not be consistent with...

IN 200 WORDS OR MORE

Explain why a sample of data may not be consistent with the main data type and format

Solutions

Expert Solution

Data Type of a Name.

The name employed to identify a datum or a function also identifies its data type. A symbolic name representing a constant, variable, array, or function (except a generic function) must have only one type for each program unit. Once a particular name is identified with a particular type in a program unit, that type is implied for any usage of the name in the program unit that requires a type.

Type Rules for Data and Procedure Identifiers.

A symbolic name that identifies a constant, variable, array, external function, or statement function may have its type specified in a type-statement ( 8.4) as integer, real, double precision, complex, logical, or character. In the absence of an explicit declaration in a type-statement, the type is implied by the first letter of the name. A first letter of I, J, K, L, M, or N implies type integer and any other letter implies type real, unless an IMPLICIT statement ( 8.5) is used to change the default implied type.

The data type of an array element name is the same as the type of its array name.

The data type of a function name specifies the type of the datum supplied by the function reference in an expression.

A symbolic name that identifies a specific intrinsic function in a program unit has a type as specified in 15.10. An explicit type-statement is not required; however, it is permitted. A generic function name does not have a predetermined type; the result of a generic function reference assumes a type that depends on the type of the argument, as specified in 15.10. If a generic function name appears in a type-statement, such an appearance is not sufficient by itself to remove the generic properties from that function.

In a program unit that contains an external function reference, the type of the function is determined in the same manner as for variables and arrays.

The type of an external function is specified implicitly by its name, explicitly in a FUNCTION statement, or explicitly in a type-statement. Note that an IMPLICIT statement within a function subprogram may affect the type of the external function specified in the subprogram.

A symbolic name that identifies a main program, subroutine, common block, or block data subprogram has no data type.

Data Type Properties.

The mathematical and representation properties for each of the data types are specified in the following sections. For real, double precision, and integer data, the value zero is considered neither positive nor negative. The value of a signed zero is the same as the value of an unsigned zero.

Constants

A constant is an arithmetic constant, logical constant, or character constant. The value of a constant does not change. Within an executable program, all constants that have the same form have the same value.

Data Type of a Constant.

The form of the string representing a constant specifies both its value and data type. A PARAMETER statement ( 8.6) allows a constant to be given a symbolic name. The symbolic name of a constant must not be used to form part of another constant.

Blanks in Constants.

Blank characters occurring in a constant, except in a character constant, have no effect on the value of the constant.

Arithmetic Constants.

Integer, real, double precision, and complex constants are arithmetic constants.

Signs of Constants.

An unsigned constant is a constant without a leading sign. A signed constant is a constant with a leading plus or minus sign. An optionally signed constant is a constant that may be either signed or unsigned. Integer, real, and double precision constants may be optionally signed constants, except where specified otherwise.

Integer Type

An integer datum is always an exact representation of an integer value. It may assume a positive, negative, or zero value. It may assume only an integral value. An integer datum has one numeric storage unit in a storage sequence.

Integer Constant.

The form of an integer constant is an optional sign followed by a nonempty string of digits. The digit string is interpreted as a decimal number.

Real Type

A real datum is a processor approximation to the value of a real number. It may assume a positive, negative, or zero value. A real datum has one numeric storage unit in a storage sequence.

Basic Real Constant.

The form of a basic real constant is an optional sign, an integer part, a decimal point, and a fractional part, in that order. Both the integer part and the fractional part are strings of digits; either of these parts may be omitted but not both. A basic real constant may be written with more digits than a processor will use to approximate the value of the constant. A basic real constant is interpreted as a decimal number.

Real Exponent.

The form of a real exponent is the letter E followed by an optionally signed integer constant. A real exponent denotes a power of ten.

Real Constant.

The forms of a real constant are:

Basic real constant

Basic real constant followed by a real exponent

Integer constant followed by a real exponent

The value of a real constant that contains a real exponent is the product of the constant that precedes the E and the power of ten indicated by the integer following the E. The integer constant part of form (3) may be written with more digits than a processor will use to approximate the value of the constant.

Double Precision Type

A double precision datum is a processor approximation to the value of a real number. The precision, although not specified, must be greater than that of type real. A double precision datum may assume a positive, negative, or zero value. A double precision datum has two consecutive numeric storage units in a storage sequence.

Double Precision Exponent.

The form of a double precision exponent is the letter D followed by an optionally signed integer constant. A double precision exponent denotes a power of ten. Note that the form and interpretation of a double precision exponent are identical to those of a real exponent, except that the letter D is used instead of the letter E.

Double Precision Constant.

The forms of a double precision constant are:

Basic real constant followed by a double precision exponent

Integer constant followed by a double precision exponent

The value of a double precision constant is the product of the constant that precedes the D and the power of ten indicated by the integer following the D. The integer constant part of form (2) may be written with more digits than a processor will use to approximate the value of the constant.

Complex Type

A complex datum is a processor approximation to the value of a complex number. The representation of a complex datum is in the form of an ordered pair of real data. The first of the pair represents the real part of the complex datum and the second represents the imaginary part. Each part has the same degree of approximation as for a real datum. A complex datum has two consecutive numeric storage units in a storage sequence; the first storage unit is the real part and the second storage unit is the imaginary part.

Complex Constant.

The form of a complex constant is a left parenthesis followed by an ordered pair of real or integer constants separated by a comma, and followed by a right parenthesis. The first constant of the pair is the real part of the complex constant and the second is the imaginary part.

Logical Type

A logical datum may assume only the values true or false. A logical datum has one numeric storage unit in a storage sequence.

Logical Constant.

The forms and values of a logical constant are:

 

Character Type

A character datum is a string of characters. The string may consist of any characters capable of representation in the processor. The blank character is valid and significant in a character datum. The length of a character datum is the number of characters in the string. A character datum has one character storage unit in a storage sequence for each character in the string.

Each character in the string has a character position that is numbered consecutively 1, 2, 3, etc. The number indicates the sequential position of a character in the string, beginning at the left and proceeding to the right.

Character Constant.

The form of a character constant is an apostrophe followed by a nonempty string of characters followed by an apostrophe. The string may consist of any characters capable of representation in the processor. Note that the delimiting apostrophes are not part of the datum represented by the constant. An apostrophe within the datum string is represented by two consecutive apostrophes with no intervening blanks. In a character constant, blanks embedded between the delimiting apostrophes are significant.

The length of a character constant is the number of characters between the delimiting apostrophes, except that each pair of consecutive apostrophes counts as a single character. The delimiting apostrophes are not counted. The length of a character constant must be greater than zero.


Related Solutions

in 200 words or more, Why may a firm's current ratio differ from another in the...
in 200 words or more, Why may a firm's current ratio differ from another in the same industry? Provide specific examples. Which measure of profitability is probably of more interest to the investing public? Why? Explain Return on Equity.
Pls explain why education is important, in more than 200 words. pls explain in your own...
Pls explain why education is important, in more than 200 words. pls explain in your own words, without any plagrism.
Pls explain why education is important, in more than 200 words. pls explain in your own...
Pls explain why education is important, in more than 200 words. pls explain in your own words, without any plagrism.
explain philosophy of education in not more than 200 words
explain philosophy of education in not more than 200 words
In not more than 200 words; explain philosophy of education
In not more than 200 words; explain philosophy of education
Explain why it is possible for more than one mechanism to be consistent with the experimentally...
Explain why it is possible for more than one mechanism to be consistent with the experimentally determined rate law for a chemical reaction.
In 200 words or more, explain what a “Global Mindset” is and explain the importance of...
In 200 words or more, explain what a “Global Mindset” is and explain the importance of establishing and maintaining one in any company wishing to compete successfully in the world market.
why is the pcaob relevant to the business community? explain in 200 words Why are they...
why is the pcaob relevant to the business community? explain in 200 words Why are they relevant to the business community, meaning, what effect they have on the business community .
State the difference between qualitative and quantitative data. not more than 200 words
State the difference between qualitative and quantitative data. not more than 200 words
IN 200 WORDS OR MORE Identify a process for measurement of metrics data. Give an example
IN 200 WORDS OR MORE Identify a process for measurement of metrics data. Give an example
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT