The document defines key C++ terms such as cout, float, else if, if, namespace, cin, discriminant, int main, endl, and sqrt and provides brief descriptions of each. It also outlines applications and limitations of a program to calculate area moment of inertia, noting it will accept negative numbers but reject fractions, symbols, and letters and only allow numeric inputs.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
30 views
Numsol Fuck
The document defines key C++ terms such as cout, float, else if, if, namespace, cin, discriminant, int main, endl, and sqrt and provides brief descriptions of each. It also outlines applications and limitations of a program to calculate area moment of inertia, noting it will accept negative numbers but reject fractions, symbols, and letters and only allow numeric inputs.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2
Keyword Description
Cout cout statement is the instance of the ostream
class. It is used to produce output on the standard output device which is usually the display screen. The data needed to be displayed on the screen is inserted in the standard output stream (cout) using the insertion operator(<<).
Float In C++, the “float” is the primary built-in data type
for floating point numbers. It occupies 34 bits (4 bytes) of memory and supports a lot of functions.
Else if to specify a block of code to be executed, if the
same condition is false. If In computer programming, we use else if to specify a block of code to be executed, if a specified condition is true Namespace are regions in a program logically separated from the rest. They are necessary if you want more than one function with the same name. You can declare two different namespaces for these functions and call them by referencing their corresponding namespace.
Cin an istream class predefined object. It is linked to a
standard input device, i.e., a keyboard. To read input from a console, the cin is used in combination with the stream extraction operator (>>). Discriminant discriminant of a quadratic equation. The discriminant tells the nature of the roots. If discriminant is greater than 0, the roots are real and different. If discriminant is equal to 0, the roots are real and equal. Int main represents that the function returns some integer even '0' at the end of the program execution. Endl a programming language, stands for end of line. Furthermore, the use of the endl C++ manipulators takes place to move the cursor to the beginning of the next line. Sqrt The sqrt() function in C++ returns the square root of a number. This function is defined in the cmath header file. APPLICATIONS AND LIMITATION
- This program is designed to calculate the area
moment of inertia. - Fractions, Symbols, and Alphabet Letters will be rejected. - The negative numbers are valid also and will be accepted by the program. - The program is not allowing a whole number or inputs.