There are 50 employees in an organization Create a “struct” called “employee” to
ID: 3615536 • Letter: T
Question
- There are 50 employees in an organization
- Create a “struct” called “employee” tohold the following employee records
-
- Employee ID (0 to 49)
- Employee Salary (2500 to 3500)
- Employee Status (F or P)
- struct will create a user-defined data-type for employeeinformation
- All the 50 employee’s record should have the samedata-type of “struct employee”
-
- Hint: Create a employee array of type“employee”
- Randomly fill the salary and status values for all employees(using looping)
- Ask user to enter a number between 0 to 49, say X
Create this information using a "Struct" and the Same With a"Class"
Explanation / Answer
x.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.