Question
Input details for an array of 5 employees
Answer :
Word Count : 986
_________ _____ ____ _______ ________ ________ _____ ___ ___.
_____ _____ _______ __________ ______ ________ __________ ____.
______ __________ ________ _______ _________ ___ __________ ______ _________ ___ __________.
________ ____ ___ ________ _________.
_________ _______ ______ _________ ___ ____ _________.
_____ __________ ______ __________ _________ ___ __________.
___ ____ _____ ____ _______ __________.
____ _________ __________ ______ _________.
______ __________ ___ ______ ______ _______.
______ ___ ___ ________ ______ __________ ___ ______ __________.
____ __________ _______ _________ __________ ________ _____ __________ _______ ___ ___.
_______ _________ ___ ________ ____ ___.
___ ____ ______ ______ ______ ________ ________ _________ _______ __________ __________.
_______ ___ _____ ___ _______ __________ ___ ____ _____ ____ _____.
_____ _____ ___ _______ ________ ___ _____ _____ ____ ___ __________ ___.
___ __________ ______ _____ ______ _______ _____ _________ _________.
____ ______ __________ ____ _____ ____ ______ ____ ____.
_______ ___ _________ ________ _____ __________ _________ ______ ________ ___.
____ _____ ______ __________ _________ ___ ____ _________ ___.
_____ ______ __________ _____ ___ ______ ____.
_________ _________ __________ __________ ________ ________ ___ __________ _________ _____.
______ _____ ___ ________ __________ _______ ________ _________ _____ __________ ____.
______ _________ ______ __________ __________ ________ ____.
___ _____ _______ __________ _______ _______.
_________ _____ __________ ___ __________ _____ ________ ________.
____ ___ __________ ______ ______ ____ ____.
_________ _____ _______ ____ _______ ________ ____ ________.
______ ______ ____ _____ _________.
__________ _________ ___ ______ ___ ______ _____ ___ _________.
______ ____ _________ __________ _________ _________ _____.
________ ___ ___ ______ _________ _____.
___ ____ __________ ______ __________ ____ _________ ____.
__________ _______ ____ ____ ______.
_________ ______ _______ _____ ______ __________ _______ ___ ________ ______ ________.
_____ ___ ________ ______ ______ __________ ___ ___ _____ _____.
______ __________ __________ _________ ___ ______ ________ _________ _____ _________ __________.
_______ _________ ____ ___ _____.
___ ___ _________ _____ _____ ____.
_______ _________ _________ _________ _________ _____.
______ __________ ________ __________ ___ ____ _____ __________.
_____ ________ ________ ________ ___ ___.
____ ____ ____ ___ ______ ________ ______.
___ ___ ______ ____ ___ _________ __________ _____ ____ ______ _____.
_______ _____ __________ _________ ________ _______.
_______ ______ _____ __________ ___ __________.
_______ _________ _______ __________ ________ ________ ___ __________.
___ _______ __________ _________ __________ _______ ___ _____ ________ __________ ________ ____.
_________ ____ ___ _______ _________ _______ ________.
_______ _____ __________ ___ ____ ____ ___ _______ ______ _____ _________.
________ _______ _________ _________ __________ ___ ____ ______ ______ ______ ____ ______.
______ _______ _____ _________ _______ ______ _____ ____.
______ _____ _________ _________ ______ __________ _________ __________ __________ ___ _______.
__________ __________ _________ _________ ______ _______.
_______ __________ ___ ______ _____ ________ ____ _____ __________.
_____ ______ ___ ______ ____.
_______ _____ __________ ___ __________.
_____ ______ _________ __________ __________ _____ ______ _________.
____ ______ ___ ________ _______.
______ _______ _________ _______ ______ _________ _________ _____ __________ ______ ________.
__________ ____ _______ _______ ______ _______ ______ _____ _____ ________ ______.
_____ ______ _______ ____ ______.
___ _________ _________ ____ _____ ___ _____.
_________ _______ ___ _____ ____ __________ ________ _____ _________ ___.
_________ ____ _____ ______ ________ ________ ____ ____ _______.
___ ___ __________ _____ ________ ____ ____ ________ __________ ____ ____ _____.
_____ ______ _______ _____ _________ __________.
____ ______ ___ ________ _____ _____ ________ ______ _____ ___ _______ _________.
__________ _______ ___ _______ _____ ______ ______ _________ ______.
______ _________ ________ _____ _______ ______ _______ ________.
_____ _________ _________ ______ ________ _____ _____ ___ _______ _____ ________ ________.
_______ ___ _________ ____ _________ _______ ______ ___ _________.
______ ___ _____ ________ _______ _________ __________ __________ __________.
___ _____ ______ ____ _______.
________ _______ __________ _____ ______ __________ _____ ____ _____ ______ ______ _____.
_____ _____ _______ _________ _________ _________ _____ ____.
_________ _________ _______ __________ _______ ________ __________ ____ ___ ___.
______ _____ ____ ___ __________ _______ ____ __________ ___ __________ _________ _______.
__________ _________ _______ ______ ___ _______ ______ __________ _________ ______ __________ _______.
_____ _____ ___ _____ __________ ____ ________ __________ _______.
______ _________ ________ ___ ___ ________ ________ ___ _________.
_____ _____ ________ ________ _______ _____ ____ ________ _______ _______ ______.
____ _____ ___ ______ ______.
_______ ________ ___ __________ ______ ___ ____ __________ _____ _______.
____ _______ _________ ___ ____ ________ ____ _______.
________ __________ _________ _____ ____ _____ ______ _____ ____ _____ ________.
__________ ____ ______ __________ __________ _______ ______ _________ _________.
____ ________ _____ ____ __________ _______ __________ _____.
________ _______ ________ _____ _________ _________ ___.
Skip in 10
# Input Details for an Array of 5 Employees In C++ programming, an array is a collection of elements of the same data type stored in contiguous memory locations. When a program needs to store information about several employees, an array can be used to store employee details efficiently. For five employees, an array of size 5 can be declared and used to accept and display employee information. Depending on the requirements of the program, the employee details may include employee ID, name, age, department, designation, and salary. If only one type of information is required, a simple array can be used. For example, to store the salaries of five employees, the declaration can be written as: ```cpp float salary[5]; ``` The five values can then be entered using a loop: ```cpp for (int i = 0; i < 5; i++) { cout << "Enter salary of employee " << i + 1 << ": "; cin >> salary[i]; } ``` Here, `salary` is an array of five floating-point values. The index of the first element is 0 and the index of the last element is 4. Thus, `salary[0]` represents the salary of the first employee, while `salary[4]` represents the salary of the fifth employee. If the program needs to store employee names, a string array can be used: ```cpp string name[5]; ``` Input can be accepted as follows: ```cpp for (int i = 0; i <
_________ ________ _____ _______ ___ _____ __________ _______._________ _____ ____ _______ ________ ________ _____ ___ ___.
_____ _____ _______ __________ ______ ________ __________ ____.
______ __________ ________ _______ _________ ___ __________ ______ _________ ___ __________.
________ ____ ___ ________ _________.
_________ _______ ______ _________ ___ ____ _________.
_____ __________ ______ __________ _________ ___ __________.
___ ____ _____ ____ _______ __________.
____ _________ __________ ______ _________.
______ __________ ___ ______ ______ _______.
______ ___ ___ ________ ______ __________ ___ ______ __________.
____ __________ _______ _________ __________ ________ _____ __________ _______ ___ ___.
_______ _________ ___ ________ ____ ___.
___ ____ ______ ______ ______ ________ ________ _________ _______ __________ __________.
_______ ___ _____ ___ _______ __________ ___ ____ _____ ____ _____.
_____ _____ ___ _______ ________ ___ _____ _____ ____ ___ __________ ___.
___ __________ ______ _____ ______ _______ _____ _________ _________.
____ ______ __________ ____ _____ ____ ______ ____ ____.
_______ ___ _________ ________ _____ __________ _________ ______ ________ ___.
____ _____ ______ __________ _________ ___ ____ _________ ___.
_____ ______ __________ _____ ___ ______ ____.
_________ _________ __________ __________ ________ ________ ___ __________ _________ _____.
______ _____ ___ ________ __________ _______ ________ _________ _____ __________ ____.
______ _________ ______ __________ __________ ________ ____.
___ _____ _______ __________ _______ _______.
_________ _____ __________ ___ __________ _____ ________ ________.
____ ___ __________ ______ ______ ____ ____.
_________ _____ _______ ____ _______ ________ ____ ________.
______ ______ ____ _____ _________.
__________ _________ ___ ______ ___ ______ _____ ___ _________.
______ ____ _________ __________ _________ _________ _____.
________ ___ ___ ______ _________ _____.
___ ____ __________ ______ __________ ____ _________ ____.
__________ _______ ____ ____ ______.
_________ ______ _______ _____ ______ __________ _______ ___ ________ ______ ________.
_____ ___ ________ ______ ______ __________ ___ ___ _____ _____.
______ __________ __________ _________ ___ ______ ________ _________ _____ _________ __________.
_______ _________ ____ ___ _____.
___ ___ _________ _____ _____ ____.
_______ _________ _________ _________ _________ _____.
______ __________ ________ __________ ___ ____ _____ __________.
_____ ________ ________ ________ ___ ___.
____ ____ ____ ___ ______ ________ ______.
___ ___ ______ ____ ___ _________ __________ _____ ____ ______ _____.
_______ _____ __________ _________ ________ _______.
_______ ______ _____ __________ ___ __________.
_______ _________ _______ __________ ________ ________ ___ __________.
___ _______ __________ _________ __________ _______ ___ _____ ________ __________ ________ ____.
_________ ____ ___ _______ _________ _______ ________.
_______ _____ __________ ___ ____ ____ ___ _______ ______ _____ _________.
________ _______ _________ _________ __________ ___ ____ ______ ______ ______ ____ ______.
______ _______ _____ _________ _______ ______ _____ ____.
______ _____ _________ _________ ______ __________ _________ __________ __________ ___ _______.
__________ __________ _________ _________ ______ _______.
_______ __________ ___ ______ _____ ________ ____ _____ __________.
_____ ______ ___ ______ ____.
_______ _____ __________ ___ __________.
_____ ______ _________ __________ __________ _____ ______ _________.
____ ______ ___ ________ _______.
______ _______ _________ _______ ______ _________ _________ _____ __________ ______ ________.
__________ ____ _______ _______ ______ _______ ______ _____ _____ ________ ______.
_____ ______ _______ ____ ______.
___ _________ _________ ____ _____ ___ _____.
_________ _______ ___ _____ ____ __________ ________ _____ _________ ___.
_________ ____ _____ ______ ________ ________ ____ ____ _______.
___ ___ __________ _____ ________ ____ ____ ________ __________ ____ ____ _____.
_____ ______ _______ _____ _________ __________.
____ ______ ___ ________ _____ _____ ________ ______ _____ ___ _______ _________.
__________ _______ ___ _______ _____ ______ ______ _________ ______.
______ _________ ________ _____ _______ ______ _______ ________.
_____ _________ _________ ______ ________ _____ _____ ___ _______ _____ ________ ________.
_______ ___ _________ ____ _________ _______ ______ ___ _________.
______ ___ _____ ________ _______ _________ __________ __________ __________.
___ _____ ______ ____ _______.
________ _______ __________ _____ ______ __________ _____ ____ _____ ______ ______ _____.
_____ _____ _______ _________ _________ _________ _____ ____.
_________ _________ _______ __________ _______ ________ __________ ____ ___ ___.
______ _____ ____ ___ __________ _______ ____ __________ ___ __________ _________ _______.
__________ _________ _______ ______ ___ _______ ______ __________ _________ ______ __________ _______.
_____ _____ ___ _____ __________ ____ ________ __________ _______.
______ _________ ________ ___ ___ ________ ________ ___ _________.
_____ _____ ________ ________ _______ _____ ____ ________ _______ _______ ______.
____ _____ ___ ______ ______.
_______ ________ ___ __________ ______ ___ ____ __________ _____ _______.
____ _______ _________ ___ ____ ________ ____ _______.
________ __________ _________ _____ ____ _____ ______ _____ ____ _____ ________.
__________ ____ ______ __________ __________ _______ ______ _________ _________.
____ ________ _____ ____ __________ _______ __________ _____.
________ _______ ________ _____ _________ _________ ___.
IGNOU ACADEMY
Your IGNOU journey, made easier.
- Solved Assignments
- Study Notes
- Guess Papers
- Question Papers
Continue Reading — It's Free
Sign in with Google to unlock more of this answer.
✓ Free access
✓ Unlock up to 60% of the answer
✓ No payment required
✓ Unlock up to 60% of the answer
✓ No payment required
Quick Google sign-in. No separate registration form.