TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
deena mohamad
NA
2
6.3k
prog that reads info abt 20 employees & store in array
May 2 2013 1:41 PM
------------------------------------------------------------------------------------------------------------
Write a program that reads information about 20 employees and store it in an array of structures. The structure of each employee should contain: name (does not exceed 20 characters), ID (int), salary (double) between 200 and 4000, and address which belongs to one of the following {A, B, C, D, E}. The program should then output the following:
1.the average of employee salaries
2.the names of employees whose salaries are above the average
3.compute the employees total tax amount, given that tax amount is 10% of the salary for salaries above 1000 and 5% for salaries below or equal to 1000
4.the list of employees and their information sorted in alphabetical order of name
5.print a table that shows the distribution of salaries over the 5 cities as follows:
Below 1000Between 1000 and 2000Between 2000 and 3000Between 3000 and 4000
A
B
C
D
E
Reply
Answers (
1
)
C++ programe
Differences between visual c# 2010 and Visual c++