+1 vote
35 views

Write a struct that has a member that is the name of a business department: HR, Sales, Research, Software, and Executive (use enums for the 4 departments). A second member that is an annual salary as an int. A third member that is a social security number(unsigned). Generate 10 employees with different social security numbers. Invent a salary generator for each department (use some base salary for the department and add in a randomly generated offset). Print out the 10 employees and their values to the screen-one line at a time.

by (545 points)   | 35 views
We shall answer your question soon.
( Delay is expected due some local site business works so, plz bear with us. )

Thanks for being active on our community site.

Please log in or register to answer this question.

Related questions

+1 vote
0 answers
+1 vote
1 answer
asked Jun 27 by fatyma Nauman (545 points) | 38 views
+3 votes
0 answers
+2 votes
2 answers
asked Jun 4 by toheed (1.3k points) | 85 views
+2 votes
0 answers
asked Jun 12 by toheed (1.3k points) | 14 views
+2 votes
1 answer
+2 votes
3 answers
+2 votes
1 answer




Welcome to Meansflow - Where Developers and Students Learn, Share, & Build Careers, where you can ask questions and receive answers from other members of the community.
117 questions
87 answers
40 comments
105 users