Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please do it on C Suppose, you are running a company where 50 employees work. Design a structure name Employee to store their Name, Age,

Please do it on C

Suppose, you are running a company where 50 employees work.

Design a structure name Employee to store their Name, Age, Basic salary, Bonus and any other thing that is needed.

Take all the data for all the employees from user.

Write a function name emp_bonus(). For those persons who are older than 50 years, will get a bonus which is 40% of their basic salary. The rest of the people will get 25% bonus of their salary. Print the name and the total salary of every employee.

Open a text file name Employee_Data. If the file opens successfully, write all the employees name and age on that file.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M. Kroenke, David J. Auer

7th edition

133544621, 133544626, 0-13-354462-1, 978-0133544626

More Books

Students also viewed these Databases questions

Question

=+working on a micro-multinational?

Answered: 1 week ago

Question

=+j Identify the challenges of training an international workforce.

Answered: 1 week ago