Explanation of the program
[Explain (where applicable)
l · the declarations of the header file
l · choice of variable type
l · purpose of cout/cin statement in your program
l · how the alignment was done
l · The declarations of the header file
Headers file contains a set of predefined functions. Header files are being declared
by the #include.
All the header files have the .h extension
l · choice of variable type
Variables are the storage locations for data. Variable type defined the type of operations and the size of the memory location that is needed for a particular program.
Purpose of cout/cin statement in your program
cout is used to display data or the processed information to the screen.
cin is used to take input entered by the user via the keyboard
l · how the alignment was done
Allignment can be done by using escape sequence such as \n and \t
Comments
Leave a comment