Answer to Question #233146 in C++ for alex

Question #233146

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

1
Expert's answer
2021-09-07T15:41:24-0400
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

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS